/* ============================================================
   Code Vote System — CorporateCodes
   ============================================================ */

/* ── Vote section wrapper ── */
.cc-vote-section {
    margin: 20px 0;
    padding: 16px 20px;
    background: #f8f9fb;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
}

.cc-vote-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

/* ── Vote buttons ── */
.cc-vote-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cc-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    transition: all .18s;
    outline: none;
    user-select: none;
}

.cc-vote-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.cc-vote-btn:disabled {
    opacity: .55;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* working */
.cc-vote-btn-works {
    border-color: #34a853;
    color: #2d8f47;
}

.cc-vote-btn-works:hover,
.cc-vote-btn-works.cc-voted {
    background: #34a853;
    color: #fff;
}

/* expired */
.cc-vote-btn-expired {
    border-color: #ea4335;
    color: #c5392d;
}

.cc-vote-btn-expired:hover,
.cc-vote-btn-expired.cc-voted {
    background: #ea4335;
    color: #fff;
}

/* needs verification */
.cc-vote-btn-needs {
    border-color: #f9ab00;
    color: #c88c00;
}

.cc-vote-btn-needs:hover,
.cc-vote-btn-needs.cc-voted {
    background: #f9ab00;
    color: #fff;
}

/* ── Vote count badge in buttons ── */
.cc-vote-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    background: rgba(0,0,0,.08);
    margin-left: 6px;
}

.cc-vote-btn-works .cc-vote-count { background: rgba(52,168,83,.15); color: #1e7e34; }
.cc-vote-btn-expired .cc-vote-count { background: rgba(234,67,53,.15); color: #c5392d; }
.cc-vote-btn-needs .cc-vote-count { background: rgba(249,171,0,.15); color: #a16c00; }
.cc-vote-btn.cc-voted .cc-vote-count { background: rgba(255,255,255,.3); color: #fff; }

.cc-vote-thanks {
    font-size: 12px;
    color: #34a853;
    font-style: italic;
    margin-top: 8px;
}

.cc-vote-msg {
    margin-top: 8px;
}

/* ── Status badges (in tables) ── */
.cc-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.6;
}

.cc-status-working {
    background: #e6f4ea;
    color: #1e7e34;
}

.cc-status-expired {
    background: #fce8e6;
    color: #c5392d;
}

.cc-status-needs_verification {
    background: #fef7e0;
    color: #a16c00;
}

.cc-status-mixed {
    background: #eeeeee;
    color: #555555;
}

.cc-status-unknown {
    background: #f3f3f3;
    color: #aaaaaa;
}

/* ── 徽章上的票数计数 ── */
.cc-vote-badge-count {
    display: inline-block;
    vertical-align: super;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,.12);
    color: inherit;
    border-radius: 8px;
    padding: 0 4px;
    margin-left: 3px;
    line-height: 14px;
    cursor: default;
    white-space: nowrap;
}

/* ── Status badge in detail page ── */
.cc-detail-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.cc-detail-status .cc-status {
    font-size: 12px;
    padding: 3px 10px;
}
