@charset "utf-8";

/* ===================================================================
   PALETA DE CORES PADRÃO (TEMA MEOWTH)
   - Todas as cores do site são controladas a partir daqui.
   =================================================================== */
:root {
    /* Cores Principais (Laranja Meowth) */
    --cor-primaria: #F08300;
    --cor-primaria-hover: #D55C00;
    --cor-primaria-transparente: rgba(240, 131, 0, 0.4);
    /* Cores de Acento (Dourado da Moeda) */
    --cor-acento-dourado: #e0c26d;
    --cor-acento-dourado-claro: #fceec0;
    --cor-acento-dourado-hover: #cbb57a;
    --cor-acento-texto: #5c3b00;
    /* Cores Neutras */
    --cor-fundo: #FFFFFF;
    --cor-fundo-secao: #fdfdfd;
    --cor-fundo-card: #f8f9fa;
    --cor-texto: #1a1a1a;
    --cor-texto-secundario: #444;
    --cor-borda: #dee2e6;
}

/* ===================================================================
   ESTILOS GERAIS E LAYOUT
   =================================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================================================
   TIPOGRAFIA
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--cor-primaria);
}

    h2:before, h2:after {
        content: "";
        flex: 1;
        margin: auto 12px auto 0;
        height: 0;
        /* OBS: A variável --color-gray não existia, substituí por uma cor padrão de borda */
        border-top: solid var(--cor-borda) 6px;
        border-radius: 40px 0 0 40px;
    }

    h2:after {
        border-radius: 0 40px 40px 0; /* Corrigido para fazer a borda do lado direito */
    }

/* ===================================================================
   COMPONENTES: NAVBAR E ABAS
   =================================================================== */
.navbar-brand {
    margin-left: 5rem;
    margin-right: 5rem;
}

.navbar-nav {
    justify-content: right;
    margin-left: 5rem;
    margin-right: 5rem;
}

.nav-item {
    font-size: 2rem;
    font-weight: 600;
    /* OBS: a variável --fontMenu não estava bem definida, removi. Adicione a font-family se necessário */
}

.nav-tabs .nav-link {
    color: var(--cor-texto);
    background-color: transparent;
    border: 1px solid var(--cor-primaria);
    border-bottom: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

    .nav-tabs .nav-link:hover,
    .nav-tabs .nav-link:focus {
        background-color: var(--cor-primaria-transparente);
        color: var(--cor-texto);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    }

    .nav-tabs .nav-link.active {
        background-color: var(--cor-primaria);
        color: var(--cor-fundo);
        border-color: var(--cor-primaria);
        font-weight: bold;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        transform: translateY(-3px);
    }

/* ===================================================================
   COMPONENTES: BOTÕES E FORMULÁRIOS
   =================================================================== */
/* Botão Padrão */
.btn {
    background-color: var(--cor-primaria);
    border: none;
    color: var(--cor-fundo);
    transition: background-color 0.3s ease;
}

    .btn:hover {
        background-color: var(--cor-primaria-hover);
        color: var(--cor-fundo);
    }

/* Botão Primário (Dourado) - Sem !important */
.btn-primary {
    background-color: var(--cor-acento-dourado-claro) !important;
    border: 2px solid var(--cor-acento-dourado) !important;
    color: var(--cor-acento-texto) !important;
}

    .btn-primary:hover {
        background-color: var(--cor-fundo) !important;
        border-color: var(--cor-acento-dourado-hover) !important;
        color: var(--cor-acento-texto) !important;
    }

/* --- Botão com Borda (Outline) --- */
.btn-outline-meowth {
    color: var(--cor-primaria) !important;
    border-color: var(--cor-primaria) !important;
    background-color: transparent !important;
}

    .btn-outline-meowth:hover {
        color: var(--cor-fundo) !important;
        border-color: var(--cor-primaria-hover) !important;
        background-color: var(--cor-primaria-hover) !important;
    }

/* Botão de Pontos */
.btn-points {
    border-bottom: 2px dotted var(--cor-primaria);
    border-radius: 0;
    background-color: transparent;
    color: var(--cor-texto);
    font-weight: 700;
}

/* Botão do Carrossel */
.btn-meowth {
    background-color: var(--cor-acento-dourado);
    color: var(--cor-texto);
    font-weight: bold;
    border: none;
}

    .btn-meowth:hover {
        background-color: var(--cor-acento-dourado-hover);
    }

/* Foco dos formulários */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--cor-fundo), 0 0 0 0.25rem var(--cor-primaria);
}

