/* Adicione estas linhas NO INÍCIO do seu arquivo styles.css */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    /* Coloca os elementos (Header, Main, Footer) em coluna */
}

/* Garante que o conteúdo principal (Main) ocupe o espaço restante */
.main-content {
    flex: 1;
    /* Faz com que esta seção se estique para preencher o espaço */
    padding: 30px 0;
}

/* O resto do CSS (header, footer, etc.) que já te passei pode vir depois */
/* ... */
/* Configurações Globais e Reset Básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header (Cabeçalho) */
.header {
    background-color: #004d99;
    /* Azul escuro do futebol */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffcc00;
    /* Dourado, remetendo à Bola de Ouro */
}

.nav-menu a {
    color: white;
    margin-left: 20px;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

.search-box input {
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    padding: 8px 12px;
    background-color: #ffcc00;
    color: #004d99;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Conteúdo Principal e Layout Flex */
.main-content {
    padding: 30px 0;
}

.flex-container {
    display: flex;
    gap: 30px;
}

.main-column {
    flex: 3;
    /* Ocupa mais espaço para o conteúdo principal */
}

.sidebar-column {
    flex: 1.5;
    /* Coluna lateral mais estreita */
    min-width: 280px;
}

.section-title,
.section-title-sidebar {
    font-size: 1.8em;
    color: #004d99;
    border-bottom: 3px solid #ffcc00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title-sidebar {
    font-size: 1.4em;
    margin-top: 0;
}

/* Destaque da Rodada */
.section-highlight {
    margin-bottom: 30px;
}

.highlight-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
}

.match-info {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team {
    color: #333;
    padding: 0 15px;
}

.vs {
    color: #ffcc00;
    font-size: 0.7em;
    margin: 0 10px;
}

.match-details {
    margin-top: 15px;
    font-size: 1.1em;
}

.btn-details {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 700;
}

/* Jogos da Rodada */
.game-list {
    list-style: none;
    margin-bottom: 30px;
}

.game-item {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.game-item:hover {
    background-color: #e6f7ff;
}

.game-time {
    font-weight: 700;
    color: #004d99;
    flex-basis: 15%;
}

.game-match {
    flex-basis: 70%;
    font-size: 1.1em;
}

.game-link {
    font-size: 0.9em;
    color: #007bff;
}

/* Notícias */
.news-item {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-item h3 {
    color: #004d99;
    font-size: 1.2em;
    margin-bottom: 5px;
}

/* Tabela de Classificação */
.classification-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: white;
}

.classification-table th,
.classification-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.classification-table th {
    background-color: #004d99;
    color: white;
    font-size: 0.9em;
}

.g4 {
    background-color: #d4edda;
    color: #155724;
}

/* G4 - Verde */
.z4 {
    background-color: #f8d7da;
    color: #721c24;
}

/* Z4 - Vermelho */

.btn-full-table {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #ffcc00;
    color: #004d99;
    font-weight: 700;
    border-radius: 5px;
    margin-top: 10px;
}


/* Rodapé */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

/* Responsividade (Para dispositivos menores) */
@media (max-width: 900px) {
    .flex-container {
        flex-direction: column;
    }

    .main-column,
    .sidebar-column {
        flex: 1;
        /* Ocupam a largura total */
        min-width: unset;
    }

    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        margin: 15px 0;
    }

    .nav-menu a {
        margin: 0 10px;
    }

    .search-box {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Adicione este CSS ao seu arquivo styles.css */

/* Seção de Detalhes do Jogo */
.match-detail-article {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-box {
    background-color: #eaf6ff;
    border-left: 5px solid #007bff;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.info-box h3 {
    color: #004d99;
    margin-bottom: 10px;
}

.trans-channel {
    font-weight: 700;
    color: #cc0000;
    /* Cor de destaque para Transmissão */
}

.detail-flex {
    display: flex;
    gap: 30px;
}

.team-info-section {
    flex: 2;
    /* Coluna das informações (Escalações) */
}

.analysis-section {
    flex: 1;
    /* Coluna da Análise */
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.team-lineup {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.team-a,
.team-b {
    flex: 1;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
}

.team-lineup h4 {
    color: #004d99;
    font-size: 1.1em;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.lineup-list,
.desfalques-list ul {
    list-style-type: none;
    padding-left: 0;
}

.desfalques-list h4 {
    color: #cc0000;
    /* Vermelho para desfalques */
    margin-top: 15px;
}

.prediction {
    font-style: italic;
    margin: 15px 0;
    padding: 10px;
    border-left: 3px solid #ffcc00;
    background: #fff8e1;
}

.read-more-news {
    margin-top: 30px;
    text-align: right;
}

/* Responsividade para Detalhes do Jogo */
@media (max-width: 768px) {
    .detail-flex {
        flex-direction: column;
    }

    .team-lineup {
        flex-direction: column;
    }
}

/* Estilos para Tabela de Classificação Completa */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* Garante responsividade dos filtros */
}

.filters {
    display: flex;
    gap: 10px;
}

.btn-filter {
    padding: 8px 15px;
    border: 1px solid #007bff;
    background-color: white;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter.active,
.btn-filter:hover {
    background-color: #007bff;
    color: white;
}

.legend {
    font-size: 0.9em;
    display: flex;
    gap: 15px;
    align-items: center;
}

.legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 3px;
}

/* Definições de Cores para as Zonas */
/* Libertadores (G4) */
.lib::before,
.legend-item.lib::before {
    background-color: #38c172;
    /* Verde */
}

/* Pré-Libertadores (G5/G6) - Se necessário */
.prelib::before,
.legend-item.prelib::before {
    background-color: #6cb2eb;
    /* Azul claro */
}

/* Sul-Americana */
.sula::before,
.legend-item.sula::before {
    background-color: #ff9900;
    /* Laranja */
}

/* Rebaixamento (Z4) */
.z4::before,
.legend-item.z4::before {
    background-color: #e3342f;
    /* Vermelho */
}

/* Aplicação das cores na linha da tabela */
.full-classification-table .lib {
    background-color: #e6ffe6;
}

.full-classification-table .sula {
    background-color: #fff8e6;
}

.full-classification-table .z4 {
    background-color: #ffe6e6;
}


/* Estilo da Tabela Completa */
.full-classification-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: white;
}

.full-classification-table th,
.full-classification-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.full-classification-table th {
    background-color: #004d99;
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
}

.full-classification-table td:first-child {
    font-weight: 700;
    color: #004d99;
}

.full-classification-table .team-name {
    text-align: left;
    font-weight: 500;
}

/* Responsividade para Tabela Completa */
@media (max-width: 768px) {

    /* Esconde colunas menos essenciais em telas pequenas */
    .full-classification-table th:nth-child(6),
    /* E (Empates) */
    .full-classification-table td:nth-child(6),
    .full-classification-table th:nth-child(7),
    /* D (Derrotas) */
    .full-classification-table td:nth-child(7),
    .full-classification-table th:nth-child(8),
    /* GP */
    .full-classification-table td:nth-child(8),
    .full-classification-table th:nth-child(9),
    /* GC */
    .full-classification-table td:nth-child(9) {
        display: none;
    }

    .table-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Estilos para a Página de Times & Elencos */
.intro-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* 150px é o tamanho mínimo do card */
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-shield {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team-name-grid {
    font-weight: 700;
    color: #004d99;
    font-size: 1.1em;
}

.team-coach {
    font-size: 0.9em;
    color: #555;
}

/* Detalhe Individual do Time */
.team-detail-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-top: 30px;
}

.section-subtitle {
    color: #004d99;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.elenco-info {
    columns: 2;
    /* Divide o conteúdo em duas colunas em telas grandes */
    column-gap: 40px;
}

.elenco-info h4 {
    margin-top: 20px;
    color: #333;
}

.next-games-list,
.players-list {
    list-style: disc;
    margin-left: 20px;
}

/* Responsividade para a seção de Elencos */
@media (max-width: 600px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .elenco-info {
        columns: 1;
        /* Uma coluna em telas pequenas */
    }
}

/* Estilos para a lista de jogos atrasados */
.delayed-list-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f7f7f7;
    border-left: 5px solid #ffcc00;
    /* Linha lateral amarela/dourada */
    border-radius: 5px;
}

.game-list.full-width {
    list-style: none;
    padding: 0;
}

.delayed-game {
    background: white;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.disclaimer {
    margin-top: 20px;
    font-style: italic;
    color: #666;
    text-align: center;
}