/* ========================================
   Claude Code Interactive Course - Hebrew
   ======================================== */

/* CSS Variables - Light slite-inspired theme */
:root {
  --primary: #1a1a2e;
  --primary-light: #2d2d44;
  --primary-dark: #0f0f1a;
  --secondary: #e5e2dd;
  --secondary-light: #ebe8e4;
  --accent: #7C3AED;
  --accent-light: #8b5cf6;
  --success: #059669;
  --success-light: #10B981;
  --warning: #d97706;
  --danger: #dc2626;
  --bg-dark: #F5F3F0;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf8;
  --bg-terminal: #1e1e2e;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e2dd;
  --glow-primary: rgba(26, 26, 46, 0.06);
  --glow-accent: rgba(124, 58, 237, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Heebo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

code {
  direction: ltr;
  unicode-bidi: embed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary);
}

/* ========== HEADER / NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(245, 243, 240, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 4px 15px var(--glow-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
  background: rgba(26, 26, 46, 0.05);
}

.nav-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.nav-progress-bar {
  width: 120px;
  height: 6px;
  background: var(--secondary);
  border-radius: 3px;
  overflow: hidden;
}

.nav-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 70px;
  right: 0;
  width: 300px;
  height: calc(100vh - 70px);
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 1.5rem;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.chapter-list {
  list-style: none;
  padding-bottom: 3rem;
}

.chapter-item {
  margin-bottom: 4px;
}

.chapter-btn {
  width: 100%;
  text-align: right;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.chapter-btn:hover {
  background: rgba(26, 26, 46, 0.04);
  color: var(--text-primary);
}

.chapter-btn.active {
  background: rgba(26, 26, 46, 0.06);
  color: var(--primary-light);
  font-weight: 600;
}

.chapter-btn.completed .chapter-num {
  background: var(--success);
  color: white;
}

.chapter-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.chapter-btn.active .chapter-num {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--glow-primary);
}

.sub-chapters {
  list-style: none;
  padding-right: 44px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sub-chapters.open {
  max-height: 500px;
}

.sub-chapter-btn {
  width: 100%;
  text-align: right;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-right: 2px solid var(--border-color);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.sub-chapter-btn:hover {
  color: var(--text-primary);
  border-right-color: var(--primary-light);
}

.sub-chapter-btn.active {
  color: var(--primary-light);
  border-right-color: var(--primary);
}

/* ========== MAIN CONTENT ========== */
.main-content {
  margin-top: 70px;
  margin-right: 300px;
  padding: 2rem 3rem;
  min-height: calc(100vh - 70px);
  max-width: 1000px;
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(26, 26, 46, 0.06);
  border: 1px solid rgba(26, 26, 46, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 2rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #7C3AED 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 25px var(--glow-primary);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px var(--glow-primary);
}

/* ========== CHAPTER SECTIONS ========== */
.chapter-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.chapter-section.active {
  display: block;
}

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

.chapter-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.chapter-header h2 {
  margin-bottom: 0.75rem;
}

.chapter-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(26, 26, 46, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon.orange { background: rgba(26, 26, 46, 0.06); }
.card-icon.purple { background: rgba(124, 58, 237, 0.08); }
.card-icon.green { background: rgba(16, 185, 129, 0.15); }
.card-icon.blue { background: rgba(59, 130, 246, 0.15); }
.card-icon.red { background: rgba(239, 68, 68, 0.15); }

.course-img {
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin: 1.5rem auto;
  display: block;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ========== TERMINAL / CODE ========== */
.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  direction: ltr;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #28CA41; }

.terminal-title {
  margin-right: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.terminal-prompt {
  color: var(--success);
  user-select: none;
  flex-shrink: 0;
}

.terminal-command {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--text-muted);
  padding-right: 20px;
}

.terminal-comment {
  color: #6A737D;
}

.terminal-highlight {
  color: var(--primary-light);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--primary-light);
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Copy button */
.copy-btn {
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  margin-right: auto;
}
.copy-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* ========== INTERACTIVE DEMO ========== */
.demo-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(26, 26, 46, 0.04);
  border-bottom: 1px solid var(--border-color);
}

.demo-header h4 {
  color: var(--primary-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-body {
  padding: 1.5rem;
}

.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
}

.chat-message {
  display: flex;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.chat-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chat-avatar.user {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.chat-avatar.claude {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.chat-bubble {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 80%;
  font-size: 0.95rem;
  line-height: 1.6;
}

.chat-bubble.claude-bubble {
  background: rgba(26, 26, 46, 0.04);
  border: 1px solid rgba(26, 26, 46, 0.06);
}

.demo-input-area {
  display: flex;
  gap: 10px;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.2);
}

.demo-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  direction: rtl;
  outline: none;
  transition: var(--transition);
}

.demo-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-primary);
}

.demo-input::placeholder {
  color: var(--text-muted);
}

.demo-send {
  padding: 12px 24px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.demo-send:hover {
  background: var(--primary-dark);
}

/* ========== STEPS ========== */
.steps {
  position: relative;
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  right: 20px;
  top: 45px;
  bottom: -20px;
  width: 2px;
  background: var(--border-color);
}

.step:last-child::before {
  display: none;
}

.step-num {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  z-index: 1;
  transition: var(--transition);
}

.step.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 20px var(--glow-primary);
}

.step.completed .step-num {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========== TABS ========== */
.tabs {
  margin: 2rem 0;
}

.tab-buttons {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--secondary);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--primary-light);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

/* ========== QUIZ ========== */
.quiz-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.quiz-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.quiz-header h4 {
  color: var(--accent-light);
  margin: 0;
}

.quiz-question {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option:hover {
  border-color: var(--accent-light);
  background: rgba(124, 58, 237, 0.05);
  color: var(--text-primary);
}

.quiz-option.correct {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-light);
}

.quiz-option.wrong {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.quiz-option .option-letter {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.quiz-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.quiz-feedback.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.quiz-feedback.correct {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-light);
}

.quiz-feedback.wrong {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

/* ========== CALLOUT / INFO BOXES ========== */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.3rem;
  min-width: 28px;
  text-align: center;
}

.callout.info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-right: 4px solid #3B82F6;
}

.callout.tip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 4px solid var(--success);
}

.callout.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-right: 4px solid var(--warning);
}

.callout.danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-right: 4px solid var(--danger);
}

