﻿/*
Theme Name: LearnAnything
Theme URI: https://learnanything4free.com
Author: LearnAnything Team
Author URI: https://learnanything4free.com
Description: Open-access curriculum and technical roadmaps theme with interactive filters, certifications, and project vaults. Zero ads, zero paywalls.
Version: 1.0.2
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learnanything
Tags: education, dark-theme, responsive-layout, modern, grid-layout, custom-menu
*/

/* WordPress Admin Bar Compatibility */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ==========================================================================
   learnanything4free.com - Ultra-Premium Clean Architecture & Design System
   Calm, elegant, eye-friendly palette inspired by Linear, Stripe & Raycast
   ========================================================================== */

:root {
  /* Canvas & Obsidian Surfaces - Softer on the eyes */
  --bg-canvas: #090a10;
  --bg-surface: #10131d;
  --bg-surface-elevated: #161a27;
  --bg-surface-hover: #1c2233;
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --bg-subtle-hover: rgba(255, 255, 255, 0.06);

  /* Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(56, 189, 248, 0.4);

  /* Refined Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090a10;

  /* Domain Specific Harmonious Accents */
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-violet: #a855f7;
  --accent-rose: #f43f5e;
  --accent-indigo: #6366f1;

  /* Elevation Shadows & Top Shine */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px -4px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 24px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Radii */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Font Families */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-subtle: rgba(0, 0, 0, 0.02);
  --bg-subtle-hover: rgba(0, 0, 0, 0.05);

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.22);
  --border-accent: rgba(14, 165, 233, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Base & Soft Canvas
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-wrap: break-word;
  /* Soft, gentle radial glow at the top, faint unobtrusive grid */
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.06) 0%, rgba(99, 102, 241, 0.03) 40%, transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 700px, 40px 40px, 40px 40px;
  background-position: top center, center top, center top;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Badges & Tags
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.725rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.badge.free {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.badge.cyan {
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.25);
}

.badge.amber {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.25);
}

.badge.violet {
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent-violet);
  border-color: rgba(168, 85, 247, 0.25);
}

.badge.rose {
  background: rgba(244, 63, 94, 0.08);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.25);
}

.section-header {
  text-align: left;
  max-width: 760px;
  margin: 0 0 28px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #090a10;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .btn-primary {
  background: #090a10;
  color: #ffffff;
  border-color: #000000;
}

[data-theme="light"] .btn-primary:hover {
  background: #1e293b;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.775rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 11px 22px;
  font-size: 0.925rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header & Nav - Ultra-Modern Clean Aesthetic
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
}

.site-header .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-surface-elevated) 0%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.brand-logo:hover .brand-icon-box {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.brand-domain {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.brand-title {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-founder {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.01em;
  margin-top: 3px;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle-hover);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-subtle);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.search-trigger-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.search-kbd {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-xs);
  font-size: 0.725rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  white-space: nowrap;
}

.theme-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.mobile-menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  text-align: left;
  max-width: 960px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 22px;
}

/* Raycast-style Hero Command Bar */
.hero-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  max-width: 620px;
  margin-bottom: 26px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.hero-command-bar:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

.command-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

/* Stats Row */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Skill Pathfinder Banner
   ========================================================================== */
.pathfinder-banner {
  margin: 28px 0 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.pathfinder-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pathfinder-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ==========================================================================
   Domain Filter Group & Category Tabs
   ========================================================================== */
.domain-filter-group {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.domain-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.775rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.domain-pill-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.domain-pill-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.category-tabs-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}

.category-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.825rem;
  transition: all var(--transition-fast);
}

.category-tab-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.category-tab-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
  font-weight: 600;
}

/* ==========================================================================
   Roadmap Engine: Two Columns
   ========================================================================== */
.roadmap-container {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.roadmap-container > * {
  min-width: 0;
}

.roadmap-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: sticky;
  top: 76px;
  min-width: 0;
  box-shadow: var(--shadow-card);
}

.roadmap-summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.roadmap-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.roadmap-progress-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px;
  margin-bottom: 14px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-emerald);
  transition: width 0.3s ease;
}

.roadmap-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
}

.meta-label {
  color: var(--text-muted);
}

