/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap');

/* Base styles for interactive chart */
body {
  margin: 0;
  background: #111;
  color: white;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  gap: 30px;
}

/* Main layout when not using index page layout */
body.chart-page {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  gap: 30px;
}

/* Index page overrides */
body.index-page {
  display: block;
  background: #f9fafb;
  color: #111827;
  padding: 0;
}

/* Typography - Sora for headings, buttons, and navigation */
h1, h2, h3, h4, h5, h6,
button,
.btn,
nav a,
.nav-link {
  font-family: 'Sora', sans-serif;
}

/* SVG and chart styles */
svg {
  width: 85vw;
  height: auto;
  max-width: 700px;
  flex-shrink: 0;
}

.text-box {
  max-width: 400px;
  flex: 1;
  position: relative;
}

.content-wrapper {
  margin-top: 50px;
}

.impact-zone {
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.impact-zone.visible {
  opacity: 1;
}

.text-box h2 {
  margin-top: 0;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

.text-box p {
  line-height: 1.5;
  font-size: 1rem;
  font-weight: 400;
}

/* SVG interaction styles */
svg text {
  transition: fill 0.3s ease;
}

path.band {
  cursor: pointer;
  transition: fill 0.3s ease;
}

.default-tr { fill: #6c5ce7; }
.default-br { fill: #00cec9; }
.default-bl { fill: #fab1a0; }
.default-tl { fill: #fd79a8; }

.hovered,
.active {
  fill: white !important;
}

/* Toggle switch styles */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: #333;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: #00cec9;
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
  transform: translateX(30px);
}

.toggle-label {
  font-size: 0.9rem;
  color: #ccc;
  transition: color 0.3s ease;
  font-family: 'Sora', sans-serif;
}

.toggle-label.active {
  color: white;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

/* Action link styles */
.action-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Sora', sans-serif;
  transition: all 0.3s ease;
  border: 1px solid #555;
}

.action-link:hover {
  background: #555;
  border-color: #777;
  transform: translateY(-1px);
}

.action-link.hidden {
  display: none;
}

/* Header styles for chart page */
.chart-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #333;
  z-index: 1000;
  padding: 12px 0;
}

.chart-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00cec9;
  margin: 0;
  font-family: 'Sora', sans-serif;
}

.chart-header nav {
  display: flex;
  gap: 20px;
}

.chart-header nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Sora', sans-serif;
  transition: color 0.3s ease;
}

.chart-header nav a:hover {
  color: #00cec9;
}

/* Adjust body padding when header is present */
body.with-header {
  padding-top: 80px;
}

/* Chart container adjustments */
.chart-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

/* Course Layout Styles */
.course-layout {
  display: flex;
  min-height: calc(100vh - 73px); /* Account for header height */
}

.course-sidebar {
  width: 300px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 0;
  position: fixed;
  height: calc(100vh - 73px);
  overflow-y: auto;
  top: 73px;
  left: 0;
}

.course-content {
  flex: 1;
  margin-left: 300px;
  padding: 2rem;
  max-width: none;
}

.course-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  font-family: 'Sora', sans-serif;
}

.course-progress {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.course-nav {
  padding: 0;
}

.nav-section {
  border-bottom: 1px solid #e2e8f0;
}

.nav-section-header {
  padding: 1rem 1.5rem;
  background: #f1f5f9;
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  font-family: 'Sora', sans-serif;
}

.nav-lessons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-lesson {
  border-bottom: 1px solid #f1f5f9;
}

.nav-lesson:last-child {
  border-bottom: none;
}

.nav-lesson a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.875rem;
  font-family: 'Sora', sans-serif;
  transition: all 0.2s ease;
  position: relative;
}

.nav-lesson a:hover {
  background: #f8fafc;
  color: #4f46e5;
}

.nav-lesson.active a {
  background: #e0e7ff;
  color: #4f46e5;
  font-weight: 500;
}

.nav-lesson.active a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #4f46e5;
}

.lesson-status {
  float: right;
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-current {
  background: #dbeafe;
  color: #1e40af;
}

.status-locked {
  background: #f3f4f6;
  color: #6b7280;
}

/* Video Container */
.video-container {
  background: black;
  border-radius: 0.5rem;
  aspect-ratio: 16/9;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  position: relative;
  overflow: hidden;
}

.video-placeholder {
  text-align: center;
  padding: 2rem;
}

.video-placeholder h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-family: 'Sora', sans-serif;
}

.video-placeholder p {
  margin: 0;
  color: #d1d5db;
}

/* Script Section */
.script-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.script-header {
  display: flex;
  align-items: center;
  justify-content: between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.script-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  font-family: 'Sora', sans-serif;
}

.script-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.script-toggle:hover {
  background: #f1f5f9;
}

.script-content {
  line-height: 1.6;
  color: #374151;
}

.script-content.hidden {
  display: none;
}

/* Navigation buttons */
.lesson-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.nav-button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-family: 'Sora', sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-button.primary {
  background: #4f46e5;
  color: white;
}

.nav-button.primary:hover {
  background: #4338ca;
}

.nav-button.secondary {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.nav-button.secondary:hover {
  background: #f1f5f9;
}

/* Responsive design */
@media (max-width: 1024px) {
  .course-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .course-sidebar.open {
    transform: translateX(0);
  }
  
  .course-content {
    margin-left: 0;
  }
  
  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
  }
}

@media (min-width: 1025px) {
  .mobile-nav-toggle {
    display: none;
  }
} 