/* Definição de Cores - Variáveis */
:root { 
    --accent: #3b82f6; 
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(0,0,0,0.08);
}

[data-theme="dark"], .dark-mode, body.dark { 
    --bg-body: #0f172a; 
    --bg-card: #1e293b; 
    --bg-header: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255,255,255,0.1);
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--bg-body); color: var(--text-body); line-height: 1.6; transition: background 0.3s, color 0.3s; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

/* Header Estilo App */
header { background-color: var(--header-bg); color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* Alinhamento para o logo e o botão de tema */
.header-top { display: flex; justify-content: space-between; align-items: center; }

header .logo { font-size: 1.5rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
header .logo span { color: var(--accent); }

nav ul { display: flex; list-style: none; gap: 20px; margin-top: 10px; }
nav a { color: #ccc; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
nav a:hover { color: var(--accent); }

/* Botão de Tema */
.theme-switch {
    background: var(--accent);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
}
/* Barra de Calendário */
.calendar-bar { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin: 15px 0; 
    background: var(--bg-card); 
    padding: 10px; 
    border-radius: 8px; 
    border: 1px solid var(--border-card);
}
.calendar-bar a { 
    text-decoration: none; 
    color: var(--text-body); 
    font-size: 0.85rem; 
    padding: 5px 12px; 
    border-radius: 20px; 
    border: 1px solid var(--border-card);
}
.calendar-bar a.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: bold; }

#date-picker { 
    margin-left: auto; 
    border: 1px solid var(--border-card); 
    border-radius: 4px; 
    background: var(--bg-body); 
    color: var(--text-body); 
    font-size: 0.8rem;
}

/* Efeito de Destaque no Jogo */
.jogo-item { 
    transition: transform 0.1s; 
    cursor: pointer; 
}
.jogo-item:hover { 
    background-color: var(--item-hover) !important; 
    border-left: 4px solid var(--accent); /* Dá um toque visual de seleção */
}

/* Badge de AO VIVO Piscando */
.tempo span.live {
    animation: blink 1s infinite;
}
@keyframes blink { 
    0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } 
}
/* Container das Abas */
.tabs-container { display: flex; background: var(--header-bg); margin-top: 15px; border-radius: 8px; overflow: hidden; }
.tab-item { flex: 1; padding: 12px; text-align: center; color: #aaa; cursor: pointer; font-size: 0.85rem; font-weight: bold; border-bottom: 3px solid transparent; transition: 0.2s; }
.tab-item span { background: #444; color: #fff; padding: 1px 6px; border-radius: 10px; font-size: 0.7rem; margin-left: 4px; }
.tab-item.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-item:hover { background: rgba(255,255,255,0.05); }

/* Controle de Exibição das Abas */
.tab-content { display: none; }
.tab-content.show { display: block; }

/* Ajustes Extras */
.liga-header { background: var(--header-bg); color: #fff; padding: 8px 15px; font-size: 0.8rem; font-weight: bold; border-radius: 4px 4px 0 0; margin-top: 15px; }
.time-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.gol-box { background: var(--placar-bg); color: #fff; padding: 2px 8px; border-radius: 4px; font-weight: bold; display: block; margin-bottom: 4px; }
/* Estilo das Tabelas de Jogos */
.lista-jogos { background: var(--bg-card); border-radius: 8px; margin-top: 20px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid var(--border-card); }
.jogo-item { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border-card); text-align: center; }
.jogo-item:last-child { border-bottom: none; }

.tempo { color: #e67e22; font-weight: bold; font-size: 0.8rem; }
.times { text-align: left; padding-left: 10px; font-weight: 600; color: var(--text-body); }
.placar { background: var(--placar-bg); color: #fff; border-radius: 4px; padding: 2px 5px; font-weight: bold; }

/* Rodapé */
footer { background: var(--footer-bg); color: var(--text-footer); padding: 30px 0; margin-top: 40px; text-align: center; font-size: 0.8rem; }
footer ul { display: flex; justify-content: center; gap: 15px; list-style: none; margin-top: 10px; }
footer a { color: var(--text-footer); text-decoration: none; }


/* --- ESTILOS PÁGINA DE TIME (VemGol) --- */
.team-header-card {
    background: var(--bg-card, #fff);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid var(--border-card, #eee);
}
.team-logo-big { width: 100px; height: 100px; object-fit: contain; margin-bottom: 15px; }
.team-name-big { font-size: 1.8rem; font-weight: 800; margin: 0; color: var(--text-color); }
.team-country { color: #888; text-transform: uppercase; font-size: 0.8rem; font-weight: bold; margin-top: 5px; }

.games-list { 
    background: var(--bg-card, #fff); 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid var(--border-card, #eee); 
}
.list-title { padding: 15px; background: #1a1a1a; color: #fff; font-size: 1rem; margin: 0; }

.game-item {
    display: grid;
    grid-template-columns: 70px 1fr 60px 40px;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-card, #eee);
    text-decoration: none;
    color: inherit;
}
.game-item:hover { background: rgba(0,255,133,0.05); }

.game-date { font-size: 0.75rem; color: #888; text-align: center; text-decoration: none; }
.game-teams { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    border-left: 2px solid var(--border-card, #eee); 
    padding-left: 12px; 
    text-decoration: none;
}
.team-row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.team-row img { width: 18px; height: 18px; }
.team-row.highlight { font-weight: bold; color: var(--accent, #00ff85); }

.score-box-col { display: flex; flex-direction: column; text-decoration: none; }
.score-num { 
    background: #333; 
    color: #fff; 
    font-size: 0.85rem; 
    text-align: center; 
    border-radius: 3px; 
    font-weight: bold; 
    min-width: 25px; 
    margin-bottom: 2px;
}

/* Cores de Status */
.win { background: #28a745 !important; }
.loss { background: #dc3545 !important; }
.draw { background: #6c757d !important; }

