/* Estilos específicos para a página da Liga */

/* Reduz o espaço do topo apenas na página da liga */
body .perfil-section {
    padding-top: 0px !important;
    margin-top: -40px !important;
    position: relative;
    z-index: 50;
}

/* Estilização do H1 da Liga dos Campeões */
body .perfil-section h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: #ffffff;
    text-align: justify;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2), 0 0 60px rgba(235, 37, 37, 0.15);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Animação de borda superior */
.perfil-section h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, #eb2525, transparent);
    animation: borderSlide 3s linear infinite;
}

/* Animação de borda inferior */
.perfil-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #eb2525, #2563eb, transparent);
    animation: borderSlide 3s linear infinite;
    animation-delay: 1.5s;
}

@keyframes borderSlide {
    0% {
        left: -100%;
        right: auto;
    }
    50%, 100% {
        left: 100%;
        right: auto;
    }
}

/* Efeito hover no H1 */
.perfil-section h1:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.3), 0 0 80px rgba(235, 37, 37, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Tema claro */
body[data-theme="light"] .perfil-section h1 {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15), 0 0 60px rgba(235, 37, 37, 0.1);
}

body[data-theme="light"] .perfil-section h1:hover {
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.25), 0 0 80px rgba(235, 37, 37, 0.15);
}

/* Botão para acessar a tabela */
.btn-tabela {
    display: inline-block;
    padding: 18px 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.btn-tabela:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

.btn-tabela:active {
    transform: translateY(0px);
}

/* Tema claro para o botão */
body[data-theme="light"] .btn-tabela {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

body[data-theme="light"] .btn-tabela:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

/* Responsivo - Mobile */
@media (max-width: 640px) {
    body .perfil-section {
        padding: 10px 15px 40px !important;
        margin-top: 0px !important;
        display: block !important;
    }

    /* Forçar visibilidade de todos os elementos */
    .perfil-container,
    .perfil-stats-container {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .perfil-section h1 {
        font-size: 14px;
        padding: 20px;
        margin: 20px 0 30px 0;
        line-height: 1.6;
    }

    .btn-tabela {
        font-size: 16px;
        padding: 12px 28px;
        letter-spacing: 0.5px;
    }

    /* Forçar visibilidade das tabelas no mobile */
    .stats-table-wrapper,
    .stats-cards {
        display: block !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* Responsividade para stats-title */
    .stats-title {
        font-size: 28px !important;
        padding: 20px 15px !important;
        text-align: center;
        display: block !important;
    }

    /* Responsividade para table-title */
    .table-title {
        font-size: 18px !important;
        padding: 15px 10px !important;
        display: block !important;
    }

    /* Responsividade para tabelas */
    .stats-table-wrapper {
        padding: 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100%;
    }

    .stats-table {
        display: table !important;
        font-size: 9px !important;
        min-width: 100%;
        width: 100%;
    }

    .stats-table thead,
    .stats-table tbody,
    .stats-table tr {
        display: table-row-group !important;
    }

    .stats-table tr {
        display: table-row !important;
    }

    .stats-table th,
    .stats-table td {
        display: table-cell !important;
        font-size: 9px !important;
        padding: 6px 4px !important;
        white-space: normal;
        word-break: break-word;
        max-width: 100px;
    }

    /* Grid responsivo para tabelas menores */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Responsivo - Tablet */
@media (max-width: 1024px) {
    .perfil-section {
        padding: 100px 30px 50px !important;
    }

    .perfil-section h1 {
        font-size: 18px;
        padding: 30px;
    }

    .btn-tabela {
        font-size: 20px;
        padding: 13px 35px;
    }
}
