:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #19233c;
  --bg-surface: #0f1626;
  --border-color: rgba(148, 163, 184, 0.16);
  --border-highlight: rgba(56, 189, 248, 0.45);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --claude-orange: #f97316;
  --claude-glow: rgba(249, 115, 22, 0.2);
  --godot-blue: #38bdf8;
  --godot-glow: rgba(56, 189, 248, 0.2);
  --blender-amber: #fb923c;
  --success-green: #22c55e;
  --purple-accent: #a855f7;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(249, 115, 22, 0.12), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(56, 189, 248, 0.12), transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.08), transparent 40%);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
}

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  background: linear-gradient(135deg, var(--claude-orange), var(--godot-blue));
  color: #fff;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-tab {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--border-highlight);
}

/* Main Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero Banner */
.hero {
  background: linear-gradient(145deg, rgba(19, 27, 46, 0.95), rgba(15, 22, 38, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.pill-claude {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.pill-godot {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.pill-room {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.65rem;
  background: linear-gradient(90deg, #ffffff, #93c5fd, #fdba74);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  max-width: 740px;
  font-size: 1rem;
}

.progress-card {
  background: rgba(11, 15, 25, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  min-width: 270px;
}

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

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--claude-orange), var(--godot-blue));
  width: 0%;
  transition: width 0.35s ease;
}

.progress-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tool Stack Cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-top: 1.65rem;
}

.tool-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
}

.tool-card.orange:hover {
  border-color: var(--claude-orange);
}

.tool-card.blue:hover {
  border-color: var(--godot-blue);
}

.tool-card.amber:hover {
  border-color: var(--blender-amber);
}

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

.tool-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.08rem;
}

.tool-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.tool-link {
  color: var(--godot-blue);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.tool-link:hover {
  text-decoration: underline;
}

/* Section Switching */
.view-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

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

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

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.phase-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-filter {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter.active, .btn-filter:hover {
  background: rgba(249, 115, 22, 0.18);
  color: #fff;
  border-color: var(--claude-orange);
}

.search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 240px;
}

.search-input:focus {
  outline: none;
  border-color: var(--godot-blue);
}

/* Weeks Grid */
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.2rem;
}

.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.week-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.week-card.completed {
  border-color: rgba(34, 197, 94, 0.45);
}

.week-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.week-num {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--godot-blue);
}

.week-score {
  font-size: 0.78rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
}

.week-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #fff;
}

.week-deliverable {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.week-tools {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mini-tag {
  font-size: 0.74rem;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.week-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.btn-primary {
  background: linear-gradient(135deg, var(--claude-orange), #ea580c);
  color: #fff;
  border: none;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: rgba(56, 189, 248, 0.14);
  color: var(--godot-blue);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.check-label input {
  accent-color: var(--success-green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Prompt Builder & Code Vault */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.panel-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--claude-orange);
}

.code-box {
  background: #070a12;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.86rem;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.55;
  max-height: 360px;
  overflow-y: auto;
}

.code-vault-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vault-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* Cheat Sheet Table */
.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.kbd {
  background: rgba(251, 146, 60, 0.16);
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.faq-item {
  background: var(--bg-surface);
  border-left: 4px solid var(--claude-orange);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.85rem;
}

.faq-q {
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.faq-a {
  color: var(--text-main);
  font-size: 0.88rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-list {
  padding-left: 1.25rem;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.modal-list li {
  margin-bottom: 0.35rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #10b981;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 300;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Video Theater & YouTube Embed */
.video-theater {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.video-theater-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 920px) {
  .video-theater-grid {
    grid-template-columns: 1fr;
  }
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #050811;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ep-badge {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ep-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ep-item:hover, .ep-item.active {
  border-color: var(--claude-orange);
  background: rgba(249, 115, 22, 0.1);
}

