/* ==========================================================================
   ABTalks - 60 Day Coding Challenge Design System
   Visual Style: Creative Student Notebook / Manga-Inspired Energy
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Caveat:wght@600;700&family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  /* Light Mode Color Tokens */
  --bg-primary: #E8E8E6;
  --bg-secondary: #F7F6F2;
  --accent-primary: #F6D96A;
  --accent-primary-hover: #f0cc47;
  --accent-secondary: #5CA9E6;
  --accent-secondary-hover: #4094d6;
  --bg-card: #FFFFFF;
  --border-color: #D7D7D7;
  --border-dark: #2F2F2F;
  --text-main: #2F2F2F;
  --text-muted: #666666;
  --success: #70C97B;
  --danger: #E57373;
  --shadow-sm: 0 4px 0 #2F2F2F;
  --shadow-md: 0 6px 0 #2F2F2F;
  --shadow-lg: 0 10px 0 #2F2F2F;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);

  /* Sticky Note Accent Colors */
  --note-yellow: #FFF9C4;
  --note-blue: #E1F5FE;
  --note-green: #E8F5E9;
  --note-pink: #FCE4EC;
  --note-purple: #F3E5F5;

  /* Fonts */
  --font-heading: 'Fredoka', 'Baloo 2', 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-handwriting: 'Caveat', cursive;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  /* Dark Mode Color Tokens */
  --bg-primary: #171A1F;
  --bg-secondary: #23272F;
  --accent-primary: #E9C46A;
  --accent-primary-hover: #d8b050;
  --accent-secondary: #74A8E8;
  --accent-secondary-hover: #5791d8;
  --bg-card: #2C313A;
  --border-color: #404652;
  --border-dark: #ECECEC;
  --text-main: #ECECEC;
  --text-muted: #A0A8B6;
  --success: #70C97B;
  --danger: #E57373;
  --shadow-sm: 0 4px 0 #000000;
  --shadow-md: 0 6px 0 #000000;
  --shadow-lg: 0 10px 0 #000000;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);

  --note-yellow: #383422;
  --note-blue: #1C2D3D;
  --note-green: #1E3325;
  --note-pink: #3D222A;
  --note-purple: #322238;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

.handwritten {
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  color: var(--accent-secondary);
  display: inline-block;
  transform: rotate(-2deg);
}

/* App Container */
#app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 40px;
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--bg-card);
  border-bottom: 3.5px solid var(--text-main);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--text-main);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), background var(--transition-fast);
}

.drawer-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-primary);
}

.drawer-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--text-main);
}

.brand-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.logo-img {
  height: 48px; /* Slightly taller to accommodate the text in the image */
  width: auto;
  object-fit: contain;
}

/* Light mode defaults (when data-theme is not dark) */
.logo-dark {
  display: none;
}
.logo-light {
  display: block;
}

/* Dark mode overrides */
[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="dark"] .logo-dark {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--text-main);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.flame-icon {
  animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.15) rotate(3deg); filter: drop-shadow(0 0 5px #F6D96A); }
  100% { transform: scale(0.95) rotate(-1deg); }
}

.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--text-main);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.05);
}

/* Slide-out Drawer Navigation (Matching Sketch 2) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-card);
  border-right: 4px solid var(--text-main);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

.drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 3px solid var(--text-main);
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
}

.close-drawer-btn {
  background: var(--bg-card);
  border: 2px solid var(--text-main);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-menu {
  list-style: none;
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}

.drawer-item {
  border-bottom: 2px dashed var(--border-color);
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  transition: background var(--transition-fast), padding-left var(--transition-fast);
  cursor: pointer;
}

.drawer-link:hover {
  background: var(--bg-secondary);
  padding-left: 32px;
  color: var(--accent-secondary);
}

.drawer-link.active {
  background: var(--accent-secondary);
  color: #FFFFFF;
}

.drawer-link.logout-link {
  color: var(--danger);
}

.drawer-link.logout-link:hover {
  background: #FFEBEE;
}

.drawer-footer {
  padding: 20px;
  border-top: 3px solid var(--text-main);
  background: var(--bg-secondary);
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--bg-card);
  border-top: 3px solid var(--text-main);
  display: none !important; /* Completely hidden as requested */
  justify-space-around;
  align-items: center;
  z-index: 90;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 60px;
  cursor: pointer;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-secondary);
  transform: translateY(-2px);
}

