/* ========================================
   TIME BOOTH — CSS Design System
   A booth-style timeline journey website
   ======================================== */

/* ---------- Reset & Foundations ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* Core palette */
  --bg-primary: #08090d;
  --bg-secondary: #0e1117;
  --bg-card: #12141c;
  --bg-glass: rgba(18, 20, 28, 0.65);
  --bg-glass-hover: rgba(18, 20, 28, 0.85);

  /* Neon accent */
  --accent: #00e59b;
  --accent-dim: #00c484;
  --accent-glow: rgba(0, 229, 155, 0.35);
  --accent-glow-strong: rgba(0, 229, 155, 0.6);
  --accent-subtle: rgba(0, 229, 155, 0.08);

  /* Secondary accent */
  --accent2: #7c5cfc;
  --accent2-glow: rgba(124, 92, 252, 0.3);

  /* Tertiary accent */
  --accent3: #ff6b6b;
  --accent3-glow: rgba(255, 107, 107, 0.3);

  /* Text */
  --text-primary: #f0f2f5;
  --text-secondary: #8b93a7;
  --text-muted: #4a5068;
  --text-accent: var(--accent);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 229, 155, 0.2);

  /* Sizing */
  --card-width: 320px;
  --card-height: 440px;
  --timeline-height: 4px;
  --nav-height: 72px;
  --shelf-height: 6px;

  /* Timing */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--accent-glow), 0 0 60px rgba(0, 229, 155, 0.1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  cursor: default;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ---------- Ambient Background ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -15%;
  left: -10%;
  animation-duration: 25s;
}

.ambient-orb:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--accent2);
  top: 50%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.ambient-orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: var(--accent3);
  bottom: -10%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.05); }
}

/* Grid pattern overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-smooth), background 0.3s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav-link.active {
  color: var(--accent);
}

.nav-age-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeSlideUp 0.8s var(--ease-smooth) 0.2s both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s var(--ease-smooth) 0.4s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
  animation: fadeSlideUp 0.8s var(--ease-smooth) 0.6s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: fadeSlideUp 0.8s var(--ease-smooth) 0.8s both;
}

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

.hero-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero-scroll-cta {
  position: relative;
  margin-top: clamp(40px, 6vh, 72px);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: fadeSlideUp 0.8s var(--ease-smooth) 1s both;
  cursor: pointer;
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid var(--text-muted);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.3; }
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
  padding: 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--border-accent);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Timeline Booth Section ---------- */
.booth-section {
  position: relative;
  z-index: 2;
  padding: 80px 0 120px;
}

/* Booth frame */
.booth-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Year navigation strip */
.year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.year-nav-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
}

.year-nav-btn:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.year-nav-btn.active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--border-accent);
}

.year-nav-btn.has-photos::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
}

/* Timeline scroll container */
.timeline-viewport {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.timeline-viewport:active {
  cursor: grabbing;
}

.timeline-track {
  display: flex;
  gap: 40px;
  padding: 40px 80px 80px;
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Glass shelf rail at bottom */
.booth-shelf {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: var(--shelf-height);
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 15%,
    var(--accent) 85%,
    transparent 100%
  );
  opacity: 0.5;
  box-shadow: var(--shadow-glow);
  z-index: 5;
}

.booth-shelf::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top,
    rgba(0, 229, 155, 0.06),
    transparent
  );
  pointer-events: none;
}

/* ---------- Timeline Card ---------- */
.timeline-card {
  flex: 0 0 var(--card-width);
  position: relative;
  animation: cardReveal 0.6s var(--ease-smooth) both;
}

.timeline-card:nth-child(even) {
  margin-top: 40px;
}

.timeline-card:nth-child(odd) {
  margin-top: 0;
}

/* Year marker */
.card-year-marker {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  letter-spacing: -0.02em;
  z-index: 4;
  pointer-events: none;
  text-shadow: 0 0 30px var(--accent-glow);
  transition: opacity 0.3s ease;
}

