/* ==========================================================================
   Life of Lazy (lifeoflazy.living)
   Visual System: 3D Kinetic Cyber-Zen, Editorial Glassmorphism, Luxury Typography
   ========================================================================== */

:root {
  --font-serif: 'Playfair Display', 'Lora', Georgia, serif;
  --font-sans: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Cyber Zen Palette */
  --bg-page: #FBF9F5;
  --bg-surface: #FFFFFF;
  --bg-card: #F4F1EA;

  --ink-primary: #121210;
  --ink-secondary: #4A4843;
  --ink-muted: #7E7B72;

  --accent-emerald: #10B981;
  --accent-matcha: #2D4030;
  --accent-terracotta: #C86D51;
  --accent-glow: rgba(200, 109, 81, 0.25);

  --border-subtle: rgba(26, 26, 24, 0.1);
  --border-glow: rgba(45, 64, 48, 0.25);

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
}

.dark {
  --bg-page: #0D0D0C;
  --bg-surface: #141412;
  --bg-card: #1A1A18;

  --ink-primary: #F7F5F0;
  --ink-secondary: #B5B2A8;
  --ink-muted: #7A786E;

  --accent-emerald: #34D399;
  --accent-matcha: #88A68B;
  --accent-terracotta: #E2886E;
  --accent-glow: rgba(226, 136, 110, 0.35);

  --border-subtle: rgba(245, 243, 237, 0.1);
  --border-glow: rgba(136, 166, 139, 0.3);

  --glass-bg: rgba(20, 20, 18, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  color: #fff;
  background: #121210;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mobile-route-nav {
  display: none;
}

.site-wordmark {
  flex: 0 0 auto;
}

.primary-route-nav [data-route] {
  position: relative;
  min-height: 2.75rem;
}

.primary-route-nav [data-route]::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 2px;
  border-radius: 9999px;
  background: var(--accent-terracotta);
  content: '';
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-route-nav [data-route][aria-current='page']::after {
  opacity: 1;
  transform: scaleX(1);
}

iframe {
  border: 0;
}

.text-\[9px\],
.text-\[10px\],
.text-\[11px\] {
  font-size: 0.75rem !important;
}

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* 3D Fixed Background Container */
#three-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* Page Transition Animation */
.animate-fade-in {
  animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Glassmorphism Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
}

.dark .glass-panel {
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45);
}

/* Floating 3D Card Hover */
.tilt-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}
.tilt-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 45px -12px rgba(200, 109, 81, 0.15);
  border-color: var(--accent-terracotta);
}

/* Big Hero Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #1A1A18 20%, #C86D51 60%, #2D4030 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dark .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #E2886E 60%, #88A68B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Infinite Kinetic Marquee */
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 24s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Sound Wave Animation */
.sound-wave-bar {
  display: inline-block;
  width: 3px;
  background-color: currentColor;
  border-radius: 2px;
  animation: soundBounce 1.2s ease-in-out infinite;
}
.sound-wave-bar:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.sound-wave-bar:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.sound-wave-bar:nth-child(3) { height: 8px;  animation-delay: 0.5s; }
.sound-wave-bar:nth-child(4) { height: 14px; animation-delay: 0.2s; }

@keyframes soundBounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.sound-wave-paused .sound-wave-bar {
  animation: none !important;
  transform: scaleY(0.35);
}

/* Active State Check-in button */
.active-state-btn {
  background-color: var(--ink-primary) !important;
  color: var(--bg-surface) !important;
  border-color: var(--ink-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.25);
}
.active-state-btn span,
.active-state-btn strong,
.active-state-btn small {
  color: var(--bg-surface) !important;
}

/* Timeline Pill for Day in the Life */
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #2D4030;
  background: #FFFFFF;
}
.dark .timeline-dot {
  border-color: #88A68B;
  background: #1A1A18;
}

/* Toast */
#lazy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  background: var(--ink-primary);
  color: var(--bg-page);
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#lazy-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Lazy Vibes Page — Mood Tabs & Video Cards
   ========================================================================== */

/* Active mood tab highlight */
.vibes-tab-active {
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(0,0,0,0.25);
}

/* Aspect ratio for embedded iframes (fallback for older browsers) */
.aspect-video {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}
.aspect-video > iframe,
.aspect-video > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Vibes card hover lift */
.vibes-card {
  will-change: transform, opacity;
}
.vibes-card:hover .vibes-play-overlay {
  opacity: 1;
}

@media (max-width: 767px) {
  .mobile-route-nav {
    position: sticky;
    top: 5rem;
    z-index: 40;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    color: var(--ink-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    scrollbar-width: none;
  }

  .mobile-route-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-route-nav button {
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--glass-bg);
  }

  .mobile-route-nav button[aria-current='page'] {
    color: #fff;
    border-color: var(--accent-matcha);
    background: var(--accent-matcha);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  #three-container {
    display: none;
  }

  .marquee-track,
  .tilt-card:hover,
  .vibes-card:hover {
    transform: none !important;
  }
}
