/* ========================================
   DevRoadmaps — Style System
   ======================================== */

/* === CSS Custom Properties === */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-tertiary: #1a1a3e;
  --bg-card: #16163a;
  --bg-glass: rgba(22, 22, 58, 0.7);
  --bg-hover: #222255;
  --text-primary: #e8e8ff;
  --text-secondary: #a0a0cc;
  --text-muted: #6a6a99;
  --accent: #7c5cfc;
  --accent-hover: #9a7aff;
  --accent-glow: rgba(124, 92, 252, 0.3);
  --gradient-1: #7c5cfc;
  --gradient-2: #ff6b9d;
  --gradient-3: #00d4ff;
  --border: rgba(124, 92, 252, 0.2);
  --border-hover: rgba(124, 92, 252, 0.4);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Fira Code", "Cascadia Code", monospace;
  --card: var(--bg-card);
  --glass: var(--bg-glass);
  --text: var(--text-primary);
  --cat-fundamentals: #7c5cfc;
  --cat-intermediate: #00d4ff;
  --cat-advanced: #ff6b9d;
  --cat-tools: #ffc107;
  --navbar-height: 64px;
}

[data-theme="light"] {
  --bg-primary: #f5f5ff;
  --bg-secondary: #eeeef8;
  --bg-tertiary: #e0e0f0;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-hover: #d8d8f0;
  --text-primary: #1a1a3e;
  --text-secondary: #444466;
  --text-muted: #888899;
  --border: rgba(124, 92, 252, 0.15);
  --border-hover: rgba(124, 92, 252, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.12);
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
}

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

/* === Typography === */
h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}
h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
}
p {
  color: var(--text-secondary);
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-secondary);
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-height);
  transition: background var(--transition);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.nav-logo:hover {
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
}
.hero-content {
  max-width: 800px;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}
.hero-title {
  margin-bottom: 24px;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.7em;
}
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--gradient-1),
    var(--gradient-2),
    var(--gradient-3)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-inline: auto;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff;
}
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-sm:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* === Stats === */
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Section Title === */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.1rem;
}

/* === Roadmaps Grid === */
.roadmaps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.roadmap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  opacity: 0;
  transition: opacity var(--transition);
}
.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}
.roadmap-card:hover::before {
  opacity: 1;
}
.roadmap-card:hover .roadmap-card-icon {
  transform: scale(1.1);
}
.roadmap-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  transition: transform var(--transition);
}
.roadmap-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.roadmap-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.roadmap-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.roadmap-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(0, 212, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === Testimonials === */
.testimonials-cta {
  max-width: 600px;
  margin: 0 auto;
}
.testimonial-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition: all var(--transition);
}
.testimonial-placeholder:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}
.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.testimonial-placeholder h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.testimonial-placeholder p {
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === FAQ === */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font);
  transition: color var(--transition);
}
.faq-question:hover {
  color: var(--accent);
}
.faq-question span {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.faq-item.active .faq-question span {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 200px;
}
.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
}

/* === CTA === */
.cta-section {
  padding: 80px 0;
}
.cta-card {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
}
.cta-card h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 2rem;
}
.cta-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 1.1rem;
}
.cta-card .btn-primary {
  background: #fff;
  color: var(--gradient-1);
}
.cta-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* === Footer === */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-content {
  text-align: center;
}
.footer-brand {
  margin-bottom: 24px;
}
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* === Theme Toggle === */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--bg-hover);
}

/* === Particles Canvas === */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* === Hero Typing Animation === */
.hero-typing {
  font-size: 1.2rem;
  color: var(--text-secondary);
  min-height: 1.8em;
  border-right: 2px solid var(--accent);
  animation: blink 0.8s step-end infinite;
  display: inline-block;
  max-width: 600px;
  margin: 0 auto 16px;
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* === Floating Shapes === */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(60px);
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--gradient-1);
  top: -100px; right: -100px;
  animation: float 20s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--gradient-2);
  bottom: -80px; left: -80px;
  animation: float 25s ease-in-out infinite reverse;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--gradient-3);
  top: 50%; left: 50%;
  animation: float 30s ease-in-out infinite;
}
.shape-4 {
  width: 200px; height: 200px;
  background: var(--gradient-1);
  top: 30%; right: 10%;
  animation: float 22s ease-in-out infinite reverse;
}
.shape-5 {
  width: 350px; height: 350px;
  background: var(--gradient-2);
  top: 60%; left: 20%;
  animation: float 28s ease-in-out infinite;
}
.shape-6 {
  width: 250px; height: 250px;
  background: var(--gradient-3);
  top: 10%; left: 30%;
  animation: float 24s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

/* === Hero BG Mesh === */
.hero-bg-mesh {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 252, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(255, 107, 157, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0, 212, 255, 0.08), transparent);
  z-index: 0;
  pointer-events: none;
}