.meta-val {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Roadmap Stages & Linear Milestones */
.roadmap-stages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

.stage-card:hover {
  border-color: var(--border-medium);
}

.stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.stage-badge-number {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.stage-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stage-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milestone-row {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.milestone-row:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
}

.milestone-row.completed {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.2);
}

.milestone-row.completed .milestone-title {
  color: var(--text-muted);
  text-decoration: line-through;
}

.milestone-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.milestone-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 44px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.milestone-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.milestone-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.milestone-check-btn {
  width: 19px;
  height: 19px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.725rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.milestone-row.completed .milestone-check-btn {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #090a10;
  font-weight: 800;
}

/* Guided Phase Stepper Track */
.roadmap-phase-track {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.phase-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.phase-step-item:hover, .phase-step-item.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.phase-step-arrow {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Learning Resource Badges (YouTube, Docs, Practice) */
.badge-youtube {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
  font-weight: 600;
}
.badge-youtube:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ffffff;
}

.badge-docs {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-weight: 600;
}
.badge-docs:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
}

.badge-practice {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.28);
  font-weight: 600;
}
.badge-practice:hover {
  background: rgba(168, 85, 247, 0.22);
  color: #ffffff;
}

/* Expanded Milestone Guidance Box */
.milestone-expanded-guide {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border-left: 2px solid var(--accent-cyan);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone-resource-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.resource-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.resource-pill-link.youtube {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.resource-pill-link.youtube:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.resource-pill-link.docs {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.resource-pill-link.docs:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.resource-pill-link.practice {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.resource-pill-link.practice:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   Certifications & Project Hub Grids
   ========================================================================== */
.cert-section, .projects-section {
  padding: 56px 0;
  border-top: 1px solid var(--border-subtle);
}

.certs-grid, .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}

.cert-card, .project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.cert-card:hover, .project-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cert-top, .project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cert-title, .project-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.cert-desc, .project-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.cert-details {
  display: flex;
  gap: 12px;
  font-size: 0.725rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.project-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.775rem;
  font-weight: 500;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ==========================================================================
   Modals
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.modal-body {
  padding: 22px 24px 26px;
}

/* Polished Resource Card System inside Modals */
.modal-resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.modal-resource-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.modal-resource-card.yt-card {
  border-left: 3px solid #ef4444;
}
.modal-resource-card.yt-card:hover {
  border-color: rgba(239, 68, 68, 0.5);
  border-left: 3px solid #ef4444;
}

.modal-resource-card.doc-card {
  border-left: 3px solid var(--accent-cyan);
}
.modal-resource-card.doc-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  border-left: 3px solid var(--accent-cyan);
}

.modal-resource-card.practice-card {
  border-left: 3px solid #a855f7;
}
.modal-resource-card.practice-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  border-left: 3px solid #a855f7;
}

.resource-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.resource-card-action-btn.yt-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}
.modal-resource-card:hover .resource-card-action-btn.yt-btn {
  background: #ef4444;
  color: #ffffff;
}

.resource-card-action-btn.doc-btn {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.25);
}
.modal-resource-card:hover .resource-card-action-btn.doc-btn {
  background: var(--accent-cyan);
  color: #090a10;
}

.resource-card-action-btn.practice-btn {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}
.modal-resource-card:hover .resource-card-action-btn.practice-btn {
  background: #a855f7;
  color: #ffffff;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.search-input-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.search-result-item {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

/* Pathfinder Quiz Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
}

.quiz-option-btn {
  padding: 12px 14px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.quiz-option-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}


/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-emerald);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  padding: 44px 0 24px;
  margin-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.825rem;
  margin: 10px 0 14px;
  max-width: 300px;
}

.footer-title {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.825rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.newsletter-box {
  display: flex;
  gap: 6px;
}

.newsletter-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 7px 12px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .roadmap-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .roadmap-sidebar {
    position: static;
    margin-bottom: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Header Adaptability at Intermediate Desktop (1041px - 1200px) */
@media (max-width: 1200px) {
  .search-trigger-text {
    display: none;
  }
  .progress-label {
    display: none;
  }
  .nav-links {
    gap: 2px;
  }
  .nav-link {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
}

/* Header Switch to Hamburger Drawer at Tablet & Narrow Desktop */
@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .site-header .nav-wrapper {
    height: 56px;
    padding: 0 16px;
  }
  .brand-logo {
    font-size: 0.92rem;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-founder {
    font-size: 0.7rem;
    margin-top: 2px;
  }
  .brand-icon-box {
    width: 28px;
    height: 28px;
  }
  .header-actions {
    gap: 6px;
  }
  .search-kbd {
    display: none;
  }
  .search-trigger-btn {
    padding: 6px 9px;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .hero-command-bar {
    width: 100%;
    margin-bottom: 20px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }
  .pathfinder-banner {
    flex-direction: column;
    text-align: left;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .pathfinder-banner .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .domain-filter-group {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
  .domain-pill-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 38px;
    padding: 8px 14px;
  }
  .category-tabs {
    flex-wrap: nowrap;
  }
  .category-tab-btn {
    white-space: nowrap;
    min-height: 38px;
  }
  .stage-card {
    padding: 16px;
  }
  .stage-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .milestone-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .milestone-left {
    width: 100%;
  }
  .milestone-resource-pills {
    width: 100%;
    gap: 6px;
  }
  .resource-pill-link {
    font-size: 0.725rem;
    padding: 5px 8px;
  }
  .milestone-badges {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .milestone-check-btn {
    width: 26px;
    height: 26px;
  }
  .newbie-kickstart-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .newbie-kickstart-info {
    min-width: 0;
  }
  .newbie-kickstart-card .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }
  .roadmap-phase-track {
    padding: 10px 12px;
  }
  .phase-step-item {
    font-size: 0.725rem;
    padding: 6px 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-bottom > div {
    flex-wrap: wrap;
  }
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }
  .modal-container {
    max-height: 92vh;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-header {
    padding: 14px 16px;
  }
  .modal-resource-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  .resource-card-action-btn {
    width: 100%;
    justify-content: center;
    min-height: 38px;
  }
  .modal-footer-actions {
    flex-direction: column;
    gap: 10px;
  }
  .modal-footer-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-icon-box {
    display: none;
  }
  .brand-title {
    font-size: 1rem;
  }
  .brand-founder {
    font-size: 0.68rem;
  }
  .user-progress-badge {
    padding: 4px 6px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .visual-learning-path-card {
    padding: 16px;
  }
  .stage-card {
    padding: 14px;
  }
}

@media (max-width: 400px) {
  .site-header .nav-wrapper {
    padding: 0 12px;
  }
  .brand-title {
    font-size: 0.88rem;
  }
  .brand-founder {
    font-size: 0.63rem;
  }
  .header-actions {
    gap: 4px;
  }
  .user-progress-badge {
    display: none;
  }
  .mobile-nav-actions .btn,
  .mobile-nav-item {
    white-space: normal;
    text-align: center;
  }
}

/* Mobile Slide-Down Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-medium);
  padding: 16px 20px 20px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.mobile-nav-item:hover, .mobile-nav-item:active {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   0-to-Hero Newbie Learner Features
   ========================================================================== */
.newbie-kickstart-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-surface) 60%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 3px solid var(--accent-emerald);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.newbie-kickstart-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.newbie-kickstart-info p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

.jargon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.jargon-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 14px;
  transition: all var(--transition-fast);
}

.jargon-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
}

.jargon-term {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jargon-analogy {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   The Free Learning Vault (Toolkit)
   ========================================================================== */
.toolkit-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-canvas) 0%, rgba(13, 15, 23, 0.7) 100%);
}

.toolkit-category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.toolkit-category-tabs::-webkit-scrollbar {
  display: none;
}

.toolkit-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 42px;
}

.toolkit-cat-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.toolkit-cat-btn.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}

.toolkit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.toolkit-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5);
  background: var(--bg-surface-elevated);
}

