/* ============================================================
   Night City Academy — page chrome + light mode
   ------------------------------------------------------------
   main.css is DARK by default (matching index.html). This file
   supplies the optional daylight palette plus the prev/next
   nav bar and the theme toggle button.
   ============================================================ */

/* ===== LIGHT MODE ==========================================
   Because main.css is built entirely on custom properties,
   light mode is just a different set of token values.        */
body.lesson.light-mode {
  --nc-bg:        #eef1f7;
  --nc-bg-2:      #e1e7f1;
  --nc-surface:   #ffffff;
  --nc-surface-2: #f2f6fc;
  --nc-line:      #c6d2e4;

  --nc-text:      #26324a;
  --nc-text-dim:  #4c5a70;
  --nc-text-hi:   #0d1526;
  --nc-card-ink:  #1a2233;

  --nc-cyan:      #0a5d6e;
  --nc-red:       #c0244f;
  --nc-amber:     #96620a;
  --nc-teal:      #0f5f59;
  --nc-violet:    #6338bd;
  --nc-green:     #0d7a49;
}

/* kill the neon glows — they read as smudges on a light field */
body.lesson.light-mode h1,
body.lesson.light-mode main h2,
body.lesson.light-mode .neon-text,
body.lesson.light-mode a:hover { text-shadow: none; }

body.lesson.light-mode::before {
  background-image:
    linear-gradient(rgba(11, 113, 134, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 113, 134, 0.05) 1px, transparent 1px);
}

body.lesson.light-mode th {
  background: linear-gradient(180deg, #e8eef8, #dde6f3);
}

body.lesson.light-mode pre { background: #f7f9fd; }

body.lesson.light-mode canvas { filter: none; }

/* ===== PREV / NEXT NAV BAR ================================= */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #0c1220, #16203a);
  border-bottom: 1px solid var(--nc-line);
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.page-nav-bottom {
  border-bottom: 0;
  border-top: 1px solid var(--nc-line);
  margin-top: 40px;
}

.page-nav a {
  color: var(--nc-cyan) !important;
  text-decoration: none;
  border: 1px solid rgba(0, 229, 255, 0.32) !important;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.08);
  padding: 9px 18px;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.page-nav a:hover {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.28);
  transform: translateY(-1px);
  text-shadow: none !important;
}
.page-nav .nav-home { font-weight: 700; background: rgba(0, 229, 255, 0.16); }
.page-nav .nav-placeholder { width: 130px; }

body.lesson.light-mode .page-nav {
  background: linear-gradient(135deg, #dfe7f3, #cdd9ec);
}
body.lesson.light-mode .page-nav a {
  background: rgba(11, 113, 134, 0.09);
  border-color: rgba(11, 113, 134, 0.35) !important;
}
body.lesson.light-mode .page-nav a:hover {
  background: rgba(11, 113, 134, 0.2);
  box-shadow: 0 0 14px rgba(11, 113, 134, 0.25);
}

/* ===== THEME TOGGLE ======================================== */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  background: rgba(7, 7, 14, 0.72);
  border: 2px solid var(--nc-cyan);
  color: var(--nc-cyan);
  backdrop-filter: blur(4px);
  transition: transform 0.25s, box-shadow 0.25s;
}
.theme-toggle:hover {
  transform: scale(1.14);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}
body.lesson.light-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--nc-cyan);
  color: var(--nc-cyan);
}
body.lesson.light-mode .theme-toggle:hover {
  box-shadow: 0 0 18px rgba(11, 113, 134, 0.35);
}

@media (max-width: 600px) {
  .page-nav { font-size: 0.7rem; padding: 9px 10px; gap: 6px; }
  .page-nav a { padding: 7px 10px; }
  .page-nav .nav-placeholder { width: 0; }
  .theme-toggle { width: 40px; height: 40px; font-size: 1.15rem; top: 12px; right: 12px; }
}
