/* Lumen MSP Learn — shares the Insights visual language (dark chrome, gradient
   wordmark, same cards/tables/buttons) with its own accent so the two tools read
   as siblings but stay distinguishable.
     Insights = green→blue · N3twrx = indigo→cyan · Learn = violet→blue. */
:root {
  --lumen-violet: #8b5cf6;
  --lumen-blue:   #3b82f6;
  --lumen-indigo: #6366f1;
  --lumen-dark:   #0f172a;
  --lumen-navy:   #1e293b;
  --accent:       #7c3aed;
  --accent-dark:  #6d28d9;
  --text:         #111827;
  --muted:        #6b7280;
  --line:         #e5e7eb;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #f0f2f5; color: var(--text); font-size: 14px; padding-top: 54px; }

/* Nav */
.topnav {
  display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 54px;
  background: var(--lumen-dark);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--lumen-violet), var(--lumen-blue)) 1;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.topnav-brand { display: flex; align-items: center; gap: 10px; margin-right: 16px; }
.topnav-logo {
  font-size: 17px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--lumen-violet), var(--lumen-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.topnav-sub { font-size: 10px; color: #475569; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; margin-left: 2px; }
.topnav-links { display: flex; gap: 4px; flex: 1; }
.topnav-links a { color: #94a3b8; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.topnav-links a:hover { background: rgba(255,255,255,.07); color: #e2e8f0; }
.topnav-user { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #64748b; }
.topnav-user a { color: #64748b; text-decoration: none; }
.topnav-user a:hover { color: #94a3b8; }

/* Layout */
.main { padding: 28px; max-width: 1100px; margin: 0 auto; }
.page-header { margin-bottom: 24px; }
.page-header h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header h2 { margin: 0; font-size: 16px; }

/* Topic grid (landing) */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.topic-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.topic-card:hover { box-shadow: 0 6px 20px rgba(15,23,42,.08); transform: translateY(-2px); border-color: #ddd6fe; }
.topic-card h3 { margin: 0 0 6px; font-size: 16px; }
.topic-card .meta { font-size: 12px; color: var(--muted); }

/* Question blocks */
.question { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; background: #fff; }
.question .qhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.question .prompt { font-weight: 600; }
.choice { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.choice:hover { background: #f5f3ff; }
.choice input { accent-color: var(--accent); }

/* Table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #f9fafb; }

/* Badges */
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; display: inline-block; }
.badge-foundation { background: #ede9fe; color: #5b21b6; }
.badge-core       { background: #e0f2fe; color: #0369a1; }
.badge-advanced   { background: #fef3c7; color: #92400e; }
.badge-pass       { background: #dcfce7; color: #166534; }
.badge-fail       { background: #fee2e2; color: #b91c1c; }

/* Buttons */
.btn-primary  { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-block; cursor: pointer; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-block; cursor: pointer; }
.btn-secondary:hover { background: #f9fafb; }

/* Result rows */
.ans-correct { color: #166534; font-weight: 600; }
.ans-wrong   { color: #b91c1c; font-weight: 600; }
.result-row.correct { background: #f0fdf4; }
.result-row.wrong   { background: #fef2f2; }
.score-big { font-size: 40px; font-weight: 800; background: linear-gradient(135deg, var(--lumen-violet), var(--lumen-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Utils */
.muted { color: var(--muted); }
.empty-state { text-align: center; padding: 48px 32px; color: #9ca3af; }
.stat-strip { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 4px; }
.stat-strip .stat b { font-size: 20px; }

/* Alerts */
.alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; font-weight: 500; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