/* ========== ACCORDION ========== */
.accordion {
  margin: 1.5rem 0;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  transition: var(--transition);
}

.accordion-trigger:hover {
  background: rgba(255,255,255,0.02);
}

.accordion-trigger .arrow {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.accordion-trigger.open .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

/* ========== PROGRESS TRACKER ========== */
.progress-tracker {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: var(--secondary);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* ========== USE CASE CARDS ========== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.usecase-preview {
  height: 180px;
  background: linear-gradient(135deg, var(--secondary), var(--bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.usecase-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.usecase-info {
  padding: 1.5rem;
}

.usecase-info h4 {
  margin-bottom: 0.5rem;
}

.usecase-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.usecase-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(26, 26, 46, 0.05);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary-light);
  margin-top: 0.75rem;
}

/* ========== CHAPTER NAVIGATION ========== */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.chapter-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  max-width: 45%;
}

.chapter-nav-btn:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.chapter-nav-btn .nav-direction {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== CHECKLIST ========== */
.checklist {
  list-style: none;
  margin: 1.5rem 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: var(--transition);
}

.checklist-item:hover {
  padding-right: 8px;
}

.checklist-box {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: transparent;
  font-size: 0.8rem;
}

.checklist-item.checked .checklist-box {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.checklist-item.checked .checklist-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ========== TYPING ANIMATION ========== */
.typing-effect {
  display: inline;
}

.typing-effect::after {
  content: '|';
  animation: typingBlink 0.7s infinite;
  color: var(--primary-light);
}

@keyframes typingBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-right: 0;
    padding: 1.5rem;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .chapter-nav { flex-direction: column; gap: 1rem; }
  .chapter-nav-btn { max-width: 100%; }
  .nav-links { display: none; }
  .tab-buttons { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .card { padding: 1.25rem; }
  .terminal-body { padding: 1rem; font-size: 0.8rem; }
}

/* ========== ANIMATIONS ========== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Glow effect on hover */
.glow-hover {
  transition: box-shadow 0.3s ease;
}
.glow-hover:hover {
  box-shadow: 0 0 30px var(--glow-primary);
}

/* Table styles */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.info-table th {
  background: rgba(255,255,255,0.03);
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.required {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
}
.badge.optional {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
}
.badge.free {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-light);
}

/* OS Selector */
.os-selector {
  display: flex;
  gap: 8px;
  margin: 1.5rem 0;
}

.os-btn {
  padding: 10px 24px;
  background: var(--secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.os-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.os-btn.active {
  background: rgba(26, 26, 46, 0.06);
  border-color: var(--primary);
  color: var(--primary-light);
}

.os-content {
  display: none;
}
.os-content.active {
  display: block;
}

/* Completion badge for chapter */
.chapter-complete-badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--success-light);
  margin-bottom: 1rem;
}

.chapter-complete-badge.show {
  display: inline-flex;
}