.form-select {
    border: 2px solid var(--cor-primaria);
    color: var(--cor-texto);
}

    .form-select:focus {
        border-color: var(--cor-primaria-hover);
        box-shadow: 0 0 0 0.2rem var(--cor-primaria-transparente);
    }


/* ===================================================================
   COMPONENTES: CARDS
   =================================================================== */
.bg-light {
    background-color: var(--cor-fundo-card) !important; /* !important mantido para sobrescrever bootstrap */
    border-left: 5px solid var(--cor-primaria);
    transition: all 0.3s ease-in-out;
}

    .bg-light:hover {
        background-color: var(--cor-acento-dourado-claro) !important;
    }

.torneio-card {
    border: 2px solid var(--cor-primaria);
    border-radius: 10px;
    background-color: var(--cor-fundo-card);
    padding: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .torneio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px var(--cor-primaria-transparente);
    }

.card-artigo-imagem {
    border: 5px solid var(--cor-primaria);
    border-radius: 12px;
    width: 200px;
    height: auto;
    object-fit: cover;
    max-width: 100%;
}

.card-jogador {
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-jogador:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    }

    .card-jogador img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .card-jogador:hover img {
        transform: scale(1.1);
    }

.card.texto-preto * {
    color: var(--cor-texto) !important; /* !important mantido para casos específicos */
}

/* ===================================================================
   ESTILOS DE PÁGINAS ESPECÍFICAS
   =================================================================== */

/* --- Rodapé --- */
.site-footer {
    background-color: var(--cor-texto);
    color: var(--cor-acento-dourado-claro);
}

.footer-social-links a i {
    color: var(--cor-acento-dourado);
    transition: color 0.3s ease;
}

.footer-social-links a:hover i {
    color: var(--cor-acento-dourado-hover);
}

.footer-copyright {
    font-size: 0.9rem;
}

.footer-privacy-link {
    color: var(--cor-acento-dourado-hover);
    text-decoration: none;
}

/* --- Carrossel --- */
.carousel-item img {
    object-fit: cover;
    height: 500px;
}

.meowth-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 1rem;
}

/* ===================================================================
   UTILITÁRIOS E EFEITOS
   =================================================================== */
.hover-effect {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .hover-effect:hover {
        transform: scale(1.03);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    }

.truncar-multilinha {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    width: 100%;
}

/* ===================================================================
   MEDIA QUERIES (RESPONSIVO)
   =================================================================== */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .playerText {
        text-align: left;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Layout */
    .navbar-brand,
    .navbar-nav {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    /* Ocultar elementos */
    .iconChampion,
    .left-arrow,
    .right-arrow {
        display: none;
    }

    /* Ajustes de fonte */
    .achievements-summary-number {
        font-size: 1rem !important;
        padding: 0;
    }

    /* Imagens */
    .media img {
        width: 90px;
        height: 90px;
    }

    .carousel-item img {
        height: 300px;
    }

    /* Grids */
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* ===================================================================
   ESTILOS ADICIONAIS E CORRETIVOS (Página Home)
   =================================================================== */

/* --- Divisor de Seção --- */
.section-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

    .section-divider::before,
    .section-divider::after {
        content: '';
        flex-grow: 1;
        height: 5px;
        background-color: var(--cor-texto);
        border-radius: 2px;
    }

.section-title {
    padding: 0 1.5rem;
    margin: 0;
    white-space: nowrap;
}



/* --- Card de Vídeo --- */
.video-card {
    border: 1px solid var(--cor-borda);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .video-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    .video-card .card-title {
        color: var(--cor-texto);
    }

/* --- Imagens de Eventos (Responsivo) --- */
.evento-imagem {
    border-radius: 20px;
    width: 100%;
    height: 300px; /* Altura fixa para um visual uniforme */
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    transition: transform 0.3s ease;
}

    .evento-imagem:hover {
        transform: scale(1.05);
    }

/* --- Carrossel (Responsivo) --- */
.carousel-image {
    /* Mantém a proporção e evita que a imagem fique muito alta em telas estreitas */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px; /* Adiciona bordas arredondadas ao carrossel */
    max-height: 550px; /* Define uma altura máxima para telas grandes */
}

.meowth-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 0 0 1rem 1rem; /* Arredonda apenas os cantos inferiores */
}

/* ===================================================================
   ESTILOS ADICIONAIS E CORRETIVOS (Página Time)
   =================================================================== */

.historia {
    background-color: var(--cor-fundo-secao); 
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 2rem; 
}

    .historia h2 {
        color: var(--cor-primaria);
    }

.player-card {
    position: relative; 
    overflow: hidden; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 350px; 
    background-color: #333; 
}

.player-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease-in-out;
}

.player-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--cor-primaria) 0%, transparent 100%);
    opacity: 0; 
    transition: opacity 0.4s ease-in-out;
}