.timeline-card:hover .card-year-marker {
  opacity: 0.6;
}

/* Card container */
.card-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--ease-smooth);
  transform: translateY(0);
}

.card-container:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-accent);
}

/* Glow effect on hover */
.card-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--accent-glow), transparent, var(--accent2-glow));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-container:hover::before {
  opacity: 1;
}

/* Image wrapper */
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.card-container:hover .card-image-wrap img {
  transform: scale(1.06);
}

/* Image overlay gradient */
.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(8, 9, 13, 0.9) 100%
  );
  pointer-events: none;
}

/* Age tag on image */
.card-age-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(8, 9, 13, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
}

/* Card info */
.card-info {
  padding: 20px;
}

.card-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-description {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card era badge */
.card-era {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-era.childhood {
  color: #ffd93d;
  background: rgba(255, 217, 61, 0.1);
}

.card-era.school {
  color: #6bcb77;
  background: rgba(107, 203, 119, 0.1);
}

.card-era.teen {
  color: #4d96ff;
  background: rgba(77, 150, 255, 0.1);
}

.card-era.college {
  color: var(--accent2);
  background: rgba(124, 92, 252, 0.1);
}

.card-era.professional {
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ---------- Lightbox / Modal ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  margin: auto;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  gap: 32px;
  align-items: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-smooth);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 60vw;
  max-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.lightbox-image-container img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-details {
  max-width: 300px;
  padding: 32px;
  background: var(--bg-glass);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.lightbox-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.lightbox-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.lightbox-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.lightbox-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.lightbox-meta-label {
  color: var(--text-muted);
}

.lightbox-meta-value {
  color: var(--text-primary);
  font-weight: 500;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10001;
  backdrop-filter: blur(12px);
}

.lightbox-close:hover {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  color: var(--accent);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10001;
  backdrop-filter: blur(12px);
}

.lightbox-nav:hover {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  color: var(--accent);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Scroll Controls ---------- */
.scroll-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px 0;
}

.scroll-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-smooth);
  backdrop-filter: blur(12px);
}

.scroll-btn:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.scroll-progress {
  flex: 0 0 200px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
  overflow: hidden;
}

.scroll-progress-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.15s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ---------- Era Sections (vertical timeline alternative) ---------- */
.eras-section {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
}

.era-group {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 clamp(20px, 4vw, 48px);
}

.era-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.era-year-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
}

.era-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.era-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ---------- Search / Filter ---------- */
.search-container {
  max-width: 480px;
  margin: 0 auto 48px;
  padding: 0 24px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.25s ease;
}

.search-input {
  width: 100%;
  padding: 14px 48px 14px 44px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  outline: none;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-smooth);
}

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

.search-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-subtle), var(--shadow-glow);
}

.search-input:focus ~ .search-icon {
  color: var(--accent);
}

.search-clear {
  position: absolute;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-subtle);
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-clear.visible {
  display: flex;
}

.search-clear:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.search-results-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.search-results-count span {
  color: var(--accent);
  font-weight: 600;
}

/* No results state */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.no-results-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.no-results-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  padding: 48px clamp(20px, 4vw, 48px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--bg-primary);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tech {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-tech .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Scroll-to-top ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-smooth);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-card) 25%,
    rgba(255, 255, 255, 0.04) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Animations ---------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px var(--accent-glow); }
  50% { text-shadow: 0 0 25px var(--accent-glow-strong), 0 0 50px var(--accent-glow); }
}

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Journey Stats Bar ---------- */
.journey-stats {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 4vw, 48px);
  margin-top: -40px;
  margin-bottom: 40px;
}

.journey-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 40px;
  border-radius: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.journey-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.journey-stat-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.journey-stat-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.journey-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.journey-stat-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.journey-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
  margin: 0 12px;
  flex-shrink: 0;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
  position: relative;
  z-index: 2;
  padding: 80px 0 120px;
}

