/**
 * Youth Bible Studies - Design System
 * 
 * This file defines the core visual design system including:
 * - Journey stage color schemes (Explore, Engage, Immerse)
 * - Go Deeper section type colors
 * - Responsive breakpoints
 * - Typography system
 * - Spacing scale
 * - Component utilities
 * 
 * Requirements: 2.2, 2.8, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* Journey Stage Colors - Explore Path (Blue/Green - Welcoming) */
  --explore-primary: #4ecdc4;
  --explore-secondary: #44a08d;
  --explore-light: #e8f8f5;
  --explore-dark: #2c7a7b;
  --explore-gradient: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);

  /* Journey Stage Colors - Engage Path (Orange/Amber - Energetic) */
  --engage-primary: #ff6b6b;
  --engage-secondary: #ffa07a;
  --engage-light: #fff5f5;
  --engage-dark: #c53030;
  --engage-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffa07a 100%);

  /* Journey Stage Colors - Immerse Path (Purple/Deep Blue - Contemplative) */
  --immerse-primary: #6c5ce7;
  --immerse-secondary: #a29bfe;
  --immerse-light: #f5f3ff;
  --immerse-dark: #5f3dc4;
  --immerse-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);

  /* Go Deeper Section Type Colors */
  --go-deeper-context: #3b82f6; /* Blue - Historical/Cultural Context */
  --go-deeper-connections: #10b981; /* Green - Cross-References */
  --go-deeper-theology: #8b5cf6; /* Purple - Theological Deep Dive */
  --go-deeper-language: #f59e0b; /* Amber - Original Language */
  --go-deeper-questions: #ef4444; /* Red - Challenging Questions */

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography - Plus Jakarta Sans for sharp, modern youth feel */
  --font-family-base: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Courier New", Courier, monospace;

  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing Scale */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */

  /* Border Radius */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Breakpoints (for use in media queries) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Touch Target Minimum (Accessibility) */
  --touch-target-min: 44px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile First - Default styles are for mobile */

/* Small devices (landscape phones, 640px and up) */
@media (min-width: 640px) {
  :root {
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.625rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2rem;
  }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  :root {
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 3rem;
  }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
  :root {
    --font-size-4xl: 3.5rem;
  }
}

/* ============================================
   JOURNEY STAGE UTILITY CLASSES
   ============================================ */

/* Explore Path Utilities */
.path-explore {
  --path-primary: var(--explore-primary);
  --path-secondary: var(--explore-secondary);
  --path-light: var(--explore-light);
  --path-dark: var(--explore-dark);
  --path-gradient: var(--explore-gradient);
}

.bg-explore-primary {
  background-color: var(--explore-primary);
}
.bg-explore-secondary {
  background-color: var(--explore-secondary);
}
.bg-explore-light {
  background-color: var(--explore-light);
}
.bg-explore-dark {
  background-color: var(--explore-dark);
}
.bg-explore-gradient {
  background: var(--explore-gradient);
}

.text-explore-primary {
  color: var(--explore-primary);
}
.text-explore-secondary {
  color: var(--explore-secondary);
}
.text-explore-dark {
  color: var(--explore-dark);
}

.border-explore-primary {
  border-color: var(--explore-primary);
}
.border-explore-secondary {
  border-color: var(--explore-secondary);
}

/* Engage Path Utilities */
.path-engage {
  --path-primary: var(--engage-primary);
  --path-secondary: var(--engage-secondary);
  --path-light: var(--engage-light);
  --path-dark: var(--engage-dark);
  --path-gradient: var(--engage-gradient);
}

.bg-engage-primary {
  background-color: var(--engage-primary);
}
.bg-engage-secondary {
  background-color: var(--engage-secondary);
}
.bg-engage-light {
  background-color: var(--engage-light);
}
.bg-engage-dark {
  background-color: var(--engage-dark);
}
.bg-engage-gradient {
  background: var(--engage-gradient);
}

.text-engage-primary {
  color: var(--engage-primary);
}
.text-engage-secondary {
  color: var(--engage-secondary);
}
.text-engage-dark {
  color: var(--engage-dark);
}

.border-engage-primary {
  border-color: var(--engage-primary);
}
.border-engage-secondary {
  border-color: var(--engage-secondary);
}

/* Immerse Path Utilities */
.path-immerse {
  --path-primary: var(--immerse-primary);
  --path-secondary: var(--immerse-secondary);
  --path-light: var(--immerse-light);
  --path-dark: var(--immerse-dark);
  --path-gradient: var(--immerse-gradient);
}

.bg-immerse-primary {
  background-color: var(--immerse-primary);
}
.bg-immerse-secondary {
  background-color: var(--immerse-secondary);
}
.bg-immerse-light {
  background-color: var(--immerse-light);
}
.bg-immerse-dark {
  background-color: var(--immerse-dark);
}
.bg-immerse-gradient {
  background: var(--immerse-gradient);
}

