/* Estilos específicos para o Campeonato da Escolinha */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

h2 {
    color: #34495e;
    margin: 20px 0;
}

/* Estilos das tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Estilo para as posições de classificação */
.standings-table tr:nth-child(-n+4) td:first-child {
    background-color: #e8f5e9;
    color: #388e3c;
    font-weight: 600;
}

/* Estilo para os nomes das equipes */
.scorers-table td:nth-child(3) {
    width: 300px;
    text-align: center;
    padding: 0 15px;
    color: #000000;
    font-weight: 500;
}

/* Estilos para as categorias e times */
.tournament-category {
    margin-bottom: 50px;
}

.category-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.teams-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    width: 300px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.team-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.team-card h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.team-players {
    list-style: none;
    padding: 0;
}

.team-players li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.team-players li:last-child {
    border-bottom: none;
}

.goalkeeper {
    color: #3498db;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .teams-container {
        grid-template-columns: 1fr;
    }

    .team-card {
        margin: 0 10px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }
}

/* Título principal */
.tournament-title {
    color: #388e3c;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin: 30px 0;
    text-transform: uppercase;
}

/* Main title */
h1.tournament-title {
    font-size: 2.5em;
    font-weight: 600;
}

/* Section titles */
h2.tournament-title {
    font-size: 1.8em;
    font-weight: 500;
    text-align: left;
    border-left: 4px solid #388e3c;
    padding-left: 15px;
}

.tournament-hero {
    background: linear-gradient(to bottom, #4CAF50, #388E3C) !important;
}

.standings {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.standings h2 {
    color: #388e3c;
    text-align: center;
    margin-bottom: 20px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.standings-table th,
.standings-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.standings-table th {
    background-color: #388e3c;
    color: white;
}

.standings-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.standings-table tr:hover {
    background-color: #f5f5f5;
}

.scorers {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.scorers h2 {
    color: #388e3c;
    text-align: center;
    margin-bottom: 20px;
}

.scorers-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.scorers-table th {
    background-color: #388e3c;
    color: white;
    padding: 12px;
    text-align: center;
}

.scorers-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.scorers-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.scorers-table tr:hover {
    background-color: #f5f5f5;
}

/* Estilos para a tabela de cartões */
.cards {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cards h2 {
    color: #388e3c;
    text-align: center;
    margin-bottom: 20px;
}

/* Estilos para a tabela de cartões */
.cards-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cards-table th,
.cards-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.cards-table th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.cards-table td:first-child,
.cards-table td:nth-child(2) {
    text-align: left;
}

/* Estilos específicos para os cartões */
.cards-table td {
    font-weight: normal;
}

/* Estilo para cartão amarelo */
.cards-table td {
    background-color: transparent;
}

.cards-table td:contains("AM") {
    background-color: #FFD700;
}

/* Estilo para cartão vermelho */
.cards-table td:contains("VER") {
    background-color: #FF0000;
    color: white;
}

/* Estilo para suspensão */
.cards-table td:contains("SUSP") {
    background-color: #000000;
    color: white;
}

.cards-table tr:hover {
    background-color: #f5f5f5;
}