.toolkit-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.toolkit-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.toolkit-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.toolkit-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.toolkit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.toolkit-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.toolkit-card:hover .toolkit-action-link {
  color: var(--accent-cyan);
}

@media (max-width: 768px) {
  .toolkit-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Visual Roadmap Learning Path Flowchart
   ========================================================================== */
.visual-learning-path-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
  box-shadow: var(--shadow-card);
}

.visual-path-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.visual-journey-flow {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  min-width: 0;
  max-width: 100%;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.visual-flow-node {
  flex: 0 0 260px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.visual-flow-node:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.visual-flow-node.status-start {
  border-left: 3px solid var(--accent-cyan);
}

.visual-flow-node.status-active {
  border-left: 3px solid var(--accent-amber);
}

.visual-flow-node.status-done {
  border-left: 3px solid var(--accent-emerald);
  background: rgba(16, 185, 129, 0.03);
}

.node-step-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.node-status-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.visual-flow-node.status-start .node-status-pill {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.visual-flow-node.status-active .node-status-pill {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.visual-flow-node.status-done .node-status-pill {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.node-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 6px;
}

.node-meta-row {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.node-summary {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.node-milestone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.node-pill-tag {
  font-size: 0.675rem;
  padding: 2px 7px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.node-action-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.visual-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-strong);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-trophy-node {
  flex: 0 0 220px;
  text-align: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-canvas) 100%);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  cursor: default;
}

.hero-trophy-node:hover {
  transform: none;
  border-color: var(--accent-emerald);
}

.trophy-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.trophy-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .visual-journey-flow {
    flex-direction: column;
  }
  .visual-flow-node {
    flex: 1 1 auto;
    width: 100%;
  }
  .visual-flow-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }
  .hero-trophy-node {
    flex: 1 1 auto;
    width: 100%;
  }
}