.nav-item.active svg {
  stroke: var(--accent-secondary);
  fill: var(--note-blue);
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: none;
  gap: 20px;
  align-items: center;
}

.desktop-nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.desktop-nav-link:hover, .desktop-nav-link.active {
  background: var(--accent-primary);
  color: var(--text-main);
}

/* Main Layout Views */
.view-container {
  display: none;
  width: 100%;
  box-sizing: border-box;
  padding: 24px 16px 80px;
  animation: fadeIn 0.3s ease-in-out;
}

.view-container.active {
  display: block;
}

@media (min-width: 768px) {
  .view-container {
    padding: 32px 24px 40px;
  }
}

@media (min-width: 1024px) {
  .view-container {
    padding: 40px 36px 40px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Common Card & Button Styles */
.card {
  background: var(--bg-card);
  border: 3.5px solid var(--text-main);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  box-shadow: 6px 6px 0 var(--text-main);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-centered {
  max-width: 540px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  margin-bottom: 24px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--text-main);
}

/* Sticky Note Style Cards */
.sticky-note {
  background-color: var(--note-yellow);
  border: 3px solid var(--text-main);
  border-radius: 4px 4px 18px 4px;
  padding: 20px;
  position: relative;
  transform: rotate(-1deg);
  box-shadow: 4px 6px 0 var(--text-main);
  transition: transform var(--transition-normal);
}

.sticky-note:nth-child(even) {
  transform: rotate(1.5deg);
  background-color: var(--note-blue);
}

.sticky-note:nth-child(3n) {
  transform: rotate(-1.2deg);
  background-color: var(--note-green);
}

.sticky-note:hover {
  transform: rotate(0deg) scale(1.02);
}

.tape-strip {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(0,0,0,0.2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.manga-sound-fx {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-primary);
  text-shadow: 2px 2px 0 var(--text-main);
  transform: rotate(-8deg);
  display: inline-block;
  margin: 0 4px;
}

.comic-bubble {
  position: relative;
  background: var(--bg-card);
  border: 3px solid var(--text-main);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.comic-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 30px;
  border-width: 12px 10px 0;
  border-style: solid;
  border-color: var(--text-main) transparent;
  display: block;
  width: 0;
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 16px;
  border: 3px solid var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--text-main);
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-main);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--accent-secondary);
  border-color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--accent-secondary);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  border: 2px dashed var(--border-color);
  box-shadow: none;
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--text-main);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 12px;
  border: 2px solid var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-yellow { background: var(--accent-primary); color: var(--text-main); }
.badge-blue { background: var(--accent-secondary); color: #FFFFFF; }
.badge-green { background: var(--success); color: #FFFFFF; }

/* Section Headers */
.section-header {
  margin-bottom: 24px;
  position: relative;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.underline-stroke {
  position: relative;
  display: inline-block;
}

.underline-stroke::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 4px;
  z-index: -1;
}

/* VIEW 1: LANDING PAGE */
.hero-section {
  text-align: center;
  padding: 40px 16px 20px;
  position: relative;
}

.hero-tag {
  background: var(--accent-primary);
  border: 2px solid var(--text-main);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

/* VIEW 2: STUDENT DASHBOARD */
.dashboard-header-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-card);
  border: 3px solid var(--text-main);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-box .val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-secondary);
}

.stat-box .lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-container {
  margin: 16px 0;
}