.player-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: var(--cor-fundo);
    transform: translateY(100%); 
    transition: transform 0.4s ease-in-out;
}

.player-card .player-name {
    color: var(--cor-fundo); 
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.player-card:hover .player-card-img {
    transform: scale(1.1); 
}

.player-card:hover .player-card-overlay {
    opacity: 0.8; 
}

.player-card:hover .player-card-caption {
    transform: translateY(0); 
}

.btn-player-profile {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--cor-fundo);
    backdrop-filter: blur(5px);
    font-weight: 500;
}

    .btn-player-profile:hover {
        background-color: rgba(255, 255, 255, 1);
        color: var(--cor-primaria);
    }

/* ===================================================================
   ESTILOS ADICIONAIS: PÁGINA DE EVENTOS
   =================================================================== */

/* --- Seções e Cabeçalhos --- */
.section-gallery,
.section-testimonials,
.section-cta {
    padding: 4rem 1rem;
}

.section-testimonials {
    background-color: var(--cor-fundo-card); /* Cor de fundo para diferenciar a seção */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--cor-texto); /* Cor de texto padrão para títulos de seção */
        margin-bottom: 1rem;
    }

    .section-header p {
        font-size: 1.2rem;
        color: var(--cor-texto-secundario);
        max-width: 700px;
        margin: 0 auto;
    }

/* --- Botões de Filtro --- */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--cor-borda);
    background-color: var(--cor-fundo);
    color: var(--cor-texto-secundario);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn:hover {
        background-color: var(--cor-fundo-card);
        border-color: var(--cor-primaria);
    }

    .filter-btn.active {
        background: var(--cor-primaria);
        border-color: var(--cor-primaria);
        color: var(--cor-fundo);
        font-weight: 600;
    }

/* --- Galeria --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 20rem;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .gallery-item.hiding {
        opacity: 0;
        transform: scale(0.9);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.95rem;
}

.gallery-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem;
    border-radius: 9999px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: scale(1);
}


/* --- Depoimentos (Testimonials) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--cor-fundo);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
    border: 1px solid var(--cor-borda);
}

    .testimonial:hover {
        box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    }

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

    .testimonial-header h4 {
        color: var(--cor-texto);
        font-size: 1.1rem;
    }

        .testimonial-header h4 i {
            color: var(--cor-primaria);
            font-size: 0.9em;
        }

.testimonial-subtitle {
    font-size: 0.9rem;
    color: var(--cor-texto-secundario);
    margin: 0;
}

.testimonial-image {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    overflow: hidden;
    margin-right: 1rem;
    border: 2px solid var(--cor-primaria);
}

    .testimonial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.testimonial-rating {
    color: var(--cor-acento-dourado);
    margin-top: 1rem;
}

/* --- Seção CTA (Call to Action) --- */
.section-cta {
    background: linear-gradient(to right, var(--cor-primaria), var(--cor-acento-dourado));
    color: var(--cor-fundo);
    text-align: center;
}

