/* ============================================================
   mostrar-equipas.css - Estilos para a página de detalhes da equipa
   Rádio 5 - Portal Desportivo Angolano
   Inspirado em BeSoccer, Sofascore e LiveScore
   ============================================================ */

/* ============================================================
   CABEÇALHO DA EQUIPA
   ============================================================ */
   .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: var(--ink) !important; /* TROCA AQUI: era transparent, agora é preto */
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid var(--line-d); /* Adicionei essa linha para dar a borda sutil */
}
.site-header.scrolled {
    background: rgba(12, 18, 29, 0.95);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--line-d);
    box-shadow: 0 14px 40px -24px rgba(0,0,0,0.8);
}


.equipa-header {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.equipa-header-bg {
    padding: 2rem 2.5rem;
    position: relative;
}

.equipa-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.equipa-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.equipa-badge {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

.equipa-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.equipa-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #E11D2A;
}

.equipa-info {
    flex: 1;
    color: #fff;
}

.equipa-nome {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.equipa-sigla {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.equipa-estadio {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.equipa-estadio i {
    margin-right: 0.5rem;
}

.equipa-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.meta-item {
    font-size: 0.85rem;
    opacity: 0.85;
}

.meta-item i {
    margin-right: 0.4rem;
}

/* Stats Mini */
.equipa-stats-mini {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

.mini-stat {
    text-align: center;
    padding: 0 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-stat:last-child {
    border-right: none;
}

.mini-stat-valor {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.mini-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
    color: #fff;
}

/* ============================================================
   ABAS DE NAVEGAÇÃO
   ============================================================ */
.abas-container {
    margin-top: 2rem;
}

.abas-nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.aba-link {
    padding: 0.75rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.aba-link i {
    margin-right: 0.5rem;
}

.aba-link:hover {
    color: #E11D2A;
    background: rgba(225, 29, 42, 0.05);
}

.aba-link.active {
    color: #E11D2A;
    background: rgba(225, 29, 42, 0.08);
}

.aba-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #E11D2A;
    border-radius: 3px 3px 0 0;
}

.aba-conteudo {
    display: none;
    animation: fadeIn 0.3s ease;
}

.aba-conteudo.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CARDS DE RESUMO
   ============================================================ */
.resumo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.resumo-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resumo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.resumo-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.resumo-card-info {
    flex: 1;
    min-width: 0;
}

.resumo-card-valor {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.resumo-card-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   JOGOS EM DESTAQUE (Últimos e Próximos)
   ============================================================ */
.jogos-destaque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .jogos-destaque {
        grid-template-columns: 1fr;
    }
}

.jogos-coluna {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.coluna-titulo {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coluna-titulo .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

.jogos-lista {
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.jogos-lista::-webkit-scrollbar {
    width: 4px;
}

.jogos-lista::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 2px;
}

.jogo-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s ease;
    gap: 1rem;
}

.jogo-item:hover {
    background: #f8f9fa;
}

.jogo-item:last-child {
    border-bottom: none;
}

.jogo-item.vitoria {
    border-left: 4px solid #28a745;
}

.jogo-item.empate {
    border-left: 4px solid #ffc107;
}

.jogo-item.derrota {
    border-left: 4px solid #dc3545;
}

.jogo-item.proximo {
    border-left: 4px solid #0d6efd;
}

.jogo-data {
    text-align: center;
    flex-shrink: 0;
    min-width: 45px;
}

.jogo-dia {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.jogo-mes {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6c757d;
}

.jogo-info {
    flex: 1;
    min-width: 0;
}

.jogo-casa-fora {
    display: inline-block;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    background: #e9ecef;
    padding: 0.1rem 0.6rem;
    border-radius: 10px;
    color: #495057;
    margin-bottom: 0.2rem;
}

.jogo-adversario {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1a1a2e;
}

.jogo-logo-mini {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.jogo-placar {
    text-align: center;
    flex-shrink: 0;
    min-width: 70px;
}

.jogo-placar .placar-equipa,
.jogo-placar .placar-adversario {
    font-weight: 700;
    font-size: 1.1rem;
}

.jogo-placar .placar-separador {
    color: #6c757d;
    margin: 0 0.25rem;
}

.jogo-item.vitoria .placar-equipa {
    color: #28a745;
}

.jogo-item.derrota .placar-adversario {
    color: #dc3545;
}

.jogo-hora {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
}

.jogo-status {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    margin-top: 0.2rem;
    display: inline-block;
}

.jogo-status.status-terminado {
    background: #e9ecef;
    color: #495057;
}

.jogo-status.status-em_direto,
.jogo-status.status-intervalo {
    background: #dc3545;
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

.jogo-status.status-agendado {
    background: #0d6efd;
    color: #fff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================================
   TOP GOLEADORES DA EQUIPA
   ============================================================ */
.top-goleadores-equipa {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 2rem;
}

.top-goleadores-equipa .coluna-titulo {
    margin: 0;
}

.goleadores-grid {
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.goleador-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.goleador-item:hover {
    background: #e9ecef;
}

.goleador-item.top-1 {
    background: linear-gradient(135deg, #ffd70020, #ffd70008);
    border: 1px solid #ffd70040;
}

.goleador-item.top-2 {
    background: linear-gradient(135deg, #c0c0c020, #c0c0c008);
    border: 1px solid #c0c0c040;
}

.goleador-item.top-3 {
    background: linear-gradient(135deg, #cd7f3220, #cd7f3208);
    border: 1px solid #cd7f3240;
}

.goleador-posicao {
    font-weight: 700;
    font-size: 1rem;
    color: #6c757d;
    min-width: 30px;
}

.goleador-item.top-1 .goleador-posicao {
    color: #ffd700;
}

.goleador-item.top-2 .goleador-posicao {
    color: #c0c0c0;
}

.goleador-item.top-3 .goleador-posicao {
    color: #cd7f32;
}

.goleador-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.goleador-foto {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.goleador-foto-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #495057;
}

.goleador-nome {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goleador-golos {
    font-weight: 700;
    color: #E11D2A;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ============================================================
   TABELA DE JOGOS (ABA JOGOS)
   ============================================================ */
.jogos-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.aba-subtitulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.filtros-jogos {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filtro-select {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    color: #1a1a2e;
    cursor: pointer;
    min-width: 150px;
}

.filtro-select:focus {
    outline: none;
    border-color: #E11D2A;
    box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.1);
}

.jogos-tabela-wrapper {
    overflow-x: auto;
}

.jogos-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.jogos-tabela thead th {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.jogos-tabela tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.jogos-tabela tbody tr:hover {
    background: #f8f9fa;
}

.jogos-tabela tbody tr.jogo-casa {
    border-left: 3px solid #28a745;
}

.jogos-tabela tbody tr.jogo-fora {
    border-left: 3px solid #0d6efd;
}

.jogo-data-completa {
    white-space: nowrap;
}

.data-dia {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a1a2e;
}

.data-hora {
    font-size: 0.75rem;
    color: #6c757d;
}

.jogo-equipas {
    min-width: 200px;
}

.equipa-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.equipa-mini.destaque {
    font-weight: 700;
    color: #E11D2A;
}

.equipa-mini-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.equipa-mini-nome {
    font-size: 0.85rem;
}

.jogo-vs {
    margin: 0 0.5rem;
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 700;
}

.jogo-resultado {
    text-align: center;
    font-weight: 600;
}

.resultado-final {
    color: #1a1a2e;
}

.resultado-ao-vivo {
    color: #dc3545;
}

.ao-vivo-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.3rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.resultado-agendado {
    color: #6c757d;
}

.status-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
}

.status-badge.status-terminado {
    background: #e9ecef;
    color: #495057;
}

.status-badge.status-em_direto,
.status-badge.status-intervalo {
    background: #dc3545;
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-badge.status-agendado {
    background: #0d6efd;
    color: #fff;
}

/* ============================================================
   PLANTEL
   ============================================================ */
.plantel-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.plantel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.jogador-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jogador-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.jogador-card-header {
    padding: 0.6rem 1rem;
    border-bottom: 3px solid #0d6efd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.jogador-numero {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.jogador-posicao {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
}

.jogador-posicao i {
    margin-right: 0.3rem;
}

.jogador-card-body {
    padding: 1rem;
    text-align: center;
}

.jogador-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    border: 3px solid #e9ecef;
}

.jogador-foto-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #495057;
}

.jogador-nome {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.3rem 0;
}

.jogador-detalhes {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0 0 0.3rem 0;
}

.jogador-detalhes i {
    margin-right: 0.2rem;
}

.jogador-fisico {
    font-size: 0.7rem;
    color: #adb5bd;
    margin: 0;
}

.jogador-fisico span {
    margin: 0 0.3rem;
}

/* ============================================================
   ESTATÍSTICAS
   ============================================================ */
.estatisticas-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stats-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
}

.stats-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.stats-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.stat-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* Gráficos */
.graficos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .graficos-container {
        grid-template-columns: 1fr;
    }
}

.grafico-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
}

.grafico-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
}

/* ============================================================
   MENSAGEM VAZIA
   ============================================================ */
.vazio-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.vazio-message i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.5;
}

.vazio-message p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 992px) {
    .equipa-header-bg {
        padding: 1.5rem;
    }
    
    .equipa-header-content {
        gap: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .equipa-badge {
        width: 90px;
        height: 90px;
    }
    
    .equipa-nome {
        font-size: 1.8rem;
    }
    
    .equipa-meta {
        justify-content: center;
    }
    
    .equipa-stats-mini {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .mini-stat {
        padding: 0 0.5rem;
    }
    
    .mini-stat-valor {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .equipa-header-bg {
        padding: 1rem;
    }
    
    .equipa-badge {
        width: 70px;
        height: 70px;
        padding: 10px;
    }
    
    .equipa-nome {
        font-size: 1.4rem;
    }
    
    .equipa-stats-mini {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .mini-stat {
        padding: 0 0.3rem;
    }
    
    .mini-stat-valor {
        font-size: 1rem;
    }
    
    .mini-stat-label {
        font-size: 0.55rem;
    }
    
    .meta-item {
        font-size: 0.75rem;
    }
    
    .aba-link {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .aba-link i {
        margin-right: 0.3rem;
    }
    
    .resumo-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .resumo-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .resumo-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .resumo-card-valor {
        font-size: 1.2rem;
    }
    
    .plantel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jogos-tabela {
        font-size: 0.75rem;
    }
    
    .jogos-tabela thead th,
    .jogos-tabela tbody td {
        padding: 0.5rem 0.5rem;
    }
    
    .equipa-mini-nome {
        font-size: 0.7rem;
    }
    
    .jogo-resultado {
        font-size: 0.8rem;
    }
    
    .filtros-jogos {
        flex-direction: column;
    }
    
    .filtro-select {
        min-width: 100%;
    }
    
    .jogo-item {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
    }
    
    .jogo-data {
        min-width: 35px;
    }
    
    .jogo-placar {
        min-width: 60px;
    }
    
    .jogo-info {
        flex: 1;
        min-width: 100px;
    }
    
    .goleadores-grid {
        grid-template-columns: 1fr;
    }
}