.progress-bar-bg {
  width: 100%;
  height: 18px;
  background: var(--bg-secondary);
  border: 2px solid var(--text-main);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   60-DAY WINDING JOURNEY MAP STYLES (Matching Hand-Drawn Reference Sketch)
   -------------------------------------------------------------------------- */
.challenge-journey-section {
  margin-top: 24px;
  position: relative;
  background: var(--bg-card);
  border: 3.5px solid var(--text-main);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 6px 6px 0 var(--text-main);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.map-main-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
  display: inline-block;
  background: var(--accent-primary);
  border: 3px solid var(--text-main);
  padding: 4px 16px;
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--text-main);
  transform: rotate(-1deg);
}

.map-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

.streak-shield-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--note-yellow);
  border: 2.5px solid var(--text-main);
  padding: 8px 14px;
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--text-main);
  max-width: 280px;
}

.streak-shield-card .shield-icon {
  font-size: 1.6rem;
}

.streak-shield-card .shield-text strong {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.streak-shield-card .shield-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  display: block;
}

/* Vertically Scrollable Map Area */
.journey-scroll-area {
  position: relative;
  width: 100%;
  max-height: 620px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 20px;
  border: 3px solid var(--text-main);
  background-color: var(--bg-secondary);
  background-image: radial-gradient(var(--border-color) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  box-shadow: inset 0 4px 14px rgba(0,0,0,0.06);
  scroll-behavior: smooth;
  margin-bottom: 20px;
}

.journey-canvas-container {
  position: relative;
  width: 100%;
  min-height: 2800px;
}

.journey-svg-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.journey-svg-path path.path-bg {
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

[data-theme="dark"] .journey-svg-path path.path-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.journey-svg-path path.path-fg {
  stroke: var(--text-muted);
  stroke-width: 3.5;
  stroke-dasharray: 8 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.journey-doodles-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.journey-nodes-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Day Nodes */
.journey-node {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--text-main);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--text-main);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  user-select: none;
}

.journey-node::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.journey-node:hover {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 4px 4px 0 var(--text-main);
  z-index: 30 !important;
}

.day-number-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
  pointer-events: none;
}

/* Node States */
.journey-node.completed {
  background: var(--success);
  border-color: var(--text-main);
  color: #FFFFFF;
}

.journey-node.completed .node-icon {
  font-weight: 900;
  font-size: 0.95rem;
}

/* Active Day Node (Day 12 - Today's Challenge) */
.journey-node.active {
  width: 52px;
  height: 52px;
  background: var(--accent-primary);
  border-color: var(--text-main);
  border-width: 3.5px;
  color: var(--text-main);
  font-size: 1.1rem;
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 5px var(--accent-secondary), 4px 4px 0 var(--text-main);
  animation: nodePulse 1.8s infinite;
  z-index: 25;
}

@keyframes nodePulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 169, 230, 0.7), 4px 4px 0 var(--text-main); }
  70% { box-shadow: 0 0 0 14px rgba(92, 169, 230, 0), 4px 4px 0 var(--text-main); }
  100% { box-shadow: 0 0 0 0 rgba(92, 169, 230, 0), 4px 4px 0 var(--text-main); }
}

.journey-node.locked {
  opacity: 0.5;
  background: var(--bg-secondary);
  cursor: not-allowed;
}

/* Milestone Nodes */
.journey-node.milestone {
  width: 60px;
  height: 60px;
  font-size: 1.4rem;
  border-width: 3.5px;
  box-shadow: 4px 4px 0 var(--text-main);
  z-index: 20;
}

.journey-node.milestone.milestone-start { background: var(--note-yellow); }
.journey-node.milestone.milestone-15 { background: var(--note-blue); }
.journey-node.milestone.milestone-30 { background: var(--note-purple); }
.journey-node.milestone.milestone-45 { background: var(--note-pink); }
.journey-node.milestone.milestone-60 { background: var(--accent-primary); }

/* Milestone Callout Cards */
.milestone-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 2.5px solid var(--text-main);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 3px 3px 0 var(--text-main);
  z-index: 15;
  white-space: nowrap;
  pointer-events: none;
}

.milestone-card.pos-left { right: calc(100% + 14px); }
.milestone-card.pos-right { left: calc(100% + 14px); }

.milestone-card .m-day {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.milestone-card .m-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--text-main);
}

