/*
Theme Name: Stefan Buchholz Modern
Theme URI: https://stefanbuchholz.com/
Author: Stefan Buchholz & Antigravity
Author URI: https://stefanbuchholz.com/
Description: A high-performance, ultra-responsive, modern full-screen no-scroll theme for stefanbuchholz.com featuring a 3D tag cloud overlayed on a YouTube video hero, 100vh viewport-snapped deck controller, and glassmorphism UI.
Version: 2.3.70
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: stefanbuchholz-modern
Tags: full-width, one-column, custom-colors, custom-header, custom-logo, custom-menu, featured-images, theme-options
*/

:root {
  /* Brand Color Palette */
  --color-primary: #059669;
  --color-primary-dark: #047857;
  --color-primary-light: #34d399;
  --color-primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  --color-primary-glow: rgba(16, 185, 129, 0.35);
  
  /* Accent Colors */
  --color-accent: #38bdf8;
  --color-accent-hover: #7dd3fc;
  --color-accent-purple: #818cf8;
  --color-accent-amber: #fbbf24;
  --color-accent-rose: #fb7185;
  
  /* Surfaces & iOS Liquid Glass (Ultra-fine dispersion, specular refraction, layered depth) */
  --color-dark: #07090e;
  --color-surface-dark: #04060a;
  --color-surface-glass: rgba(18, 26, 38, 0.46);
  --color-surface-glass-hover: rgba(26, 36, 54, 0.62);
  --color-surface-card: rgba(16, 24, 38, 0.42);
  --color-surface-light-glass: rgba(255, 255, 255, 0.65);
  --color-border-glass: rgba(255, 255, 255, 0.16);
  --color-border-glass-glow: rgba(52, 211, 153, 0.35);
  --color-border-light: rgba(0, 0, 0, 0.08);
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #0f172a;
  --text-inverse-muted: #475569;
  
  /* Typography Stacks */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'EB Garamond', 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  
  /* Layout & Elevations */
  --nav-height: 72px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
  --shadow-glow-cyan: 0 0 30px rgba(56, 189, 248, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-deck: 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  /* Semantic Theme Tokens (Dark Default) */
  --theme-bg: var(--color-surface-dark);
  --theme-surface: #0b111c;
  --theme-surface-glass: rgba(18, 26, 38, 0.46);
  --theme-surface-glass-hover: rgba(26, 36, 54, 0.62);
  --theme-surface-card: rgba(16, 24, 38, 0.42);
  --theme-border-glass: rgba(255, 255, 255, 0.16);
  --theme-border-glass-glow: rgba(52, 211, 153, 0.35);
  --theme-border-subtle: rgba(255, 255, 255, 0.08);
  --theme-text-main: #f8fafc;
  --theme-text-muted: #94a3b8;
  --theme-text-dim: #64748b;
  --theme-text-heading: #ffffff;
  --theme-shadow-card: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
  --theme-shadow-glass: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  --theme-shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
  --theme-glass-specular: rgba(255, 255, 255, 0.22);
  --theme-glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(14, 21, 33, 0.44) 100%);
  --theme-hero-scrim: linear-gradient(180deg, rgba(7, 9, 14, 0.35) 0%, rgba(7, 9, 14, 0.82) 100%);
  --theme-backdrop-tint-1: radial-gradient(circle at 50% 35%, rgba(6, 78, 59, 0.12) 0%, rgba(13, 18, 31, 0.28) 65%, rgba(7, 9, 14, 0.40) 100%);
  --theme-backdrop-tint-2: radial-gradient(circle at 65% 40%, rgba(30, 58, 138, 0.10) 0%, rgba(15, 23, 42, 0.28) 65%, rgba(7, 9, 14, 0.40) 100%);
  --theme-card-sheen: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(52, 211, 153, 0.12), transparent 40%);
}

/* ==========================================================================
   Frosted Porcelain & Emerald Light Mode System
   ========================================================================== */
[data-theme="light"] {
  /* Brand Color Palette adjusted for light backgrounds */
  --color-primary: #059669;
  --color-primary-dark: #047857;
  --color-primary-light: #10b981;
  --color-primary-glow: rgba(5, 150, 105, 0.25);

  /* Accent Colors */
  --color-accent: #0284c7;
  --color-accent-hover: #0369a1;

  /* Surfaces & iOS Liquid Glass (Frosted Porcelain) */
  --color-dark: #0f172a;
  --color-surface-dark: #f6f8fa;
  --color-surface-glass: rgba(255, 255, 255, 0.72);
  --color-surface-glass-hover: rgba(255, 255, 255, 0.88);
  --color-surface-card: rgba(255, 255, 255, 0.82);
  --color-surface-light-glass: rgba(255, 255, 255, 0.92);
  --color-border-glass: rgba(15, 23, 42, 0.10);
  --color-border-glass-glow: rgba(5, 150, 105, 0.45);
  --color-border-light: rgba(15, 23, 42, 0.08);

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-inverse: #f8fafc;
  --text-inverse-muted: #94a3b8;

  /* Semantic Tokens for Light Mode */
  --theme-bg: #f8fafc;
  --theme-surface: #ffffff;
  --theme-surface-glass: rgba(255, 255, 255, 0.85);
  --theme-surface-glass-hover: rgba(255, 255, 255, 0.95);
  --theme-surface-card: #ffffff;
  --theme-border-glass: rgba(203, 213, 225, 0.8);
  --theme-border-glass-glow: rgba(5, 150, 105, 0.45);
  --theme-border-subtle: rgba(226, 232, 240, 0.8);
  --theme-text-main: #0f172a;
  --theme-text-muted: #475569;
  --theme-text-dim: #64748b;
  --theme-text-heading: #0f172a;
  --theme-shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.05);
  --theme-shadow-glass: 0 20px 48px -10px rgba(15, 23, 42, 0.09), 0 4px 16px rgba(15, 23, 42, 0.04);
  --theme-shadow-glow: 0 0 25px rgba(5, 150, 105, 0.18);
  --theme-glass-specular: rgba(255, 255, 255, 0.95);
  --theme-glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(241, 245, 249, 0.90) 100%);
  --theme-hero-scrim: radial-gradient(circle at 50% 45%, rgba(248, 250, 252, 0.65) 0%, rgba(241, 245, 249, 0.82) 55%, rgba(226, 232, 240, 0.95) 100%);
  --theme-backdrop-tint-1: radial-gradient(circle at 50% 35%, rgba(5, 150, 105, 0.08) 0%, rgba(241, 245, 249, 0.75) 65%, #f8fafc 100%);
  --theme-backdrop-tint-2: radial-gradient(circle at 65% 40%, rgba(2, 132, 199, 0.08) 0%, rgba(241, 245, 249, 0.75) 65%, #f8fafc 100%);
  --theme-card-sheen: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(5, 150, 105, 0.08), transparent 40%);
}

/* Zero Scroll Reset */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Strict no-browser-scroll requirement for deck */
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--color-surface-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Focus Visible Accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .deck-slider {
    transition: none !important;
  }
}
