/**
 * publico.css - Estilos para o Portal do Atleta e Páginas Públicas - PONTUS
 */

:root {
    --primary: #f4665c;
    --bg-light: #f8fafc;
    --bg-dark: #f3f4f6;
    --dark: #1a1a1a;
    --medium-grey: #9a9693;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --icon-bg: rgba(245, 158, 11, 0.1);
}

body { 
    background-color: var(--bg-light); 
    padding-bottom: 50px; 
}

/* Navbar customizada para atletas (sem botão de logout) */
.navbar-athlete {
    background: white;
    padding: 12px 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 65px;
}

/* Cards Mobile-Friendly */
.athlete-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-main);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.athlete-card:hover { 
    transform: translateY(-3px); 
    border-color: var(--primary); 
}

.icon-circle {
    width: 50px; 
    height: 50px; 
    border-radius: 14px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.3rem; 
    background: var(--icon-bg); 
    color: var(--primary);
    flex-shrink: 0;
}

/* Pesquisa */
.search-list { 
    background: white; 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    max-height: 350px; 
    overflow-y: auto; 
}

.search-item { 
    padding: 15px 20px; 
    border-bottom: 1px solid #f1f5f9; 
    display: block; 
    color: var(--text-main); 
    font-weight: 700; 
    transition: 0.2s; 
    text-decoration: none; 
}

.search-item:hover { 
    background: var(--icon-bg); 
    color: var(--primary); 
}

.search-item:last-child { 
    border-bottom: none; 
}

.btn-clear { 
    font-size: 0.7rem; 
    font-weight: 800; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    text-decoration: none; 
}

/* ==========================================
   ESTILOS ADICIONAIS: RANKING PÚBLICO
   ========================================== */
.header-public { 
    background: white; 
    padding: 25px 20px; 
    text-align: center; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
}

.logo-img { 
    height: 200px; 
    margin-bottom: 10px; 
    max-width: 100%;
    object-fit: contain;
}

.ranking-card { 
    background: white; 
    border-radius: 24px; 
    border: 1px solid var(--border-color); 
    overflow: hidden; 
    margin-top: 25px; 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); 
}

.table th { 
    font-size: 0.65rem; 
    text-transform: uppercase; 
    color: #64748b; 
    background: #f9fafb; 
    padding: 15px; 
    border: none; 
    font-weight: 800; 
}

.table td { 
    vertical-align: middle; 
    padding: 15px; 
    border-bottom: 1px solid #f1f5f9; 
    cursor: pointer; 
}

.pos-badge { 
    width: 32px; 
    height: 32px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
    font-size: 0.8rem; 
}

.pos-1 { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; } 
.pos-2 { background: #f1f5f9; color: #475569; } 
.pos-3 { background: #ffedd5; color: #9a3412; }

.total-pts { 
    font-weight: 800; 
    color: var(--primary); 
    font-size: 1.1rem; 
}

.total-badge-modal { 
    background: #fdf2f2; 
    color: var(--primary); 
    padding: 5px 15px; 
    border-radius: 50px; 
    font-weight: 800; 
    font-size: 1.1rem; 
    display: inline-block; 
}

.extrato-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
    border-bottom: 1px solid #f1f5f9; 
}

/* ==========================================
   ESTILOS ADICIONAIS: RESULTADOS AO VIVO (publico.php)
   ========================================== */
.header-live { 
    background: white; 
    padding: 15px 10px;
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    margin: 15px auto 20px;
    max-width: 90%;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.live-tag { 
    background: var(--primary); 
    color: white; 
    font-size: 0.55rem;
    font-weight: 900; 
    padding: 3px 10px; 
    border-radius: 50px; 
    text-transform: uppercase; 
    animation: pulse 2s infinite; 
    display: inline-block;
}

@keyframes pulse { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.5; } 
}

.btn-view-image {
    background: var(--icon-bg);
    color: var(--primary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-top: 5px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    cursor: pointer;
}

.section-title { 
    font-weight: 800; 
    font-size: 0.75rem; 
    color: var(--medium-grey); 
    text-transform: uppercase; 
    margin: 30px 0 15px; 
    letter-spacing: 1px;
    padding-left: 5px;
}

.card-box { 
    background: white; 
    border-radius: 24px; 
    overflow: hidden; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
}

.box-header { 
    background: var(--dark); 
    color: white; 
    padding: 12px; 
    font-weight: 800; 
    font-size: 0.8rem; 
    text-align: center; 
    text-transform: uppercase;
}

.table-stats th { 
    font-size: 0.6rem; 
    text-transform: uppercase; 
    color: var(--medium-grey); 
    background: #f9fafb; 
    text-align: center; 
    padding: 12px 5px; 
    font-weight: 800;
}

.table-stats td { 
    text-align: center; 
    font-size: 0.85rem; 
    padding: 12px 5px; 
    border-bottom: 1px solid #f1f5f9; 
}

.dupla-nomes { line-height: 1.2; color: var(--dark); display: block; }
.pos-num { color: var(--primary); font-weight: 800; }
.score-pill { background: #fdf2f2; color: var(--primary); font-weight: 800; padding: 4px 10px; border-radius: 8px; font-size: 0.85rem; border: 1px solid #fee2e2; }

.match-row { border-top: 1px solid #f1f5f9; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; }

.bracket-item { 
    background: white; 
    border-radius: 18px; 
    padding: 15px; 
    margin-bottom: 12px; 
    border: 1px solid #e2e8f0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

#winnerOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: white;
}

.trophy-container { position: relative; margin-bottom: 20px; }
.trophy-main { font-size: 5rem; color: var(--gold); filter: drop-shadow(0 0 20px rgba(255,215,0,0.6)); }
.trophy-silver { font-size: 3.5rem; color: var(--silver); filter: drop-shadow(0 0 15px rgba(192,192,192,0.4)); }

.winner-name { font-size: 1.8rem; font-weight: 800; margin-top: 10px; letter-spacing: -1px; }
.vice-name { font-size: 1.2rem; font-weight: 600; color: #cbd5e1; margin-top: 5px; }

.btn-close-winner {
    margin-top: 30px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.confetti { position: absolute; width: 10px; height: 10px; z-index: 2001; }

.text-pos { color: #2563eb !important; }
.text-neg { color: #ef4444 !important; }