/* === Scroll Indicator === */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* === Glow Button === */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(transparent, rgba(255,255,255,0.1), transparent 30%);
  animation: glowRotate 4s linear infinite;
}
@keyframes glowRotate {
  100% { transform: rotate(360deg); }
}

/* === Search Box Hero === */
.search-box-hero {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.search-box-hero .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
}
.search-box-hero input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.search-box-hero input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* === Filter Pills === */
.roadmap-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* === Newsletter === */
.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-content h2 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.newsletter-content p {
  font-size: 0.95rem;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* === Community Grid === */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.community-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
}
.community-stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.community-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.community-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.community-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Footer Grid === */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.footer-social a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-social a:hover {
  color: var(--accent);
}
.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.footer-col a:hover {
  color: var(--accent);
}

/* === CTA Glow === */
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.3), transparent);
  border-radius: 50%;
  pointer-events: none;
}

/* === Animations on Scroll === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Difficulty Badge === */
.difficulty-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.difficulty-beginner {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}
.difficulty-intermediate {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}
.difficulty-advanced {
  background: rgba(255, 107, 157, 0.15);
  color: #ff6b9d;
}

/* === Roadmap Page === */
.roadmap-page .hero {
  min-height: auto;
  padding: 100px 24px 32px;
}
.back-link {
  display: inline-flex;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.back-link:hover {
  color: var(--accent);
}
.roadmap-header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.roadmap-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.roadmap-icon {
  font-size: 2.5rem;
}
.roadmap-header h1 {
  font-size: 2rem;
}
.roadmap-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.roadmap-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.search-box {
  flex: 1;
  min-width: 200px;
}
.search-box input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}
.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.action-buttons {
  display: flex;
  gap: 8px;
}

/* === Progress Bar === */
.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}
.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 40px;
}

/* === Roadmap Layout === */
.roadmap-main {
  padding: 40px 0 80px;
}
.roadmap-layout {
  display: flex;
  gap: 24px;
}

/* === Minimap === */
.minimap {
  position: sticky;
  top: 80px;
  width: 200px;
  min-width: 200px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.minimap-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.minimap-node {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.minimap-node:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.minimap-node.completed {
  color: var(--cat-fundamentals);
  text-decoration: line-through;
  opacity: 0.6;
}
.minimap-node.active {
  background: var(--accent);
  color: #fff;
}

/* === Roadmap Nodes === */
.roadmap-nodes {
  flex: 1;
  max-width: 100%;
}
.node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all var(--transition);
  position: relative;
  border-left: 3px solid var(--cat-fundamentals);
}
.node[data-category="intermediate"] {
  border-left-color: var(--cat-intermediate);
}
.node[data-category="advanced"] {
  border-left-color: var(--cat-advanced);
}
.node[data-category="tools"] {
  border-left-color: var(--cat-tools);
}
.node:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}
.node.completed {
  opacity: 0.7;
}
.node.completed .node-title {
  text-decoration: line-through;
}
.node.completed::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  color: #4caf50;
  font-weight: 700;
  font-size: 1.2rem;
}

.node-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.node-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.node-title {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}
.node-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-fundamentals {
  background: rgba(124, 92, 252, 0.15);
  color: var(--cat-fundamentals);
}
.badge-intermediate {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cat-intermediate);
}
.badge-advanced {
  background: rgba(255, 107, 157, 0.15);
  color: var(--cat-advanced);
}
.badge-tools {
  background: rgba(255, 193, 7, 0.15);
  color: var(--cat-tools);
}

