/* ═══════════════════════════════════════════════════════════
   GINCANA — VOTAÇÃO POPULAR  ·  css/votacao.css?v=1
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay fullscreen ─────────────────────────────────── */
#votacao-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #080808;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
#votacao-overlay.ativo {
    opacity: 1;
    pointer-events: all;
}

/* ── Header ─────────────────────────────────────────────── */
.vot-header {
    flex-shrink: 0;
    padding: 20px 20px 0;
    text-align: center;
}
.vot-eyebrow {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--gold, #C9A84C);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.vot-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    line-height: 1;
    color: #f0ece0;
    margin-bottom: 4px;
}
.vot-title em {
    color: var(--gold, #C9A84C);
    font-style: normal;
}
.vot-sub {
    font-size: 11px;
    color: rgba(240,236,224,.42);
    line-height: 1.4;
    margin-bottom: 8px;
}

/* ── Progresso dos votos ─────────────────────────────────── */
.vot-progress-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 0 20px 10px;
    flex-shrink: 0;
}
.vot-prog-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(240,236,224,.35);
    text-transform: uppercase;
    transition: color .3s;
}
.vot-prog-item.feito { color: var(--gold, #C9A84C); }
.vot-prog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    transition: all .3s;
    flex-shrink: 0;
}
.vot-prog-dot.feito {
    background: var(--gold, #C9A84C);
    border-color: var(--gold, #C9A84C);
    box-shadow: 0 0 6px rgba(201,168,76,.5);
}

/* ── Abas A / B ─────────────────────────────────────────── */
.vot-tabs {
    display: flex;
    padding: 0 16px;
    gap: 6px;
    flex-shrink: 0;
}
.vot-tab {
    flex: 1;
    padding: 9px 0;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: rgba(240,236,224,.38);
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}
.vot-tab.ativa {
    background: rgba(201,168,76,.07);
    border-color: rgba(201,168,76,.4);
    color: var(--gold, #C9A84C);
}
.vot-tab-check {
    font-size: 10px;
    margin-left: 3px;
    opacity: 0;
    transition: opacity .3s;
}
.vot-tab-check.on { opacity: 1; }

/* ── Painel de grupo ────────────────────────────────────── */
.vot-painel {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,.18);
    border-top: none;
    margin: 0 16px;
    border-radius: 0 0 5px 5px;
    background: rgba(201,168,76,.02);
    min-height: 0;
}
.vot-painel.ativo { display: flex; }

/* Lista scroll */
.vot-lista {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 4px;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

/* ── Card de candidata ──────────────────────────────────── */
.vot-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 5px;
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .12s;
    -webkit-tap-highlight-color: transparent;
}
.vot-card:active { transform: scale(.98); }
.vot-card.selecionado {
    background: rgba(201,168,76,.1);
    border-color: rgba(201,168,76,.65);
}
.vot-card.travado {
    opacity: .45;
    pointer-events: none;
}
.vot-card.meu-voto {
    background: rgba(201,168,76,.1);
    border-color: var(--gold, #C9A84C);
    pointer-events: none;
}

/* Avatar */
.vot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(201,168,76,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    color: var(--gold, #C9A84C);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,.2);
}
.vot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Info */
.vot-info { flex: 1; min-width: 0; }
.vot-nome {
    font-size: 13px;
    font-weight: 600;
    color: #f0ece0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vot-username {
    font-size: 10px;
    color: rgba(240,236,224,.3);
}

/* Tick */
.vot-tick {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all .2s;
    color: transparent;
}
.vot-card.selecionado .vot-tick,
.vot-card.meu-voto .vot-tick {
    background: var(--gold, #C9A84C);
    border-color: var(--gold, #C9A84C);
    color: #080808;
}

/* ── Footer com botão ───────────────────────────────────── */
.vot-footer {
    flex-shrink: 0;
    padding: 8px 10px 10px;
}
.btn-vot-confirmar {
    width: 100%;
    padding: 12px;
    background: var(--gold, #C9A84C);
    color: #080808;
    border: none;
    border-radius: 5px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: .25;
    transition: opacity .2s, transform .12s;
    pointer-events: none;
}
.btn-vot-confirmar.pronto {
    opacity: 1;
    pointer-events: all;
}
.btn-vot-confirmar:active { transform: scale(.98); }

/* ── Estado já votou neste grupo ────────────────────────── */
.vot-ja-votou-grupo {
    padding: 18px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.vot-jv-check { font-size: 28px; line-height: 1; }
.vot-jv-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--gold, #C9A84C);
    text-transform: uppercase;
}
.vot-jv-nome {
    font-size: 16px;
    font-weight: 700;
    color: #f0ece0;
}
.vot-jv-sub {
    font-size: 10px;
    color: rgba(240,236,224,.35);
    line-height: 1.5;
}

/* ── Timer ──────────────────────────────────────────────── */
.vot-timer {
    flex-shrink: 0;
    text-align: center;
    padding: 3px 20px 8px;
    font-size: 10px;
    color: rgba(240,236,224,.28);
    letter-spacing: 1px;
}
.vot-timer strong { color: rgba(240,236,224,.55); }

/* ── Fechar ─────────────────────────────────────────────── */
.vot-fechar-wrap {
    flex-shrink: 0;
    padding: 8px 16px 20px;
}
#btn-fechar-votacao {
    width: 100%;
    padding: 11px;
    background: rgba(255,255,255,.04);
    color: rgba(240,236,224,.4);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .2s;
}
#btn-fechar-votacao:active { background: rgba(255,255,255,.08); }

/* ── Admin reset ────────────────────────────────────────── */
.vot-admin-reset {
    flex-shrink: 0;
    padding: 0 16px 4px;
    text-align: center;
}
.vot-admin-reset button {
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(240,236,224,.28);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Encerrada ──────────────────────────────────────────── */
.vot-encerrada {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    gap: 10px;
}
.vot-encerrada .vot-icon { font-size: 44px; }
.vot-encerrada .vot-enc-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: rgba(240,236,224,.65);
}
.vot-encerrada .vot-enc-sub {
    font-size: 11px;
    color: rgba(240,236,224,.35);
    line-height: 1.6;
}

/* ── Painel admin de resultados ─────────────────────────── */
#votacao-admin-panel {
    padding: 14px;
}
.vot-admin-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--gold, #C9A84C);
    margin-bottom: 12px;
    text-align: center;
}
.vot-admin-grupo { margin-bottom: 18px; }
.vot-admin-grupo-label {
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(240,236,224,.38);
    text-transform: uppercase;
    margin-bottom: 7px;
}
.vot-admin-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.vot-admin-pos {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    color: var(--gold, #C9A84C);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.vot-admin-nome { flex: 1; font-size: 12px; color: #f0ece0; }
.vot-admin-bar-wrap {
    width: 65px; height: 3px;
    background: rgba(255,255,255,.07);
    border-radius: 2px; overflow: hidden;
}
.vot-admin-bar {
    height: 100%;
    background: var(--gold, #C9A84C);
    border-radius: 2px;
    transition: width .5s ease;
}
.vot-admin-votos {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    color: #f0ece0;
    min-width: 22px;
    text-align: right;
}
.vot-admin-total {
    text-align: center;
    font-size: 10px;
    color: rgba(240,236,224,.28);
    margin-top: 5px;
}