.custom-cta-links h3 {
    color: var(--cor-fundo);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.cta-links-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--cor-fundo);
    color: var(--cor-primaria);
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

    .cta-button:hover {
        background-color: var(--cor-fundo-card);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

/* --- Modal da Imagem --- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .modal.flex {
        display: flex;
    }

    .modal.modal-active {
        opacity: 1;
    }

.modal-content {
    background: var(--cor-fundo);
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.modal.modal-active .modal-content {
    transform: scale(1);
}

.modal-header {
    position: relative;
}

    .modal-header img {
        width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .close-button:hover {
        background-color: rgba(0,0,0,0.8);
    }

.modal-body {
    padding: 1.5rem;
}

    .modal-body h3 {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: var(--cor-texto);
    }

    .modal-body p {
        color: var(--cor-texto-secundario);
    }

/* Estilo para o botão de mostrar/esconder senha */
.toggle-password {
    border-left: 0; /* Remove a borda dupla */
    cursor: pointer;
}

/* Melhora a aparência de inputs de data e hora */
.form-control[type="date"]::-webkit-calendar-picker-indicator,
.form-control[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5); /* Ajusta a cor do ícone do calendário para tons de cinza */
}

/* ===================================================================
   ESTILOS ADICIONAIS: FORMULÁRIO DE REGISTRO DE TORNEIO
   =================================================================== */

.form-section-card {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    .form-section-card h3 {
        color: var(--cor-primaria);
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid var(--cor-borda);
    }

/* Botão de Sucesso (Verde) */
.btn-success-meowth {
    background-color: #198754;
    color: #fff;
    border: 1px solid #198754;
}

    .btn-success-meowth:hover {
        background-color: #157347;
        border-color: #146c43;
    }

/* Botão de Perigo (Vermelho) */
.btn-danger-meowth {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

    .btn-danger-meowth:hover {
        background-color: #bb2d3b;
        border-color: #b02a37;
    }

/* Botão Secundário (Cinza) */
.btn-secondary-meowth {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

    .btn-secondary-meowth:hover {
        background-color: #5c636a;
        border-color: #565e64;
    }

/* Estilo para destacar campos de formulário com erro de validação */
.input-validation-error {
    border-color: #dc3545; 
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25); 
}

/* Ajuste para o formulário de Artigos */
.form-check-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
}

    .form-check-inline .form-check-input {
        margin-left: 0; 
        width: 1.25rem; 
        height: 1.25rem;
    }

/* ===================================================================
   ESTILOS ADICIONAIS: PÁGINA DE DETALHES DO ARTIGO
   =================================================================== */

.article-container {
    max-width: 800px; /* Limita a largura do texto para melhor legibilidade */
    margin: 2rem auto;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cor-borda);
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cor-texto);
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--cor-texto-secundario);
}

.article-actions {
    margin-top: 1rem;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--cor-texto);
}

    /* Estilizando o conteúdo que vem do CKEditor dentro do corpo do artigo */
    .article-body h2, .article-body h3, .article-body h4 {
        color: var(--cor-texto);
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .article-body a {
        color: var(--cor-primaria);
        text-decoration: underline;
    }

    .article-body blockquote {
        border-left: 4px solid var(--cor-primaria);
        padding-left: 1rem;
        margin-left: 0;
        font-style: italic;
        color: var(--cor-texto-secundario);
    }

/* --- Seção de Comentários --- */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cor-borda);
}

    .comments-section h3 {
        font-size: 1.8rem;
        color: var(--cor-texto);
        margin-bottom: 2rem;
    }

.comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

    .comment:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.comment-author {
    font-weight: 600;
    color: var(--cor-primaria);
}

.comment-form textarea {
    min-height: 120px;
}