.node-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.node.expanded .node-body {
  max-height: 600px;
}
.node-expand-icon {
  color: var(--text-muted);
  transition: transform var(--transition);
  font-size: 0.8rem;
}
.node.expanded .node-expand-icon {
  transform: rotate(90deg);
}

.node-content {
  padding: 0 20px 20px;
}
.node-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.node-resources {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resource-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.resource-link:hover {
  background: var(--bg-hover);
  color: var(--accent);
  border-color: var(--border-hover);
}
.resource-type {
  font-size: 0.75rem;
}

/* === Connection Lines === */
.node-connector {
  width: 3px;
  height: 12px;
  margin-left: 32px;
  background: var(--border);
  border-radius: 2px;
}

/* === Animations === */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Print === */
@media print {
  .navbar,
  .back-to-top,
  .theme-toggle,
  .roadmap-controls,
  .minimap,
  #particles,
  .action-buttons,
  .hamburger {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .roadmap-header {
    position: static;
    background: #fff;
  }
  .node {
    break-inside: avoid;
    border: 1px solid #ddd;
    background: #fff;
  }
  .node.expanded .node-body {
    max-height: none;
  }
  .roadmap-layout {
    display: block;
  }
  .section {
    padding: 32px 0;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .roadmap-layout {
    flex-direction: column;
  }
  .minimap {
    display: none;
  }
  .roadmap-controls {
    flex-direction: column;
  }
  .filter-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .section {
    padding: 48px 0;
  }
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .roadmaps-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* === Nav Badges === */
.nav-badge {
  background: var(--glass);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.nav-badge:hover {
  background: var(--accent);
  color: #fff;
}

/* === Bookmark Panel === */
.bookmark-panel {
  position: fixed;
  top: 70px;
  right: -400px;
  width: 380px;
  max-height: 80vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 20px;
}
.bookmark-panel.open {
  right: 20px;
}
.bookmark-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.bookmark-panel-header h3 {
  margin: 0;
}
.bookmark-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.bookmark-item:last-child {
  border-bottom: none;
}

/* === Bookmark Button on Nodes === */
.bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 6px;
  border-radius: 6px;
  transition: transform 0.2s;
}
.bookmark-btn:hover {
  transform: scale(1.3);
}

/* === Achievement Cards === */
.achievement-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  opacity: 0.5;
  filter: grayscale(1);
  transition: all 0.3s;
}
.achievement-card.unlocked {
  opacity: 1;
  filter: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.15);
}
.achievement-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}
.achievement-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  background: var(--accent);
  color: #fff;
}
.achievement-badge.locked {
  background: var(--glass);
  color: var(--text-muted);
}

/* === Timer Display === */
#timerDisplay {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: bold;
}

/* === Learning Path Cards === */
.learning-path-card {
  cursor: default;
}
.learning-path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .bookmark-panel {
    width: 300px;
    right: -320px;
  }
  .bookmark-panel.open {
    right: 10px;
  }
  .nav-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