/* Era Filter Chips */
.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-glass-hover);
}

.filter-chip.active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.filter-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  min-width: 20px;
  text-align: center;
}

.filter-chip.active .filter-count {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Masonry Grid */
.gallery-masonry {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
  columns: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-accent);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 9, 13, 0.9) 0%,
    rgba(8, 9, 13, 0.3) 40%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gallery-item-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
}

.gallery-item-era {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s var(--ease-smooth);
}

.gallery-item:hover .gallery-item-era {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-era.childhood {
  color: #ffd93d;
  background: rgba(255, 217, 61, 0.15);
  backdrop-filter: blur(8px);
}

.gallery-item-era.teen {
  color: #4d96ff;
  background: rgba(77, 150, 255, 0.15);
  backdrop-filter: blur(8px);
}

.gallery-item-era.school {
  color: #6bcb77;
  background: rgba(107, 203, 119, 0.15);
  backdrop-filter: blur(8px);
}

.gallery-item-era.college {
  color: var(--accent2);
  background: rgba(124, 92, 252, 0.15);
  backdrop-filter: blur(8px);
}

.gallery-item-era.professional {
  color: var(--accent);
  background: rgba(0, 229, 155, 0.15);
  backdrop-filter: blur(8px);
}

/* Gallery empty state */
.gallery-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.gallery-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.gallery-empty-text {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ---------- Surprise Me FAB ---------- */
.surprise-fab {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none;
  color: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.3), 0 0 20px var(--accent-glow);
  transition: all 0.3s var(--ease-smooth);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.surprise-fab.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.surprise-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(124, 92, 252, 0.4), 0 0 30px var(--accent-glow);
}

.surprise-fab:active {
  transform: scale(0.96);
}

.surprise-fab-icon {
  font-size: 1.1rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(10deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.1) rotate(-5deg); }
}

/* ---------- Lightbox Download Button ---------- */
.lightbox-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
  width: fit-content;
}

