/* YourTech Security Training — Interactive Module Styles */

/* ── Scenario Cards ──────────────────────────────────────── */
.scenario {
    background: #1a1f2e;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    position: relative;
}
.scenario-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #00d4aa;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.scenario-header::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00d4aa;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
}
.scenario-body {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.7;
}
.scenario-body .email-header {
    border-bottom: 1px solid #1e293b;
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #94a3b8;
}
.scenario-body .email-header strong { color: #e2e8f0; }

/* ── Click-to-Reveal ─────────────────────────────────────── */
.reveal-group { margin: 20px 0; }
.reveal-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: #1a1f2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s;
    font-family: inherit;
}
.reveal-btn:hover {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.1);
}
.reveal-btn .arrow {
    transition: transform 0.3s;
    color: #00d4aa;
    font-size: 18px;
}
.reveal-btn.open .arrow { transform: rotate(90deg); }
.reveal-content {
    display: none;
    padding: 16px 18px;
    margin-top: 4px;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
    animation: slideDown 0.3s ease;
}
.reveal-content.show { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Interactive Quiz (inline knowledge check) ───────────── */
.knowledge-check {
    background: #1a1f2e;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}
.knowledge-check h4 {
    color: #00d4aa;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}
.kc-question {
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 15px;
}
.kc-options { display: flex; flex-direction: column; gap: 8px; }
.kc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #cbd5e1;
}
.kc-option:hover { border-color: rgba(0, 212, 170, 0.3); }
.kc-option.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}
.kc-option.incorrect {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}
.kc-option .indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #4b5563;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}
.kc-option.correct .indicator { border-color: #10b981; background: #10b981; color: #fff; }
.kc-option.incorrect .indicator { border-color: #ef4444; background: #ef4444; color: #fff; }
.kc-feedback {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}
.kc-feedback.show { display: block; }
.kc-feedback.correct-fb { background: rgba(16, 185, 129, 0.1); border: 1px solid #10b981; color: #6ee7b7; }
.kc-feedback.incorrect-fb { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #fca5a5; }

/* ── Did You Know / Warning / Tip Callouts ───────────────── */
.callout {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.6;
}
.callout-title {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.callout.info { background: rgba(0, 212, 170, 0.08); border-left: 4px solid #00d4aa; color: #94dbcc; }
.callout.info .callout-title { color: #00d4aa; }
.callout.warning { background: rgba(245, 158, 11, 0.08); border-left: 4px solid #f59e0b; color: #fcd34d; }
.callout.warning .callout-title { color: #f59e0b; }
.callout.danger { background: rgba(239, 68, 68, 0.08); border-left: 4px solid #ef4444; color: #fca5a5; }
.callout.danger .callout-title { color: #ef4444; }
.callout.tip { background: rgba(99, 102, 241, 0.08); border-left: 4px solid #6366f1; color: #a5b4fc; }
.callout.tip .callout-title { color: #6366f1; }

/* ── Red Flags List ──────────────────────────────────────── */
.red-flags {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}
.red-flags h4 {
    color: #ef4444;
    font-size: 14px;
    margin: 0 0 12px 0;
}
.red-flags ul { list-style: none; padding: 0; margin: 0; }
.red-flags li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}
.red-flags li:last-child { border-bottom: none; }
.red-flags li::before {
    content: '\26A0';
    position: absolute;
    left: 0;
    color: #ef4444;
}

/* ── Action Steps ────────────────────────────────────────── */
.action-steps {
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}
.action-steps h4 {
    color: #00d4aa;
    font-size: 14px;
    margin: 0 0 12px 0;
}
.action-steps ol {
    padding-left: 0;
    margin: 0;
    counter-reset: steps;
    list-style: none;
}
.action-steps li {
    padding: 10px 0 10px 40px;
    position: relative;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
    counter-increment: steps;
    border-bottom: 1px solid rgba(0, 212, 170, 0.1);
}
.action-steps li:last-child { border-bottom: none; }
.action-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 10px;
    width: 26px;
    height: 26px;
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.stat-card {
    background: #1a1f2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #00d4aa;
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Comparison Table ────────────────────────────────────── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.compare-table th {
    background: rgba(0, 212, 170, 0.1);
    color: #00d4aa;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.compare-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
}
.compare-table tr:hover td { background: rgba(0, 212, 170, 0.03); }
.compare-table .good { color: #10b981; }
.compare-table .bad { color: #ef4444; }

/* ── Progress Tracker (within module) ────────────────────── */
.module-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 12px 16px;
    background: #1a1f2e;
    border-radius: 8px;
}
.module-progress .step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: #111827;
    border: 2px solid #1e293b;
    color: #64748b;
    transition: all 0.3s;
}
.module-progress .step.active { border-color: #00d4aa; color: #00d4aa; box-shadow: 0 0 10px rgba(0, 212, 170, 0.3); }
.module-progress .step.done { background: #00d4aa; border-color: #00d4aa; color: #0a0e17; }
.module-progress .line { flex: 1; height: 2px; background: #1e293b; }
.module-progress .line.done { background: #00d4aa; }