.text-immerse-primary {
  color: var(--immerse-primary);
}
.text-immerse-secondary {
  color: var(--immerse-secondary);
}
.text-immerse-dark {
  color: var(--immerse-dark);
}

.border-immerse-primary {
  border-color: var(--immerse-primary);
}
.border-immerse-secondary {
  border-color: var(--immerse-secondary);
}

/* ============================================
   GO DEEPER SECTION STYLING
   ============================================ */

/* Base Go Deeper Section */
.go-deeper-section {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border-left: 4px solid var(--color-gray-300);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

/* Collapsed State */
.go-deeper-section.collapsed {
  padding: var(--space-4);
  cursor: pointer;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-left: 4px solid var(--color-gray-300);
}

.go-deeper-section.collapsed:hover {
  background: var(--color-gray-50);
  box-shadow: var(--shadow-sm);
}

/* Expanded State */
.go-deeper-section.expanded {
  box-shadow: var(--shadow-md);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
}

/* Go Deeper Header */
.go-deeper-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}

.go-deeper-icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.go-deeper-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-800);
  flex: 1;
}

.go-deeper-toggle {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

/* Only the chevron icon rotates; heading and icon stay fixed */
.go-deeper-chevron {
  transition: transform var(--transition-fast);
}

.go-deeper-section.expanded .go-deeper-chevron {
  transform: rotate(90deg);
}

.go-deeper-content {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-200);
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
}

/* Type-Specific Colors */
.go-deeper-context {
  border-left-color: var(--go-deeper-context);
}

.go-deeper-context.expanded {
  border-left-color: var(--go-deeper-context);
  background: rgba(59, 130, 246, 0.02);
}

.go-deeper-context .go-deeper-title {
  color: var(--go-deeper-context);
}

.go-deeper-connections {
  border-left-color: var(--go-deeper-connections);
}

.go-deeper-connections.expanded {
  border-left-color: var(--go-deeper-connections);
  background: rgba(16, 185, 129, 0.02);
}

.go-deeper-connections .go-deeper-title {
  color: var(--go-deeper-connections);
}

.go-deeper-theology {
  border-left-color: var(--go-deeper-theology);
}

.go-deeper-theology.expanded {
  border-left-color: var(--go-deeper-theology);
  background: rgba(139, 92, 246, 0.02);
}

.go-deeper-theology .go-deeper-title {
  color: var(--go-deeper-theology);
}

.go-deeper-language {
  border-left-color: var(--go-deeper-language);
}

.go-deeper-language.expanded {
  border-left-color: var(--go-deeper-language);
  background: rgba(245, 158, 11, 0.02);
}

.go-deeper-language .go-deeper-title {
  color: var(--go-deeper-language);
}

.go-deeper-questions {
  border-left-color: var(--go-deeper-questions);
}

.go-deeper-questions.expanded {
  border-left-color: var(--go-deeper-questions);
  background: rgba(239, 68, 68, 0.02);
}

.go-deeper-questions .go-deeper-title {
  color: var(--go-deeper-questions);
}

/* ============================================
   CORE STUDY VS GO DEEPER DISTINCTION
   ============================================ */

/* Core Study Content - Full Width, Standard Styling */
.core-study-content {
  background: var(--color-white);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.core-study-section {
  margin-bottom: var(--space-8);
}

.core-study-section:last-child {
  margin-bottom: 0;
}

/* Visual Distinction Marker */
.go-deeper-marker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-8) 0 var(--space-6);
  padding: var(--space-4);
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.go-deeper-marker::before {
  content: "📚";
  font-size: var(--font-size-xl);
}

/* ============================================
   BADGE COMPONENTS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Path Badges */
.badge-explore {
  background: var(--explore-light);
  color: var(--explore-dark);
  border: 1px solid var(--explore-primary);
}

.badge-engage {
  background: var(--engage-light);
  color: var(--engage-dark);
  border: 1px solid var(--engage-primary);
}

.badge-immerse {
  background: var(--immerse-light);
  color: var(--immerse-dark);
  border: 1px solid var(--immerse-primary);
}

/* Progress Badges */
.badge-not-started {
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-300);
}