/* Active Day Annotation Callout (Day 12 - Today's Challenge) */
.active-today-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--note-yellow);
  border: 3px solid var(--text-main);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 4px 4px 0 var(--text-main);
  z-index: 28;
  white-space: nowrap;
  pointer-events: none;
}

.active-today-card.pos-left { right: calc(100% + 16px); }
.active-today-card.pos-right { left: calc(100% + 16px); }

.active-today-card .today-tag {
  background: var(--accent-secondary);
  color: #FFFFFF;
  border: 1.5px solid var(--text-main);
  padding: 1px 8px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 900;
  display: inline-block;
  margin-bottom: 2px;
}

.active-today-card .today-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
}

/* Bottom Metrics Card */
.map-bottom-summary {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-secondary);
  border: 3px solid var(--text-main);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 4px 4px 0 var(--text-main);
  margin-top: 10px;
}

.summary-item {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.summary-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  display: block;
}

.summary-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.summary-item.highlight-item .summary-val {
  color: var(--accent-secondary);
}

/* Activity Heatmap Mock */
.activity-heatmap {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
}

.heatmap-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.heatmap-cell.level-1 { background: #C8E6C9; }
.heatmap-cell.level-2 { background: #81C784; }
.heatmap-cell.level-3 { background: #4CAF50; }

/* VIEW 3: CHALLENGE DAY VIEW (Interactive IDE / Problem Solver) */
.challenge-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.problem-card {
  background: var(--bg-card);
  border: 3px solid var(--text-main);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.code-editor-card {
  background: #1E1E1E;
  color: #D4D4D4;
  border: 3px solid var(--text-main);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.editor-header {
  background: #252526;
  padding: 10px 16px;
  border-bottom: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.85rem;
  color: #DDD;
}

.code-area {
  width: 100%;
  min-height: 220px;
  background: transparent;
  color: #9CDCFE;
  border: none;
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.test-results-panel {
  background: var(--bg-secondary);
  border: 2px solid var(--text-main);
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
  font-family: monospace;
  font-size: 0.85rem;
}

/* VIEW 4: PROFILE VIEW */
.profile-header-card {
  text-align: center;
  padding: 30px 20px;
}

.avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--text-main);
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.edit-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent-secondary);
  color: #fff;
  border: 2px solid var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.badge-item {
  background: var(--bg-card);
  border: 2px solid var(--text-main);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

/* VIEW 5: PASSWORDS AND MORE (Matching Sketch 2) */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2.5px solid var(--text-main);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(92, 169, 230, 0.2);
}

/* VIEW 6: HELP / FAQ */
.faq-item {
  border: 2.5px solid var(--text-main);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  padding: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
}

.faq-answer {
  padding: 0 16px 16px;
  color: var(--text-muted);
  display: none;
  border-top: 1.5px dashed var(--border-color);
  padding-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* VIEW 7: RATE US (Matching Sketch 2) */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 2.5rem;
  margin: 20px 0;
  cursor: pointer;
}

.star-rating span {
  transition: transform 0.2s ease, color 0.2s ease;
  color: #D7D7D7;
}

.star-rating span.hover,
.star-rating span.active {
  color: #F6D96A;
  transform: scale(1.2);
}

/* Modals & Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open,
.modal-backdrop.active {
  display: flex !important;
}

.modal-content {
  background: var(--bg-card);
  border: 4px solid var(--text-main);
  border-radius: 24px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   STUDENT EXPERIENCE EXTENSIONS & COMPONENT STYLES
   -------------------------------------------------------------------------- */

/* Quiz Cards */
.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.quiz-card {
  background: var(--bg-secondary);
  border: 2.5px solid var(--text-main);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--text-main);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.quiz-card:hover {
  transform: translateY(-4px);
  background: var(--note-yellow);
}

.quiz-card.selected {
  background: var(--accent-primary);
  border-width: 3px;
  box-shadow: 5px 5px 0 var(--text-main);
}

.quiz-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

/* Timeline */
.timeline-vertical {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  margin-top: 20px;
  padding-left: 20px;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--text-main);
  border-radius: 2px;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--text-main);
  flex-shrink: 0;
}

.timeline-content {
  background: var(--bg-card);
  border: 2.5px solid var(--text-main);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 3px 3px 0 var(--text-main);
  flex: 1;
}

/* Feed */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-secondary);
  border: 2px solid var(--text-main);
  border-radius: 14px;
}

