/* ========================================
   TELA DE QUESTÕES FULLSCREEN
   Layout idêntico ao Simulado - cabe na tela SEM SCROLL
   ======================================== */

/* Container principal fullscreen */
#questionsFullscreenContainer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#questionsFullscreenContainer.active {
    display: flex;
}

/* Header com timer e progresso - MINIMALISTA */
.fullscreen-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 20px; /* Ainda mais compacto */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.fullscreen-title {
    font-size: 16px; /* Menor */
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fullscreen-title i {
    color: #2563eb;
    font-size: 18px;
}

.fullscreen-progress {
    font-size: 13px; /* Menor */
    color: #6b7280;
    font-weight: 600;
}

.fullscreen-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px; /* Menor */
    font-weight: 700;
    color: #2563eb;
}

.fullscreen-timer i {
    font-size: 16px;
}

/* Container de conteúdo SEM SCROLL - tudo visível na tela */
.fullscreen-content {
    flex: 1;
    overflow: hidden; /* SEM SCROLL */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center; /* Centralizado verticalmente */
}

/* Card da questão - MÁXIMO DE ALTURA */
.fullscreen-question-card {
    background: white;
    border-radius: 12px;
    padding: 15px 20px; /* Ainda mais compacto */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px); /* Menos espaço usado (140px ao invés de 200px) */
    overflow: hidden; /* SEM SCROLL no card */
}

/* Meta informações (badges) - ULTRA COMPACTO */
.fullscreen-question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Menor */
    margin-bottom: 10px; /* Menor */
}

.fullscreen-badge {
    padding: 3px 10px; /* Mais compacto */
    border-radius: 6px;
    font-size: 11px; /* Menor */
    font-weight: 600;
    display: inline-block;
}

.fullscreen-badge.tema {
    background: #dbeafe;
    color: #1e40af;
}

.fullscreen-badge.banca {
    background: #d1fae5;
    color: #065f46;
}

.fullscreen-badge.dificuldade {
    background: #fef3c7;
    color: #92400e;
}

.fullscreen-badge.ano {
    background: #e5e7eb;
    color: #374151;
}

/* Texto da questão - ULTRA COMPACTO */
.fullscreen-question-text {
    font-size: 15px; /* Menor */
    line-height: 1.5; /* Menor */
    color: #1f2937;
    margin-bottom: 12px; /* Menor */
    font-weight: 500;
    flex-shrink: 0;
}

/* Alternativas - ULTRA COMPACTO para caber sem scroll */
.fullscreen-alternatives {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Menor */
    flex: 1;
    overflow-y: auto; /* Scroll APENAS nas alternativas se necessário */
    max-height: 350px; /* Mais altura disponível */
}

.fullscreen-alternative {
    display: flex;
    align-items: center;
    padding: 10px 12px; /* Menor */
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fullscreen-alternative:hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateX(5px);
}

.fullscreen-alternative.selected {
    background: #dbeafe;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.fullscreen-alternative.correct {
    background: #d1fae5;
    border-color: #10b981;
}

.fullscreen-alternative.incorrect {
    background: #fee2e2;
    border-color: #ef4444;
}

.fullscreen-alternative.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.fullscreen-alternative-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin-right: 15px;
    flex-shrink: 0;
}

.fullscreen-alternative.selected .fullscreen-alternative-letter {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.fullscreen-alternative.correct .fullscreen-alternative-letter {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.fullscreen-alternative.incorrect .fullscreen-alternative-letter {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.fullscreen-alternative-text {
    font-size: 14px; /* Menor */
    color: #374151;
    line-height: 1.5;
    flex: 1;
}

/* Feedback após responder - ULTRA COMPACTO */
.fullscreen-feedback {
    margin-top: 10px; /* Menor */
    padding: 12px; /* Menor */
    border-radius: 8px;
    display: none;
    flex-shrink: 0;
}

.fullscreen-feedback.show {
    display: block;
}

.fullscreen-feedback.correct {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.fullscreen-feedback.incorrect {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.fullscreen-feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.fullscreen-feedback-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.fullscreen-feedback.correct .fullscreen-feedback-icon {
    background: #10b981;
    color: white;
}

.fullscreen-feedback.incorrect .fullscreen-feedback-icon {
    background: #ef4444;
    color: white;
}

.fullscreen-feedback-title {
    font-size: 18px;
    font-weight: 700;
}

.fullscreen-feedback.correct .fullscreen-feedback-title {
    color: #065f46;
}

.fullscreen-feedback.incorrect .fullscreen-feedback-title {
    color: #991b1b;
}

.fullscreen-feedback-text {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

/* Histórico de erros/acertos (sem explicação para free/basic) */
.fullscreen-history {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.fullscreen-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}

.fullscreen-history-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.fullscreen-history-stats span {
    font-weight: 600;
}

/* Explicação (apenas para PREMIUM) */
.fullscreen-explanation {
    margin-top: 15px;
    padding: 15px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

.fullscreen-explanation-title {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-explanation-text {
    font-size: 14px;
    line-height: 1.6;
    color: #78350f;
}

/* Rodapé com botões de navegação - ULTRA COMPACTO */
.fullscreen-footer {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 20px; /* Ainda mais reduzido */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.fullscreen-nav-buttons {
    display: flex;
    gap: 10px;
}

.fullscreen-btn {
    padding: 8px 20px; /* Ainda mais reduzido */
    border: none;
    border-radius: 8px;
    font-size: 14px; /* Menor */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.fullscreen-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.fullscreen-btn-primary {
    background: #2563eb;
    color: white;
}

.fullscreen-btn-primary:hover:not(:disabled) {
    background: #1e40af;
}

.fullscreen-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.fullscreen-btn-secondary:hover:not(:disabled) {
    background: #d1d5db;
}

.fullscreen-btn-danger {
    background: #ef4444;
    color: white;
}

.fullscreen-btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

/* Tela de conclusão */
.fullscreen-complete {
    text-align: center;
    padding: 50px 30px;
}

.fullscreen-complete-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 20px;
}

.fullscreen-complete-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.fullscreen-complete-text {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
}

.fullscreen-complete-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.fullscreen-complete-stat {
    text-align: center;
}

.fullscreen-complete-stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #2563eb;
}

.fullscreen-complete-stat-label {
    font-size: 16px;
    color: #6b7280;
    margin-top: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .fullscreen-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .fullscreen-question-card {
        padding: 20px;
    }

    .fullscreen-question-text {
        font-size: 16px;
    }

    .fullscreen-alternative {
        padding: 14px 16px;
    }

    .fullscreen-alternative-text {
        font-size: 14px;
    }

    .fullscreen-footer {
        flex-direction: column;
        gap: 15px;
    }

    .fullscreen-nav-buttons {
        width: 100%;
        flex-direction: column;
    }

    .fullscreen-btn {
        width: 100%;
        justify-content: center;
    }

    .fullscreen-complete-stats {
        flex-direction: column;
        gap: 20px;
    }
}
