/* ========================================
   DESAFIOS CLÍNICOS STYLES
   ======================================== */

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero */
.page-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
}

.page-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
}

/* Novo Momento */
.new-moment-btn {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 40px;
    padding: 20px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(139, 92, 246, .3);
}

.new-moment-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, .4);
}

/* Card do Momento */
.moment-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.context-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(139, 92, 246, .1);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.context-section {
    background: rgba(139, 92, 246, .05);
    padding: 24px;
    border-radius: 20px;
    border-left: 6px solid var(--color-primary);
    margin: 24px 0;
}

.critical-moment {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 32px;
    border-radius: 20px;
    border-left: 6px solid #fb923c;
    margin: 32px 0;
}

.dialogue {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}

.non-verbal {
    font-size: 1rem;
    color: #e65100;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ffb74d;
}

.decision-point {
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 16px;
    font-weight: 700;
    color: #2e7d32;
    font-size: 1.2rem;
    margin: 32px 0;
}

/* Opções */
.options-grid {
    display: grid;
    gap: 16px;
    margin: 32px 0;
}

.option-card {
    padding: 20px;
    background: var(--bg-card);
    border: 3px solid var(--border-light);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
    display: flex;
    align-items: flex-start;
}

.option-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
}

.option-card.selected {
    border-color: var(--color-primary);
    background: rgba(139, 92, 246, .08);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .2);
}

.option-card.correct {
    border-color: #10b981;
    background: #ecfdf5;
}

.option-card.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
}

.option-letter {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.option-card.correct .option-letter {
    background: #10b981;
}

.option-card.incorrect .option-letter {
    background: #ef4444;
}

/* Raciocínio */
.reasoning-section {
    margin-top: 32px;
}

.reasoning-textarea {
    width: 100%;
    min-height: 100px;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border .3s;
}

.reasoning-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .15);
}

/* Botões */
.submit-btn,
.next-moment-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 18px 40px;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    width: 100%;
}

.submit-btn:hover,
.next-moment-btn:hover {
    transform: scale(1.05);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Feedback */
.feedback-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.feedback-header {
    text-align: center;
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 32px;
    font-size: 2rem;
    font-weight: 800;
}

.feedback-header.correct {
    background: #ecfdf5;
    color: #10b981;
}

.feedback-header.incorrect {
    background: #fff7ed;
    color: #f97316;
}

.feedback-section {
    background: rgba(139, 92, 246, .05);
    padding: 28px;
    border-radius: 20px;
    margin: 24px 0;
    border-left: 6px solid var(--color-primary);
}

.principle-box {
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
    border-left: 6px solid var(--color-primary);
    padding: 24px;
    margin: 28px 0;
    font-style: italic;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;

    .moment-card,
    .feedback-card {
        padding: 32px 24px;
    }
}

/* ========================================
   PAINEL DE PROGRESSO (TRIAL / PREMIUM)
   ======================================== */

.progress-panel {
    margin: 32px auto 40px;
    padding: 28px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border-left: 6px solid var(--color-primary);
}

.progress-panel strong {
    font-size: 1.4rem;
    font-weight: 900;
    display: block;
    margin-bottom: 16px;
    color: var(--color-primary);
}

/* GRID DE MÉTRICAS */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* ITEM INDIVIDUAL */
.progress-item {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.progress-item:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
}

.progress-item strong {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 6px;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TEXTO SECUNDÁRIO */
.progress-item span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* MODO TRIAL – VISUAL DIFERENCIADO */
.progress-panel.trial {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-left-color: #f97316;
}

.progress-panel.trial strong {
    color: #f97316;
}

/* ========================================
   TRIAL – AVISOS E BLOQUEIO (ANIMADO)
   ======================================== */

.hidden {
    display: none;
}

/* Base comum */
.trial-warning,
.trial-block {
    margin: 60px auto 0;
    padding: 48px 32px;
    max-width: 520px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    animation: fadeUp .6s ease forwards;
}

/* Ícone */
.trial-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quase acabando */
.trial-warning {
    border-left: 6px solid #facc15;
}

.trial-warning .trial-icon {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

/* Encerrado */
.trial-block {
    border-left: 6px solid #f97316;
}

.trial-block .trial-icon {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.trial-icon svg {
    width: 32px;
    height: 32px;
}

/* Texto */
.trial-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* CTA */
.upgrade-btn {
    background: linear-gradient(135deg, #facc15, #fbbf24);
    color: #1f2937;
    border: none;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.4);
    transition: all .25s ease;
}

.upgrade-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 40px rgba(250, 204, 21, 0.55);
}

/* Entrada suave */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}