.feed-fire {
  font-size: 1.5rem;
}

.feed-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Auth Split Wrapper */
.auth-split-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  min-height: calc(100vh - 180px);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .auth-split-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* Onboarding */
.onboarding-step-indicator {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.step-pill {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border: 2px solid var(--text-main);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.step-pill.active {
  background: var(--accent-primary);
  color: var(--text-main);
  box-shadow: 2px 2px 0 var(--text-main);
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.track-select-card {
  border: 2.5px solid var(--text-main);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card);
  box-shadow: 2px 3px 0 var(--text-main);
  transition: transform 0.2s ease, background 0.2s ease;
}

.track-select-card.selected,
.track-select-card:hover {
  background: var(--note-yellow);
  transform: translateY(-3px);
}

.t-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.radio-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2.5px solid var(--text-main);
  border-radius: 14px;
  padding: 14px;
  background: var(--bg-card);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--text-main);
}

/* Dashboard Header Stats */
.dashboard-header-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-card);
  border: 3px solid var(--text-main);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--text-main);
}

.stat-box .val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
}

.stat-box .lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Skills */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.skill-bar-bg {
  height: 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--text-main);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent-secondary);
  border-radius: 8px;
  transition: width 0.8s ease-in-out;
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* Podium */
.podium-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 12px; /* space for scrollbar */
}
@media (min-width: 768px) {
  .podium-wrapper {
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.podium-card {
  background: var(--bg-card);
  border: 3px solid var(--text-main);
  border-radius: 20px 20px 0 0;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--text-main);
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  flex-shrink: 0;
}

.podium-card.rank-1 { min-height: 230px; background: var(--note-yellow); }
.podium-card.rank-2 { min-height: 195px; background: var(--note-blue); }
.podium-card.rank-3 { min-height: 165px; background: var(--note-green); }

.podium-avatar {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.podium-rank-tag {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  margin-top: 8px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  font-size: 0.9rem;
}

/* Admin Control Panel Tabs */
.admin-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 16px;
  border-bottom: 2.5px solid var(--border-color);
}

.admin-tab-btn {
  background: var(--bg-card);
  border: 2.5px solid var(--text-main);
  border-radius: 12px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--text-main);
  transition: transform 0.2s ease, background 0.2s ease;
}

.admin-tab-btn:hover,
.admin-tab-btn.active {
  background: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--text-main);
}

/* Confetti Canvas Overlay */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* Hero Stats Redesign */
.dashboard-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.hero-stat-card {
  background: #0f52ba;
  color: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.15);
  border: 3px solid #082f6e;
}

.hero-icon {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.2));
}

.hero-divider {
  width: 3px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-label {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: -4px;
  text-transform: uppercase;
}

.hero-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hero-val {
  font-family: var(--font-handwriting);
  font-size: 4rem;
  color: var(--accent-primary);
  line-height: 1;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.hero-subtext {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  color: #7bb5ff;
  line-height: 1.2;
}

.hero-unit {
  font-family: var(--font-handwriting);
  font-size: 1.8rem;
  color: var(--accent-primary);
  font-weight: bold;
}

.hero-footer-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.8rem;
  color: #7bb5ff;
  margin-top: -4px;
  letter-spacing: 0.5px;
}

/* Media Queries for Desktop Expansion */
@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-header-stats { grid-template-columns: repeat(4, 1fr); }
  .challenge-workspace { grid-template-columns: 1fr 1fr; }
  .bottom-nav { display: none; }
  .desktop-nav { display: flex; }
  #app { padding-bottom: 40px; }
}

/* End of ABTalks Stylesheet - Built for the Hackathon */