/* === Theme Transition === */
html {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
body,
.navbar,
.hero,
.section,
.node,
.feature-card,
.roadmap-card,
.faq-item,
.testimonial-card,
.newsletter-card,
.cta-card,
footer {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* === Resource Rating Stars === */
.resource-rating {
  color: #ffc107;
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
  letter-spacing: 1px;
}
.resource-link {
  align-items: center;
  gap: 6px;
}
.resource-link[data-type] {
  display: flex;
}

/* === Community Tips Section === */
.community-tips-section {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}
.tips-title {
  margin: 0 0 12px;
  font-size: 14px;
}
.tips-count {
  color: var(--text-muted);
  font-weight: 400;
}
.tip-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.tip-item:last-of-type {
  border-bottom: none;
}
.tip-date {
  font-size: 11px;
  color: var(--text-muted);
}
.tip-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.tip-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}
.tip-input:focus {
  border-color: var(--accent);
}

/* === Learner Count === */
.learner-count-display {
  opacity: 0.8;
}

/* === Certifications === */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.cert-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s;
}
.cert-card:hover {
  transform: translateY(-2px);
}
.cert-card.tracking {
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
}
.cert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cert-icon {
  font-size: 2rem;
}
.cert-header h3 {
  font-size: 1rem;
  margin: 0;
  color: #e2e8f0;
}
.cert-provider {
  font-size: 0.75rem;
  color: #94a3b8;
}
.cert-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.cert-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s;
}
.cert-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}
.cert-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.cert-topic {
  background: rgba(108, 99, 255, 0.15);
  color: #a78bfa;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}
.cert-btn {
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  width: 100%;
}
.cert-btn:hover {
  opacity: 0.9;
}

/* === Community Forum === */
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.forum-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.forum-filter {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
}
.forum-filter.active {
  background: rgba(108, 99, 255, 0.2);
  border-color: #6c63ff;
  color: #a78bfa;
}
.forum-new-post {
  background: #6c63ff;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.new-post-form {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.new-post-form select,
.new-post-form input,
.new-post-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.new-post-form textarea {
  resize: vertical;
  min-height: 80px;
}
.form-actions {
  display: flex;
  gap: 10px;
}
.form-actions button {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}
.form-actions button:first-child {
  background: #6c63ff;
  color: white;
}
.form-actions button:last-child {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
.forum-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.forum-post {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 18px;
  transition: background 0.2s;
}
.forum-post:hover {
  background: rgba(255, 255, 255, 0.07);
}
.post-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.2);
}
.post-content {
  flex: 1;
  min-width: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.post-category-tag {
  background: rgba(108, 99, 255, 0.15);
  color: #a78bfa;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
}
.post-author-name {
  color: #6c63ff;
  font-size: 0.85rem;
  font-weight: 600;
}
.post-time {
  color: #64748b;
  font-size: 0.75rem;
}
.post-title {
  font-size: 1rem;
  margin: 0 0 6px 0;
  color: #e2e8f0;
}
.post-message {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 10px 0;
}
.post-actions {
  display: flex;
  gap: 16px;
}
.post-actions button {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 6px;
}
.post-actions button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.post-actions span {
  color: #94a3b8;
  font-size: 0.85rem;
}
.forum-note {
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 20px;
  font-style: italic;
}

/* Fix for the theme toggle alignment */
#theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Optional: Make the roadmap cards look smoother on theme switch */
.json-card {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Force the hidden class to work regardless of other styles */
.hidden {
  display: none !important;
}

#theme-toggle-sun-icon,
#theme-toggle-moon-icon {
  line-height: 1;
  font-size: 14px; /* Adjust size if needed */
}

#theme-toggle span {
  line-height: 1; /* Prevents icons from making the button taller */
}

.nav-theme-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

/* Dark mode button look */
.dark .nav-theme-btn {
  background: #1e293b;
  border-color: #334155;
}

.nav-theme-btn:hover {
  background-color: #f1f5f9;
}

.dark .nav-theme-btn:hover {
  background-color: #334155;
}

/* ========================================
   New Feature Styles v2.0
   ======================================== */

/* Command Palette */
.command-palette { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; display: none; align-items: flex-start; justify-content: center; padding-top: 15vh; }
.command-palette.open { display: flex; }
.palette-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.palette-container { position: relative; width: 560px; max-height: 460px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; animation: paletteSlideIn 0.2s ease; }
@keyframes paletteSlideIn { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.palette-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.palette-icon { font-size: 1.2rem; color: var(--accent); }
.palette-search { flex: 1; background: transparent; border: none; color: var(--text-primary); font-size: 1rem; font-family: var(--font); outline: none; }
.palette-search::placeholder { color: var(--text-muted); }
.palette-shortcut { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; background: var(--bg-tertiary); color: var(--text-muted); border: 1px solid var(--border); }
.palette-results { flex: 1; overflow-y: auto; padding: 8px; }
.palette-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 8px 12px 4px; font-weight: 600; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s; color: var(--text-secondary); }
.palette-item:hover, .palette-item.selected { background: var(--bg-hover); color: var(--text-primary); }
.palette-item-icon { font-size: 1.1rem; }
.palette-item-title { font-size: 0.9rem; font-weight: 500; }
.palette-empty { text-align: center; padding: 32px; color: var(--text-muted); }
.palette-footer { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); }

