/* WesDev Sports Integration - Estilos Principais */

/* Container principal do widget */
.brasileirao-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Título da seção */
.brasileirao-section h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Container do carrossel de jogos */
.jogos-swiper {
    margin: 20px 0;
}

/* Item individual de cada jogo */
.jogo-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.jogo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Container dos times e placar */
.times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Time individual */
.time {
    display: flex;
    align-items: center;
    flex: 1;
}

.time-casa {
    justify-content: flex-start;
}

.time-visitante {
    justify-content: flex-end;
}

/* Logo do time */
.time-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0 10px;
}

/* Nome do time */
.time-nome {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-align: center;
    max-width: 120px;
}

/* Placar */
.placar {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
    min-width: 60px;
    text-align: center;
    margin: 0 15px;
}

/* Data do jogo */
.jogo-data {
    text-align: center;
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 10px;
    font-style: italic;
}

/* Status do jogo */
.jogo-status {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ao-vivo {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.status-finalizado {
    color: #27ae60;
    background: #f0f9f4;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.status-aguardando {
    color: #f39c12;
    background: #fef9e7;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Menu de campeonatos */
.campeonatos-menu {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.campeonatos-menu h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.campeonatos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.campeonato-item {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.campeonato-item:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

/* Link para tabela completa */
.link-tabela {
    text-align: center;
    margin-top: 20px;
}

.link-tabela a {
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.link-tabela a:hover {
    background: #229954;
    color: white;
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .brasileirao-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .jogo-item {
        padding: 12px;
        margin: 8px;
    }
    
    .time-logo {
        width: 30px;
        height: 30px;
    }
    
    .time-nome {
        font-size: 12px;
        max-width: 80px;
    }
    
    .placar {
        font-size: 16px;
        padding: 6px 12px;
        min-width: 50px;
    }
    
    .campeonatos-lista {
        flex-direction: column;
        align-items: center;
    }
}

/* Estilos para o Swiper */
.swiper-pagination-bullet {
    background: #3498db;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: #3498db;
}

/* Estados de carregamento */
.carregando {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.carregando::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensagens de erro */
.erro {
    background: #fdf2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Sucesso */
.sucesso {
    background: #f0f9f4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}