/* Estilos para o bloco de código e botão de copiar nos artigos */
.article-body pre {
    background-color: #2d2d2d; /* Fundo escuro para o bloco de código */
    color: #f1f1f1;
    padding: 1rem;
    border-radius: 8px;
    white-space: pre-wrap; /* Garante a quebra de linha */
    word-wrap: break-word;
}

.btn-copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
    opacity: 0; /* O botão só aparece ao passar o mouse */
    transition: opacity 0.3s ease;
}

/* O wrapper que contém o bloco de código e o botão */
div[style="position: relative;"]:hover .btn-copy-code {
    opacity: 1; /* Faz o botão aparecer no hover */
}

.btn-copy-code:hover {
    background-color: #555;
}

/* ===================================================================
   COMPONENTE: Bloco de Decklist Expansível
   =================================================================== */

.decklist-container {
    background-color: var(--cor-fundo-secao);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

    .decklist-container[open] {
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

.decklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background-color: var(--cor-fundo-card);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.decklist-container[open] .decklist-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid var(--cor-borda);
}

.decklist-header:hover {
    background-color: #e9ecef; /* Um cinza um pouco mais escuro no hover */
}

.decklist-title {
    font-weight: 600;
    color: var(--cor-texto);
}

/* Ícone de seta (abre/fecha) */
.decklist-header::before {
    content: '▶';
    font-size: 0.8em;
    margin-right: 0.75rem;
    color: var(--cor-texto-secundario);
    transition: transform 0.2s ease-in-out;
}

.decklist-container[open] > .decklist-header::before {
    transform: rotate(90deg);
}

.decklist-body {
    padding: 1rem;
}

    .decklist-body pre {
        background-color: #2d2d2d;
        color: #f1f1f1;
        padding: 1rem;
        border-radius: 8px;
        white-space: pre-wrap;
        word-wrap: break-word;
        margin: 0;
    }

/* Ajuste no botão de copiar */
.decklist-header .copy-button {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    color: var(--cor-texto-secundario);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease-in-out;
}

    .decklist-header .copy-button:hover {
        color: var(--cor-primaria);
        border-color: var(--cor-primaria);
    }

    .decklist-header .copy-button.copied {
        background-color: #198754;
        border-color: #198754;
        color: #fff;
    }

/* ===================================================================
   ESTILOS ADICIONAIS: PAINEL ADMINISTRATIVO
   =================================================================== */
.dashboard-chart-card {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 100%;
}

    .dashboard-chart-card h5 {
        text-align: center;
        margin-bottom: 1.5rem;
        color: var(--cor-texto-secundario);
    }

/* ===================================================================
   ESTILOS ADICIONAIS: PÁGINA DE CONFIRMAÇÃO DE TORNEIO
   =================================================================== */

/* Card para seções de conteúdo na página de confirmação */
.confirmation-card {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 100%; /* Garante que os cards na mesma linha tenham a mesma altura */
}

    .confirmation-card h3 {
        color: var(--cor-primaria);
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid var(--cor-borda);
        font-size: 1.25rem;
    }

/* Estilos para a lista de partidas */
.match-list {
    list-style: none;
    padding-left: 0;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

    .match-item:last-child {
        border-bottom: none;
    }

.match-player {
    flex: 1;
}

/* Classes de destaque para o resultado */
.match-winner {
    font-weight: 600;
    color: #198754; /* Verde para vitória */
}

.match-loser {
    color: #6c757d; /* Cinza para o perdedor */
    text-decoration: line-through;
}

.match-tie {
    color: #6c757d; /* Cinza para empate */
    font-style: italic;
}

.vs-separator {
    margin: 0 1rem;
    color: var(--cor-texto-secundario);
    font-weight: 600;
}

/* ===================================================================
   ESTILOS ADICIONAIS: PÁGINA DE PERFIL DE USUÁRIO
   =================================================================== */

.stat-card {
    background-color: var(--cor-fundo-card);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .stat-card .stat-value {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--cor-primaria); /* Usa a cor laranja do tema */
    }

    .stat-card .stat-label {
        font-size: 0.9rem;
        color: var(--cor-texto-secundario);
        margin-bottom: 0;
    }