/* Daily Challenge */
.daily-challenge-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.challenge-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.challenge-badge { display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.challenge-badge.beginner { background: rgba(76,175,80,0.15); color: #4caf50; }
.challenge-badge.intermediate { background: rgba(255,193,7,0.15); color: #ffc107; }
.challenge-badge.advanced { background: rgba(255,107,157,0.15); color: #ff6b9d; }
.challenge-category { font-size: 0.85rem; color: var(--text-muted); margin-left: 8px; }
.streak-display { display: flex; align-items: center; gap: 6px; background: rgba(255,107,57,0.1); padding: 6px 14px; border-radius: 50px; border: 1px solid rgba(255,107,57,0.2); }
.streak-fire { font-size: 1.2rem; }
.streak-count { font-size: 1.1rem; font-weight: 800; color: #ff6b39; }
.streak-label { font-size: 0.75rem; color: var(--text-muted); }
.challenge-title { font-size: 1.25rem; margin-bottom: 8px; }
.challenge-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.challenge-hints { margin-bottom: 16px; }
.challenge-hint { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.challenge-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.challenge-done { color: #4caf50; font-weight: 600; font-size: 0.9rem; }
.challenge-stats { display: flex; gap: 20px; font-size: 0.8rem; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--border); }

/* Notes System */
.notes-empty { text-align: center; padding: 40px 20px; }
.notes-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.notes-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.note-form { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.note-form input, .note-form textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text-primary); font-family: var(--font); font-size: 0.9rem; margin-bottom: 10px; box-sizing: border-box; }
.note-form input:focus, .note-form textarea:focus { outline: none; border-color: var(--accent); }
.note-form-actions { display: flex; gap: 8px; }
.note-card { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 10px; }
.note-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.note-date { font-size: 0.75rem; color: var(--text-muted); }
.note-card-content { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.note-card-actions { display: flex; gap: 8px; }

/* Comparison Tool */
.comparison-tool { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.comparison-selectors { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.comparison-select { flex: 1; min-width: 200px; }
.comparison-select label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.comparison-select select { width: 100%; padding: 10px 14px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: 0.9rem; }
.comparison-vs { font-size: 1.5rem; font-weight: 800; color: var(--accent); padding: 0 8px; }
.comparison-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; margin-bottom: 1px; }
.comparison-row.header { font-weight: 700; font-size: 0.9rem; }
.comparison-cell { padding: 12px 16px; background: var(--bg-tertiary); font-size: 0.9rem; color: var(--text-secondary); }
.comparison-cell.label { color: var(--text-muted); font-weight: 500; }
.comparison-cell.winner { color: var(--accent); font-weight: 700; background: rgba(124,92,252,0.08); }
.comparison-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }

/* Project Ideas */
.project-ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project-idea-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all var(--transition); }
.project-idea-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.project-idea-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.project-idea-num { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.project-idea-title { font-size: 1.1rem; margin-bottom: 8px; }
.project-idea-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.project-idea-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag { background: rgba(124,92,252,0.1); color: var(--accent); padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 500; }
.projects-empty, .interview-empty { text-align: center; padding: 40px 20px; }
.projects-empty-icon, .interview-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* Interview Prep */
.interview-questions { display: flex; flex-direction: column; gap: 12px; }
.interview-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.interview-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.interview-num { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.interview-question { font-size: 1rem; margin-bottom: 12px; line-height: 1.5; }
.interview-answer { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; }
.interview-answer p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* Skill Radar */
.skill-radar-container { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.skill-radar-chart { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.skill-radar-chart svg { display: block; }
.skill-radar-summary { display: flex; flex-direction: column; gap: 16px; }
.skill-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; min-width: 160px; }
.skill-stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.skill-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Data Management */
.data-management { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.data-stats { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; justify-content: center; }
.data-stat { text-align: center; flex: 1; min-width: 120px; }
.data-stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.data-stat-label { font-size: 0.8rem; color: var(--text-muted); }
.data-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Share Progress */
.share-progress-btn { background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2)); color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all var(--transition); }
.share-progress-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }

/* Keyboard Shortcut */
.kbd { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--bg-tertiary); border: 1px solid var(--border); font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-muted); line-height: 1.4; }

@media (max-width: 768px) {
    .palette-container { width: calc(100% - 32px); max-height: 60vh; }
    .comparison-selectors { flex-direction: column; align-items: stretch; }
    .comparison-vs { text-align: center; }
    .skill-radar-container { flex-direction: column; }
    .project-ideas-grid { grid-template-columns: 1fr; }
}
