/**
 * CSS: Filtros de Simulados (estilo Questões Comentadas)
 * Blue Concursos

/* Layout Principal */
.bc-simulados-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Sidebar de Filtros */
.bc-filtros-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.bc-filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.bc-filtros-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.bc-limpar-filtros {
    font-size: 0.85rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.bc-limpar-filtros:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Grupos de Filtro */
.bc-filtro-grupo {
    margin-bottom: 20px;
}

.bc-filtro-grupo label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.bc-filtro-grupo select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
}

.bc-filtro-grupo select:hover {
    border-color: #cbd5e1;
}

.bc-filtro-grupo select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Botão Filtrar */
.bc-btn-filtrar {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.bc-btn-filtrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

/* Content Area */
.bc-simulados-content {
    min-height: 400px;
}

.bc-resultados-info {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.bc-resultados-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}

/* Grid de Simulados */
.bc-simulados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.bc-simulado-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bc-simulado-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.bc-simulado-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.bc-simulado-card:hover .bc-simulado-overlay {
    opacity: 1;
}

/* ============================================
   PROBLEMA 3: Botão "Fazer Online" Sempre Branco
   ============================================ */

.bc-btn-fazer-simulado {
    background: #2563eb;
    color: white !important; /* ← FORÇAR BRANCO */
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.bc-btn-fazer-simulado:hover {
    background: #1e40af; /* ← Escurecer fundo */
    color: white !important; /* ← MANTER BRANCO */
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.bc-simulado-content {
    padding: 20px;
}

.bc-simulado-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.bc-simulado-titulo a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.bc-simulado-titulo a:hover {
    color: #2563eb;
}

/* Tags */
.bc-simulado-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-banca {
    background: #dbeafe;
    color: #1e40af;
}

.tag-nivel {
    background: #dcfce7;
    color: #166534;
}

.tag-ano {
    background: #fef3c7;
    color: #92400e;
}

/* Meta Info */
.bc-simulado-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.meta-item strong {
    color: #475569;
    margin-right: 4px;
}

/* Actions */
.bc-simulado-actions {
    display: flex;
    gap: 12px;
}

.bc-btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    display: inline-block;
    flex: 1;
}

.bc-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.bc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}

/* Sem Resultados */
.bc-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.bc-no-results h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.bc-no-results a {
    color: #2563eb;
    font-weight: 600;
}

/* Paginação */
.bc-pagination {
    text-align: center;
    margin-top: 40px;
}

.bc-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: white;
    color: #2563eb;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.bc-pagination .page-numbers:hover,
.bc-pagination .page-numbers.current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Responsivo */
@media (max-width: 1024px) {
    .bc-simulados-layout {
        grid-template-columns: 1fr;
    }

    .bc-filtros-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .bc-simulados-grid {
        grid-template-columns: 1fr;
    }

    .bc-filtros-sidebar {
        padding: 16px;
    }

    .bc-simulado-card {
        max-width: 100%;
    }
}


/* ============================================
   HEADER CHAMATIVO (estilo outras páginas)
   ============================================ */
.bc-archive-header {
    margin-bottom: 60px;
    text-align: center;
}   
   
.bc-page-title {
    font-size: 3.8em;
    color: #333;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #2563eb;
    display: inline-block;
}

.bc-page-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.bc-header-stats {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    animation: fadeIn 1s ease-out 0.4s both;
}

.bc-stat-item {
    text-align: center;
}

.bc-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.bc-stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .bc-archive-header {
        padding: 60px 20px 40px;
    }
    
    .bc-page-title {
        font-size: 2.5rem;
    }
    
    .bc-page-title::before {
        font-size: 3rem;
    }
    
    .bc-page-description {
        font-size: 1.1rem;
    }
    
    .bc-header-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .bc-stat-number {
        font-size: 2rem;
    }
}


/* ============================================
   PROBLEMA 2: Card Inteiro Clicável
   ============================================ */

.bc-simulado-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer; /* ← ADICIONAR */
}

.bc-simulado-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: #2563eb;
}

.bc-simulado-card:hover .bc-simulado-thumbnail img {
    transform: scale(1.1);
}



.bc-simulado-content {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Desabilitar clicks no conteúdo */
    padding: 20px;
}

.bc-simulado-content a,
.bc-simulado-content button {
    pointer-events: auto; /* Reabilitar apenas nos links/botões */
    position: relative;
    z-index: 3;
}



/* ============================================
   PROBLEMA 11: Navegação Rápida - Números Menores
   ============================================ */

.bc-navegacao-rapida {
    position: sticky;
    top: 120px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.bc-navegacao-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.bc-navegacao-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ← 5 colunas */
    gap: 8px; /* ← Gap menor */
}

.bc-navegacao-numero {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem; /* ← REDUZIDO de 1rem */
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.bc-navegacao-numero:hover {
    transform: scale(1.05);
    border-color: #2563eb;
    color: #2563eb;
}

.bc-navegacao-numero.atual {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.bc-navegacao-numero.respondida {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.bc-navegacao-numero.marcada {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.bc-navegacao-numero.vazia {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #94a3b8;
}

/* Legenda */
.bc-navegacao-legenda {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.bc-legenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.bc-legenda-cor {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.bc-legenda-cor.atual { background: #2563eb; }
.bc-legenda-cor.respondida { background: #10b981; }
.bc-legenda-cor.marcada { background: #f59e0b; }
.bc-legenda-cor.vazia { background: #e2e8f0; }

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
    .bc-navegacao-rapida {
        position: static;
        max-height: none;
        margin-top: 20px;
    }
    
    .bc-navegacao-grid {
        grid-template-columns: repeat(7, 1fr); /* ← Mais colunas em tablet */
    }
}

@media (max-width: 768px) {
    .bc-navegacao-grid {
        grid-template-columns: repeat(10, 1fr); /* ← MUITO mais colunas em mobile */
        gap: 6px;
    }
    
    .bc-navegacao-numero {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .bc-navegacao-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Botão Flutuante de Filtros */
.bc-btn-filtros-mobile {
    display: none; /* ← FORÇA escondido em desktop */
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
    cursor: pointer;
    align-items: center; /* ← SEM display: flex aqui */
    gap: 8px;
    transition: all 0.3s;
}

.bc-btn-filtros-mobile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.5);
}

/* Sidebar Mobile */
@media (max-width: 1024px) {
    .bc-btn-filtros-mobile {
        display: flex !important; /* ← Mobile: AGORA SIM aparece */
    }
    
    .bc-filtros-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: 90%;
        max-width: 320px;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0,0,0,0.2);
    }
    
    .bc-filtros-sidebar.ativo {
        left: 0;
    }
    
    .bc-filtros-header::after {
        content: '✕';
        position: absolute;
        top: 24px;
        right: 24px;
        font-size: 1.5rem;
        color: #64748b;
        cursor: pointer;
    }
}