.lightbox-download:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --card-width: 280px;
    --card-height: 400px;
  }

  .hero-stats {
    gap: 32px;
  }

  .lightbox-content {
    flex-direction: column;
    max-height: none;
    max-width: 88vw;
    gap: 20px;
    padding: 24px 0;
  }

  .lightbox-image-container {
    max-width: 88vw;
    max-height: 52vh;
  }

  .lightbox-image-container img {
    max-height: 52vh;
  }

  .lightbox-details {
    max-width: 88vw;
    width: 100%;
  }

  .era-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .gallery-masonry {
    columns: 3;
  }

  .journey-stats-inner {
    padding: 20px 24px;
    gap: 0;
  }

  .journey-stat-num {
    font-size: 1.1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --card-width: 260px;
    --card-height: 380px;
    --nav-height: 60px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: rgba(8, 9, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease-smooth);
    gap: 4px;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
  }

  .nav-age-badge {
    display: none;
  }

  .hero {
    padding-bottom: 100px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 320px;
  }

  .hero-stat {
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
  }

  .hero-scroll-cta {
    bottom: 24px;
  }

  .journey-stats {
    margin-top: -20px;
    padding: 0 16px;
  }

  .journey-stats-inner {
    flex-wrap: wrap;
    padding: 20px;
    gap: 16px;
  }

  .journey-stat-item {
    flex: 0 0 calc(50% - 16px);
    justify-content: flex-start;
  }

  .journey-stat-divider {
    display: none;
  }

  .timeline-track {
    gap: 24px;
    padding: 32px 24px 80px;
  }

  .card-image-wrap {
    height: 220px;
  }

  .year-nav {
    gap: 2px;
    padding: 12px 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .year-nav::-webkit-scrollbar {
    display: none;
  }

  .year-nav-btn {
    padding: 4px 8px;
    font-size: 0.68rem;
    flex-shrink: 0;
  }

  .scroll-controls {
    padding: 24px 16px 0;
  }

  .scroll-progress {
    flex: 0 0 120px;
  }

  .gallery-masonry {
    columns: 2;
    column-gap: 10px;
    padding: 0 16px;
  }

  .gallery-item {
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .gallery-item-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(8, 9, 13, 0.8) 0%,
      transparent 60%
    );
    padding: 14px;
  }

  .gallery-item-title {
    font-size: 0.8rem;
  }

  .gallery-item-era {
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 16px;
    margin-bottom: 32px;
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .lightbox-overlay {
    padding: max(16px, env(safe-area-inset-top, 16px)) max(12px, env(safe-area-inset-right, 12px)) max(16px, env(safe-area-inset-bottom, 16px)) max(12px, env(safe-area-inset-left, 12px));
  }

  .lightbox-content {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: min(440px, 100%);
    max-height: none;
    padding: 44px 0 16px;
  }

  .lightbox-image-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .lightbox-image-container img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 52vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-subtle);
    margin: 0 auto;
  }

  .lightbox-details {
    width: 100%;
    max-width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
  }

  .lightbox-year {
    font-size: 0.76rem;
    margin-bottom: 6px;
  }

  .lightbox-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .lightbox-desc {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .lightbox-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    text-align: left;
  }

  .lightbox-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .lightbox-meta-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .lightbox-meta-value {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lightbox-download {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 9px 16px;
    font-size: 0.8rem;
  }

  .lightbox-close {
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    z-index: 10002;
  }

  .lightbox-nav {
    top: 30%;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    z-index: 10002;
  }

  .lightbox-prev { left: max(6px, env(safe-area-inset-left, 6px)); }
  .lightbox-next { right: max(6px, env(safe-area-inset-right, 6px)); }

  .era-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .surprise-fab {
    bottom: 20px;
    left: 20px;
    padding: 12px 16px;
    font-size: 0.78rem;
  }

  .surprise-fab-text {
    display: none;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  :root {
    --card-width: 240px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .card-info {
    padding: 14px;
  }

  .card-title {
    font-size: 1rem;
  }

  .gallery-masonry {
    columns: 1;
  }

  .hero-stats {
    max-width: 100%;
    padding: 0 8px;
  }

  .hero-stat {
    padding: 12px;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .journey-stats-inner {
    padding: 16px;
  }

  .journey-stat-item {
    flex: 0 0 calc(50% - 8px);
  }

  .journey-stat-num {
    font-size: 1rem;
  }

  .lightbox-content {
    gap: 12px;
    padding-top: 40px;
  }

  .lightbox-image-container,
  .lightbox-image-container img {
    max-height: 48vh;
  }

  .lightbox-details {
    padding: 14px 16px;
  }

  .lightbox-title {
    font-size: 1.1rem;
  }

  .lightbox-desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* Landscape Phone */
@media (max-height: 500px) and (orientation: landscape) {
  .lightbox-content {
    flex-direction: row !important;
    align-items: center;
    max-width: 95vw;
    gap: 16px;
    padding: 20px 0;
  }

  .lightbox-image-container,
  .lightbox-image-container img {
    max-height: 80vh !important;
    max-width: 52vw !important;
  }

  .lightbox-details {
    max-width: 42vw !important;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px;
  }

  .lightbox-nav {
    top: 50% !important;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .navbar, .scroll-controls, .scroll-top-btn, .ambient-bg, .grid-overlay, .lightbox-overlay, .surprise-fab {
    display: none !important;
  }

  body {
    background: white;
    color: #111;
  }

  .timeline-track {
    flex-wrap: wrap;
  }

  .gallery-masonry {
    columns: 3;
  }
}


/* ---------- Drag Hint Tooltip ---------- */
.drag-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.drag-hint.visible {
  opacity: 1;
  animation: fadeSlideUp 0.5s var(--ease-smooth);
}

.drag-hint.hidden {
  opacity: 0;
}

/* ---------- View Toggle ---------- */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.view-toggle-btn {
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-toggle-btn.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.view-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
}