.badge-in-progress {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.badge-completed {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid var(--color-success);
}

.badge-revisited {
  background: #ddd6fe;
  color: #5b21b6;
  border: 1px solid #8b5cf6;
}

/* Testament Badges */
.badge-ot {
  background: #fef3c7;
  color: #92400e;
}

.badge-nt {
  background: #dbeafe;
  color: #1e40af;
}

/* ============================================
   COLLAPSIBLE SECTIONS
   ============================================ */

.collapsible {
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.collapsible.collapsed {
  max-height: 0;
}

.collapsible.expanded {
  max-height: 5000px; /* Large enough for content */
}

.collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-align: left;
  transition: background-color var(--transition-fast);
}

.collapsible-trigger:hover {
  background: var(--color-gray-50);
}

.collapsible-trigger:focus {
  outline: 2px solid var(--color-info);
  outline-offset: 2px;
}

.collapsible-icon {
  transition: transform var(--transition-fast);
}

.collapsible.expanded .collapsible-icon {
  transform: rotate(180deg);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

/* Study Card Grid */
.study-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .study-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .study-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* Study Viewer Layout */
.study-viewer-layout {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .study-viewer-layout {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing Utilities */
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--space-1);
}
.mt-2 {
  margin-top: var(--space-2);
}
.mt-3 {
  margin-top: var(--space-3);
}
.mt-4 {
  margin-top: var(--space-4);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-8 {
  margin-top: var(--space-8);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--space-1);
}
.mb-2 {
  margin-bottom: var(--space-2);
}
.mb-3 {
  margin-bottom: var(--space-3);
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mb-6 {
  margin-bottom: var(--space-6);
}
.mb-8 {
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.p-2 {
  padding: var(--space-2);
}
.p-4 {
  padding: var(--space-4);
}
.p-6 {
  padding: var(--space-6);
}
.p-8 {
  padding: var(--space-8);
}

/* Text Utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.font-normal {
  font-weight: var(--font-weight-normal);
}
.font-medium {
  font-weight: var(--font-weight-medium);
}
.font-semibold {
  font-weight: var(--font-weight-semibold);
}
.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Display Utilities */
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}

/* Flex Utilities */
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.gap-2 {
  gap: var(--space-2);
}
.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}
.gap-6 {
  gap: var(--space-6);
}

/* Border Utilities */
.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-full {
  border-radius: var(--radius-full);
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Transition Utilities */
.transition-fast {
  transition: all var(--transition-fast);
}
.transition-base {
  transition: all var(--transition-base);
}
.transition-slow {
  transition: all var(--transition-slow);
}

/* Accessibility Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible */
.focus-visible:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: 2px;
}

/* Touch Target Minimum */
.touch-target {
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
}

/* ============================================
   BIBLE STUDIES HERO & SECTIONS (light)
   ============================================ */

.ybs-hero {
  padding: 2.5rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
}

.ybs-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: inherit;
}

.ybs-hero__subtitle {
  font-size: 1.125rem;
  margin: 0;
  opacity: 0.95;
  color: inherit;
}

.ybs-navigation {
  padding: 1rem 0;
}

.ybs-studies {
  padding: 2rem 0;
}

.ybs-loading,
.ybs-no-results {
  padding: 2rem 1rem;
  text-align: center;
}

.ybs-loading p,
.ybs-no-results p {
  margin: 0 0 1rem;
}

/* ============================================
   RECOMMENDATIONS SECTION
   ============================================ */

.ybs-recommendations {
  padding: 2rem 0;
  background: var(--color-bg-secondary);
}

.ybs-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-primary);
}

.recommendation-reason {
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #6366f1;
  margin-top: -8px;
}

.recommendation-reason strong {
  font-weight: 600;
}

/* ============================================
   DARK MODE (youth section toggle .dark-mode)
   ============================================ */

.dark-mode {
  --color-background: #0f172a;
  --color-surface: #1e293b;
  --color-surface-elevated: #334155;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-border: #334155;
  --color-bg-secondary: #1e293b;
  --color-bg-tertiary: #334155;
  --color-text: #f1f5f9;
  --color-primary: #818cf8;
}

.dark-mode .ybs-recommendations {
  background: var(--color-bg-tertiary);
}

.dark-mode .ybs-section-title {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-primary);
}

.dark-mode .recommendation-reason {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

/* Bible Studies hero & sections in dark mode */
.dark-mode .ybs-hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: var(--color-text-primary);
}

.dark-mode .ybs-hero__title,
.dark-mode .ybs-hero__subtitle {
  color: var(--color-text-primary);
}

.dark-mode .ybs-hero__subtitle {
  color: var(--color-text-secondary);
}

.dark-mode .ybs-navigation {
  background: var(--color-background);
}

.dark-mode .ybs-studies,
.dark-mode .ybs-loading,
.dark-mode .ybs-no-results {
  color: var(--color-text-primary);
  background: var(--color-background);
}

.dark-mode .ybs-loading p,
.dark-mode .ybs-no-results p {
  color: var(--color-text-secondary);
}

.dark-mode .ybs-no-results .btn {
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

/* Go Deeper & core study in dark mode */
.dark-mode .go-deeper-section {
  background: var(--color-surface);
  border-left-color: var(--color-border);
}

.dark-mode .go-deeper-section.collapsed {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.dark-mode .go-deeper-section.expanded {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.dark-mode .go-deeper-title {
  color: var(--color-text-primary);
}

.dark-mode .go-deeper-content {
  color: var(--color-text-secondary);
  border-top-color: var(--color-border);
}

.dark-mode .core-study-content {
  background: var(--color-surface);
}

.dark-mode .go-deeper-marker {
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
}

.dark-mode .collapsible-trigger:hover {
  background: var(--color-surface-elevated);
}
