/* SLAM Training Site - Custom Styles */

:root {
    --slam-s: #e74c3c;
    --slam-l: #3498db;
    --slam-a: #f39c12;
    --slam-m: #2ecc71;
}

body {
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.slam-letter {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}
.slam-S { background-color: var(--slam-s); }
.slam-L { background-color: var(--slam-l); }
.slam-A { background-color: var(--slam-a); }
.slam-M { background-color: var(--slam-m); }

/* Module cards */
.module-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.module-card.completed {
    border-left: 4px solid #2ecc71;
}

/* Phishing email mockup */
.email-mockup {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-width: 700px;
    overflow: hidden;
}
.email-mockup .email-header {
    background: #f1f3f4;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 16px;
}
.email-mockup .email-body {
    padding: 16px;
    line-height: 1.6;
}
.phishing-flag {
    background-color: rgba(231, 76, 60, 0.15);
    border-bottom: 2px solid #e74c3c;
    cursor: help;
    padding: 0 2px;
    border-radius: 2px;
}

/* Quiz */
.question-card {
    border-left: 4px solid #6c757d;
}
.answer-correct { border-left-color: #2ecc71 !important; }
.answer-wrong { border-left-color: #e74c3c !important; }

/* Progress bar */
.progress { height: 10px; border-radius: 5px; }

/* Certificate */
.certificate-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Quiz one-at-a-time */
.q-choice {
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}
.q-choice:hover { border-color: #dee2e6; background: #f8f9fa; }
.q-choice-correct {
    border-color: #2ecc71 !important;
    background-color: rgba(46, 204, 113, 0.1) !important;
}
.q-choice-wrong {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.1) !important;
}

@keyframes q-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px); }
    40%       { transform: translateX(8px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}
@keyframes q-bounce {
    0%, 100% { transform: translateY(0); }
    40%      { transform: translateY(-8px); }
    70%      { transform: translateY(-4px); }
}
@keyframes reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.q-shake  { animation: q-shake 0.45s ease; }
.q-bounce { animation: q-bounce 0.45s ease; }
.q-reveal { animation: reveal 0.3s ease forwards; }

/* Blitz Mode */
#blitz-countdown-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,20,0.92);
    display: flex; align-items: center; justify-content: center;
    z-index: 9000;
}
#blitz-countdown-num {
    font-size: 8rem; font-weight: 900; color: #ffc107;
    animation: blitz-pop 0.6s ease;
    text-shadow: 0 0 40px rgba(255,193,7,0.6);
}
@keyframes blitz-pop {
    0%   { transform: scale(2.5); opacity: 0; }
    60%  { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1); }
}
.blitz-hud {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 12px 20px;
    color: #fff;
    margin-bottom: 12px;
}
.blitz-timer-wrap {
    height: 10px; border-radius: 5px;
    background: #2d2d3e; overflow: hidden; margin-bottom: 16px;
}
#blitz-timer-bar {
    height: 100%; border-radius: 5px;
    background: linear-gradient(90deg, #e74c3c, #ffc107);
    width: 100%;
}
.blitz-question-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 2rem;
}
.blitz-choice-btn {
    width: 100%; padding: 16px 20px;
    border-radius: 12px; font-size: 1rem; font-weight: 500;
    border: 2px solid #dee2e6; background: #f8f9fa; color: #212529;
    transition: transform 0.1s, border-color 0.15s, background 0.15s;
    text-align: left; cursor: pointer;
}
.blitz-choice-btn:hover:not(:disabled) {
    border-color: #adb5bd; background: #e9ecef;
    transform: translateY(-2px);
}
.blitz-choice-btn.blitz-correct {
    border-color: #2ecc71 !important;
    background: rgba(46,204,113,0.15) !important;
    color: #155724;
}
.blitz-choice-btn.blitz-wrong {
    border-color: #e74c3c !important;
    background: rgba(231,76,60,0.15) !important;
    color: #721c24;
}
.blitz-choice-btn.blitz-reveal {
    border-color: #2ecc71 !important;
    background: rgba(46,204,113,0.08) !important;
}
@keyframes blitz-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-10px); }
    40%      { transform: translateX(10px); }
    60%      { transform: translateX(-6px); }
    80%      { transform: translateX(6px); }
}
@keyframes blitz-correct-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.blitz-shake { animation: blitz-shake 0.4s ease; }
.blitz-pulse { animation: blitz-correct-pulse 0.5s ease; }
.blitz-heart { font-size: 1.4rem; transition: transform 0.2s, opacity 0.3s; display: inline-block; }
.blitz-heart.lost { transform: scale(0.3); opacity: 0; }
#blitz-streak-badge {
    background: linear-gradient(135deg, #ff6b35, #ffc107);
    color: #fff; border-radius: 20px;
    padding: 2px 14px; font-weight: 700; font-size: .85rem;
    animation: blitz-pop 0.4s ease;
}
#blitz-feedback-bar {
    min-height: 48px; font-size: 1.3rem; font-weight: 700;
    transition: opacity 0.2s;
}

/* Game */
.game-email-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    min-height: 300px;
    transition: border-color 0.3s;
}
.game-email-card.phishing-reveal { border-color: #e74c3c; }
.game-email-card.legit-reveal    { border-color: #2ecc71; }

.game-btn-phishing {
    background: #e74c3c; color: #fff;
    border: none; border-radius: 12px;
    padding: 18px 36px; font-size: 1.1rem; font-weight: 700;
    transition: transform 0.1s, box-shadow 0.1s;
}
.game-btn-phishing:hover { background: #c0392b; transform: scale(1.04); }
.game-btn-legit {
    background: #2ecc71; color: #fff;
    border: none; border-radius: 12px;
    padding: 18px 36px; font-size: 1.1rem; font-weight: 700;
    transition: transform 0.1s, box-shadow 0.1s;
}
.game-btn-legit:hover { background: #27ae60; transform: scale(1.04); }

/* Badge shelf */
.badge-slot {
    cursor: default;
    transition: transform 0.15s;
}
.badge-slot:hover { transform: scale(1.08); }
.badge-earned  { background: rgba(255, 193, 7, 0.15); border: 2px solid #ffc107; }
.badge-locked  { background: #f0f0f0; border: 2px solid #dee2e6; filter: grayscale(1); opacity: 0.55; }

/* ── Homepage ────────────────────────────────────────────────────────────── */
.hero-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  border-radius: .5rem;
  padding: 5rem 1rem;
  color: #fff;
}

.pillar-card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.pillar-icon { font-size: 2.5rem; margin-bottom: .75rem; }

.stats-bar {
  background: #f0f4f8;
  border-radius: .75rem;
  padding: 2.5rem 1rem;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
