/**
 * ============================================================================
 * PIP-HILDEGARD.CSS
 * Pressure Is Privilege - Private Rowing Vault
 * ============================================================================
 * 
 * Design Philosophy:
 * Merging Hildegard von Bingen's 12th century mystical visions with the 
 * timeless elegance of rowing culture. Dark, warm, and premium.
 * 
 * Hildegard Elements:
 * - Viriditas (divine green energy)
 * - Illuminated manuscript gold leaf
 * - Concentric cosmic circles from her visions
 * - Medieval geometric sacred patterns
 * 
 * Rowing Elements:
 * - Dawn water reflections on still lakes
 * - The meditative stillness before the race
 * - Deep crimson and navy regatta colors
 * - Oar silhouettes cutting through darkness
 * 
 * "Pressure is Privilege" - Billie Jean King
 * ============================================================================
 */

/* ============================================================================
   ROOT VARIABLES - THE SACRED PALETTE
   ============================================================================ */

:root {
  /* ---------------------------------------------------------------------------
     HILDEGARD COLORS - From Her Illuminated Visions
     --------------------------------------------------------------------------- */
  
  /* Viriditas - The Divine Green Energy */
  --viriditas-deep: #0a2e1f;
  --viriditas-forest: #1a4d3a;
  --viriditas-living: #2d7d5a;
  --viriditas-glow: #3fa77a;
  --viriditas-light: #5ec99d;
  
  /* Illuminated Gold - Manuscript Leaf */
  --gold-deep: #8b6914;
  --gold-rich: #c9a227;
  --gold-primary: #dbb42c;
  --gold-light: #e8cb5c;
  --gold-pale: #f5e6a3;
  --gold-shimmer: linear-gradient(135deg, #c9a227 0%, #f5e6a3 50%, #c9a227 100%);
  
  /* Cosmic Purples - From Her Vision Circles */
  --cosmic-void: #0d0a1a;
  --cosmic-deep: #1a1429;
  --cosmic-mystic: #2d2347;
  --cosmic-light: #4a3d6e;
  
  /* ---------------------------------------------------------------------------
     ROWING COLORS - Water and Regatta
     --------------------------------------------------------------------------- */
  
  /* Midnight Water */
  --water-abyss: #030508;
  --water-deep: #0a1520;
  --water-dark: #0f1f2e;
  --water-mid: #1a3045;
  --water-surface: #254560;
  --water-reflection: #3a6080;
  
  /* Regatta Crimson */
  --crimson-deep: #3d0a0a;
  --crimson-rich: #6b1515;
  --crimson-primary: #8b2525;
  --crimson-bright: #a83232;
  --crimson-glow: #c94545;
  
  /* Regatta Navy */
  --navy-abyss: #050810;
  --navy-deep: #0a1020;
  --navy-primary: #152040;
  --navy-light: #253560;
  
  /* Dawn Colors - Pre-Race Stillness */
  --dawn-pink: rgba(255, 180, 160, 0.15);
  --dawn-gold: rgba(255, 200, 100, 0.1);
  --dawn-mist: rgba(200, 220, 255, 0.08);
  
  /* ---------------------------------------------------------------------------
     NEUTRAL TONES - Balanced Warmth
     --------------------------------------------------------------------------- */
  
  --neutral-100: #faf8f5;
  --neutral-200: #e8e4dc;
  --neutral-300: #ccc5b8;
  --neutral-400: #a69d8c;
  --neutral-500: #7a7265;
  --neutral-600: #544e44;
  --neutral-700: #3a3530;
  --neutral-800: #252220;
  --neutral-900: #1a1816;
  
  /* ---------------------------------------------------------------------------
     GLASSMORPHISM - Dark Premium Glass
     --------------------------------------------------------------------------- */
  
  --glass-bg-dark: rgba(10, 21, 32, 0.7);
  --glass-bg-medium: rgba(15, 31, 46, 0.6);
  --glass-bg-light: rgba(26, 48, 69, 0.4);
  --glass-bg-gold: rgba(201, 162, 39, 0.08);
  --glass-bg-viriditas: rgba(45, 125, 90, 0.1);
  
  --glass-border-subtle: rgba(255, 255, 255, 0.05);
  --glass-border-visible: rgba(255, 255, 255, 0.1);
  --glass-border-gold: rgba(201, 162, 39, 0.3);
  --glass-border-viriditas: rgba(94, 201, 157, 0.25);
  
  --glass-blur-light: blur(8px);
  --glass-blur-medium: blur(16px);
  --glass-blur-heavy: blur(24px);
  --glass-saturate: saturate(180%);
  
  /* ---------------------------------------------------------------------------
     TYPOGRAPHY
     --------------------------------------------------------------------------- */
  
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-heading: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-body: 'Source Sans Pro', 'Open Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 4rem;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
  --letter-spacing-widest: 0.2em;
  
  /* ---------------------------------------------------------------------------
     SPACING
     --------------------------------------------------------------------------- */
  
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* ---------------------------------------------------------------------------
     TIMING - Psychology-Informed Animation
     --------------------------------------------------------------------------- */
  
  --timing-instant: 0.1s;
  --timing-quick: 0.2s;
  --timing-moderate: 0.3s;
  --timing-deliberate: 0.5s;
  --timing-celebration: 0.8s;
  --timing-water: 1.2s;
  --timing-cosmic: 2s;
  --timing-meditation: 4s;
  
  /* ---------------------------------------------------------------------------
     EASING - Natural Motion
     --------------------------------------------------------------------------- */
  
  --ease-natural: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-water: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-breathe: cubic-bezier(0.37, 0, 0.63, 1);
  
  /* ---------------------------------------------------------------------------
     SHADOWS - Depth and Mysticism
     --------------------------------------------------------------------------- */
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
  
  --shadow-gold: 0 0 20px rgba(201, 162, 39, 0.3);
  --shadow-gold-intense: 0 0 40px rgba(201, 162, 39, 0.5);
  --shadow-viriditas: 0 0 20px rgba(94, 201, 157, 0.25);
  --shadow-crimson: 0 0 20px rgba(139, 37, 37, 0.3);
  
  --shadow-inset-dark: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-inset-glow: inset 0 0 20px rgba(201, 162, 39, 0.1);
  
  /* ---------------------------------------------------------------------------
     BORDERS
     --------------------------------------------------------------------------- */
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  --border-thin: 1px;
  --border-medium: 2px;
  --border-thick: 3px;
  
  /* ---------------------------------------------------------------------------
     Z-INDEX SCALE
     --------------------------------------------------------------------------- */
  
  --z-below: -1;
  --z-base: 0;
  --z-above: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--neutral-200);
  background-color: var(--water-abyss);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Midnight Water Background with Dawn Hints */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 50% at 50% 0%, var(--dawn-pink), transparent),
    radial-gradient(ellipse 80% 40% at 20% 20%, var(--dawn-gold), transparent),
    radial-gradient(ellipse 60% 80% at 80% 80%, var(--cosmic-deep), transparent),
    radial-gradient(ellipse 100% 100% at 50% 100%, var(--water-deep), transparent),
    linear-gradient(180deg, var(--water-deep) 0%, var(--water-abyss) 100%);
  z-index: var(--z-below);
  pointer-events: none;
}

/* Selection Styling */
::selection {
  background: rgba(201, 162, 39, 0.3);
  color: var(--gold-pale);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--neutral-100);
  margin: 0 0 var(--space-4) 0;
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: var(--letter-spacing-wider);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

/* Display Text - For Hero/Title Moments */
.text-display {
  font-family: var(--font-display);
  font-size: var(--font-size-6xl);
  font-weight: 400;
  font-style: italic;
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1.1;
}

/* Motto/Quote Styling */
.text-motto {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--gold-primary);
}

/* Body Text Variants */
.text-lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--neutral-300);
}

.text-small {
  font-size: var(--font-size-sm);
  color: var(--neutral-400);
}

.text-xs {
  font-size: var(--font-size-xs);
  color: var(--neutral-500);
}

/* Gold Accent Text */
.text-gold {
  color: var(--gold-primary);
}

.text-gold-gradient {
  background: var(--gold-shimmer);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Viriditas Accent Text */
.text-viriditas {
  color: var(--viriditas-glow);
}

/* Links */
a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--timing-quick) var(--ease-natural);
}

a:hover {
  color: var(--gold-pale);
}

a:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* ============================================================================
   GLASSMORPHIC CARDS
   ============================================================================ */

.card {
  position: relative;
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-medium) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur-medium) var(--glass-saturate);
  border: var(--border-thin) solid var(--glass-border-visible);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--timing-moderate) var(--ease-natural);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%,
    transparent 100%
  );
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-gold);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

/* Card Variants */
.card--gold {
  background: var(--glass-bg-gold);
  border-color: var(--glass-border-gold);
}

.card--viriditas {
  background: var(--glass-bg-viriditas);
  border-color: var(--glass-border-viriditas);
}

.card--crimson {
  background: rgba(107, 21, 21, 0.15);
  border-color: rgba(168, 50, 50, 0.3);
}

/* Deep Card for Nested Elements */
.card--deep {
  background: rgba(5, 8, 16, 0.8);
  border-color: var(--glass-border-subtle);
}

/* ============================================================================
   VIDEO CARDS - The Core Experience
   ============================================================================ */

.video-card {
  position: relative;
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-medium) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur-medium) var(--glass-saturate);
  border: var(--border-thin) solid var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--timing-moderate) var(--ease-natural);
  cursor: pointer;
}

.video-card__thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--water-dark);
}

.video-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--timing-deliberate) var(--ease-water);
}

.video-card__thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(3, 5, 8, 0.7) 100%
  );
  pointer-events: none;
}

/* Play Button Overlay */
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 64px;
  height: 64px;
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-light);
  border: var(--border-medium) solid var(--gold-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--timing-moderate) var(--ease-natural);
}

.video-card__play::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--gold-primary);
  margin-left: 4px;
}

.video-card__content {
  padding: var(--space-4);
}

.video-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--neutral-100);
  margin: 0 0 var(--space-2) 0;
  letter-spacing: var(--letter-spacing-wide);
}

.video-card__meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--neutral-400);
}

.video-card__duration {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Video Card Hover Effects */
.video-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--glass-border-gold);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
}

.video-card:hover .video-card__thumbnail img {
  transform: scale(1.08);
}

.video-card:hover .video-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Video Card Focus State */
.video-card:focus-visible {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.3);
}

/* ============================================================================
   CONCENTRIC CIRCLE ANIMATIONS - Hildegard's Visions
   ============================================================================ */

/* Base Concentric Container */
.concentric {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cosmic Vision Circles - Decorative */
.concentric-vision {
  position: absolute;
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.concentric-vision__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  animation: concentric-breathe var(--timing-meditation) var(--ease-breathe) infinite;
}

.concentric-vision__ring:nth-child(1) {
  width: 100%;
  height: 100%;
  border-color: rgba(201, 162, 39, 0.1);
  animation-delay: 0s;
}

.concentric-vision__ring:nth-child(2) {
  width: 80%;
  height: 80%;
  border-color: rgba(94, 201, 157, 0.1);
  animation-delay: 0.5s;
}

.concentric-vision__ring:nth-child(3) {
  width: 60%;
  height: 60%;
  border-color: rgba(201, 162, 39, 0.15);
  animation-delay: 1s;
}

.concentric-vision__ring:nth-child(4) {
  width: 40%;
  height: 40%;
  border-color: rgba(94, 201, 157, 0.15);
  animation-delay: 1.5s;
}

.concentric-vision__ring:nth-child(5) {
  width: 20%;
  height: 20%;
  border-color: rgba(201, 162, 39, 0.2);
  animation-delay: 2s;
}

@keyframes concentric-breathe {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Loading Spinner - Concentric */
.spinner-concentric {
  position: relative;
  width: 48px;
  height: 48px;
}

.spinner-concentric__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
}

.spinner-concentric__ring:nth-child(1) {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-top-color: var(--gold-primary);
  animation: spin-clockwise var(--timing-water) linear infinite;
}

.spinner-concentric__ring:nth-child(2) {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-right-color: var(--viriditas-glow);
  animation: spin-counter var(--timing-water) linear infinite;
}

.spinner-concentric__ring:nth-child(3) {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-bottom-color: var(--gold-light);
  animation: spin-clockwise var(--timing-celebration) linear infinite;
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Pulse Loading - Simpler Alternative */
.spinner-pulse {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
  animation: pulse-glow var(--timing-water) var(--ease-breathe) infinite;
}

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

/* ============================================================================
   WATER RIPPLE EFFECTS
   ============================================================================ */

/* Ripple Container */
.ripple-container {
  position: relative;
  overflow: hidden;
}

/* Click Ripple Effect */
.ripple {
  position: absolute;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.4) 0%,
    rgba(201, 162, 39, 0.1) 40%,
    transparent 70%
  );
  transform: scale(0);
  animation: ripple-expand var(--timing-deliberate) var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Ambient Water Ripples - Background Decoration */
.water-ripples {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.water-ripples__wave {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 40%,
    rgba(58, 96, 128, 0.03) 50%,
    transparent 60%
  );
  animation: water-drift var(--timing-meditation) var(--ease-water) infinite;
}

.water-ripples__wave:nth-child(2) {
  animation-delay: -1s;
  opacity: 0.7;
}

.water-ripples__wave:nth-child(3) {
  animation-delay: -2s;
  opacity: 0.5;
}

@keyframes water-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-2%, 1%) scale(1.02);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Surface Shimmer Effect */
.surface-shimmer {
  position: relative;
  overflow: hidden;
}

.surface-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  animation: shimmer var(--timing-cosmic) var(--ease-natural) infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ============================================================================
   MEDIEVAL BORDERS AND DIVIDERS
   ============================================================================ */

/* Illuminated Border */
.border-illuminated {
  position: relative;
  border: var(--border-medium) solid var(--gold-deep);
  padding: var(--space-6);
}

.border-illuminated::before,
.border-illuminated::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: var(--border-medium) solid var(--gold-primary);
}

.border-illuminated::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

.border-illuminated::after {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
}

/* Corner Flourishes */
.border-flourish {
  position: relative;
}

.border-flourish__corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: var(--border-medium) solid var(--gold-primary);
}

.border-flourish__corner--tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.border-flourish__corner--tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.border-flourish__corner--bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

.border-flourish__corner--br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* Horizontal Divider - Medieval Style */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-deep) 50%,
    transparent 100%
  );
}

.divider__ornament {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  transform: rotate(45deg);
}

/* Double Line Divider */
.divider--double .divider__line {
  position: relative;
  height: 5px;
  background: transparent;
}

.divider--double .divider__line::before,
.divider--double .divider__line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-deep) 50%,
    transparent 100%
  );
}

.divider--double .divider__line::before {
  top: 0;
}

.divider--double .divider__line::after {
  bottom: 0;
}

/* Viriditas Divider Variant */
.divider--viriditas .divider__line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--viriditas-forest) 50%,
    transparent 100%
  );
}

.divider--viriditas .divider__ornament {
  background: var(--viriditas-glow);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

/* Base Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border-medium) solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--timing-quick) var(--ease-natural);
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.3);
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Button - Gold */
.btn--primary {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-primary) 100%);
  color: var(--water-abyss);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(-2px);
}

/* Secondary Button - Viriditas */
.btn--secondary {
  background: linear-gradient(135deg, var(--viriditas-deep) 0%, var(--viriditas-forest) 100%);
  color: var(--neutral-100);
  border-color: var(--viriditas-living);
  box-shadow: var(--shadow-md);
}

.btn--secondary:hover {
  background: linear-gradient(135deg, var(--viriditas-forest) 0%, var(--viriditas-living) 100%);
  box-shadow: var(--shadow-lg), var(--shadow-viriditas);
  transform: translateY(-2px);
}

/* Ghost Button - Glass */
.btn--ghost {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-light);
  color: var(--neutral-200);
  border-color: var(--glass-border-visible);
}

.btn--ghost:hover {
  background: var(--glass-bg-medium);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Outline Button */
.btn--outline {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn--outline:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* Crimson/Danger Button */
.btn--danger {
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson-rich) 100%);
  color: var(--neutral-100);
  border-color: var(--crimson-primary);
}

.btn--danger:hover {
  background: linear-gradient(135deg, var(--crimson-rich) 0%, var(--crimson-primary) 100%);
  box-shadow: var(--shadow-lg), var(--shadow-crimson);
  transform: translateY(-2px);
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

/* Icon Button */
.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn--icon.btn--sm {
  width: 36px;
  height: 36px;
}

.btn--icon.btn--lg {
  width: 56px;
  height: 56px;
}

/* Button Loading State */
.btn--loading {
  pointer-events: none;
  color: transparent;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: var(--radius-full);
  animation: spin-clockwise var(--timing-celebration) linear infinite;
}

.btn--primary.btn--loading::after {
  border-top-color: var(--water-abyss);
}

/* ============================================================================
   FORM STYLING - OTP LOGIN
   ============================================================================ */

/* Form Container */
.form {
  width: 100%;
  max-width: 400px;
}

.form__group {
  margin-bottom: var(--space-5);
}

.form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--neutral-300);
  margin-bottom: var(--space-2);
}

/* Text Input */
.form__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--neutral-100);
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-light);
  border: var(--border-medium) solid var(--glass-border-visible);
  border-radius: var(--radius-md);
  transition: all var(--timing-quick) var(--ease-natural);
}

.form__input::placeholder {
  color: var(--neutral-500);
}

.form__input:hover {
  border-color: var(--glass-border-gold);
}

.form__input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15), var(--shadow-inset-glow);
}

.form__input--error {
  border-color: var(--crimson-primary);
}

.form__input--error:focus {
  box-shadow: 0 0 0 3px rgba(139, 37, 37, 0.2);
}

/* OTP Input - Special Styling */
.otp-container {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.otp-input {
  width: 56px;
  height: 64px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--gold-primary);
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-light);
  border: var(--border-medium) solid var(--glass-border-visible);
  border-radius: var(--radius-md);
  transition: all var(--timing-quick) var(--ease-natural);
  caret-color: var(--gold-primary);
}

.otp-input:hover {
  border-color: var(--glass-border-gold);
}

.otp-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold), var(--shadow-inset-glow);
  background: rgba(201, 162, 39, 0.05);
}

.otp-input--filled {
  border-color: var(--viriditas-living);
  background: rgba(45, 125, 90, 0.1);
}

.otp-input--error {
  border-color: var(--crimson-primary);
  animation: shake var(--timing-moderate) var(--ease-natural);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Email Input for Magic Link */
.magic-link-input {
  position: relative;
}

.magic-link-input .form__input {
  padding-left: 48px;
}

.magic-link-input__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  transition: color var(--timing-quick) var(--ease-natural);
}

.magic-link-input:focus-within .magic-link-input__icon {
  color: var(--gold-primary);
}

/* Form Messages */
.form__message {
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
}

.form__message--error {
  color: var(--crimson-glow);
}

.form__message--success {
  color: var(--viriditas-glow);
}

.form__message--info {
  color: var(--neutral-400);
}

/* Form Actions */
.form__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* ============================================================================
   OAR SILHOUETTE DECORATIVE ELEMENTS
   ============================================================================ */

/* SVG Oar - Inline for Maximum Control */
.oar-decoration {
  position: absolute;
  width: 200px;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
}

.oar-decoration--left {
  left: -80px;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
}

.oar-decoration--right {
  right: -80px;
  top: 50%;
  transform: translateY(-50%) rotate(15deg) scaleX(-1);
}

/* CSS Oar Shape - Pure CSS Version */
.oar-css {
  position: relative;
  width: 180px;
  height: 12px;
}

.oar-css__shaft {
  position: absolute;
  width: 140px;
  height: 8px;
  background: linear-gradient(180deg, 
    var(--gold-deep) 0%, 
    var(--gold-rich) 50%, 
    var(--gold-deep) 100%
  );
  border-radius: 4px;
  top: 2px;
  left: 0;
}

.oar-css__blade {
  position: absolute;
  width: 50px;
  height: 12px;
  background: var(--gold-primary);
  right: 0;
  top: 0;
  border-radius: 0 6px 6px 0;
  clip-path: polygon(0 20%, 100% 0%, 100% 100%, 0 80%);
}

.oar-css__handle {
  position: absolute;
  width: 20px;
  height: 12px;
  background: var(--gold-deep);
  left: -8px;
  top: -2px;
  border-radius: 6px 0 0 6px;
}

/* Crossed Oars Emblem */
.oars-crossed {
  position: relative;
  width: 120px;
  height: 80px;
}

.oars-crossed__oar {
  position: absolute;
  width: 100px;
  height: 6px;
  background: linear-gradient(90deg, 
    var(--gold-deep) 0%, 
    var(--gold-rich) 20%,
    var(--gold-primary) 80%,
    var(--gold-light) 100%
  );
  border-radius: 3px;
  top: 50%;
  left: 50%;
}

.oars-crossed__oar:first-child {
  transform: translate(-50%, -50%) rotate(-30deg);
}

.oars-crossed__oar:last-child {
  transform: translate(-50%, -50%) rotate(30deg);
}

.oars-crossed__oar::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 25px;
  height: 14px;
  background: var(--gold-primary);
  border-radius: 0 7px 7px 0;
  clip-path: polygon(0 20%, 100% 0%, 100% 100%, 0 80%);
}

/* SVG Inline Oar for Precise Control */
.oar-svg {
  fill: currentColor;
  color: var(--gold-primary);
}

/* Oar Animation on Hover */
.oar-animated {
  transition: transform var(--timing-deliberate) var(--ease-water);
}

.oar-animated:hover {
  transform: rotate(-5deg);
}

/* ============================================================================
   CUSTOM SCROLLBAR
   ============================================================================ */

/* Webkit Browsers */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--water-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep) 0%, var(--gold-rich) 100%);
  border-radius: var(--radius-full);
  border: 2px solid var(--water-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-rich) 0%, var(--gold-primary) 100%);
}

::-webkit-scrollbar-corner {
  background: var(--water-dark);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) var(--water-dark);
}

/* ============================================================================
   LOGIN PAGE - SPECIFIC STYLES
   ============================================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-heavy) var(--glass-saturate);
  border: var(--border-thin) solid var(--glass-border-gold);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-2xl), var(--shadow-gold);
}

.login-card__logo {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  color: var(--neutral-100);
  text-align: center;
  margin-bottom: var(--space-2);
}

.login-card__subtitle {
  font-size: var(--font-size-sm);
  color: var(--neutral-400);
  text-align: center;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-8);
}

.login-card__motto {
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--glass-border-subtle);
}

.login-card__motto-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--font-size-lg);
  color: var(--gold-light);
}

/* ============================================================================
   VIDEO GALLERY LAYOUT
   ============================================================================ */

.gallery {
  padding: var(--space-8);
}

.gallery__header {
  margin-bottom: var(--space-8);
}

.gallery__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  color: var(--neutral-100);
  margin-bottom: var(--space-2);
}

.gallery__subtitle {
  font-size: var(--font-size-base);
  color: var(--neutral-400);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.gallery__filters {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

/* ============================================================================
   VIDEO PLAYER PAGE
   ============================================================================ */

.player-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6);
}

.player-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--water-abyss);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-2xl);
}

.player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-info {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-medium);
  border: var(--border-thin) solid var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.player-info__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  color: var(--neutral-100);
  margin-bottom: var(--space-3);
}

.player-info__meta {
  display: flex;
  gap: var(--space-6);
  color: var(--neutral-400);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

.player-info__description {
  color: var(--neutral-300);
  line-height: var(--line-height-relaxed);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-heavy) var(--glass-saturate);
  border-bottom: var(--border-thin) solid var(--glass-border-subtle);
  padding: var(--space-4) var(--space-6);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__logo {
  width: 40px;
  height: 40px;
}

.nav__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: var(--letter-spacing-wide);
}

.nav__links {
  display: flex;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--font-size-sm);
  color: var(--neutral-300);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  transition: color var(--timing-quick) var(--ease-natural);
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-medium);
  border: var(--border-thin) solid var(--glass-border-visible);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 400px;
  animation: toast-slide-in var(--timing-moderate) var(--ease-out);
}

.toast--success {
  border-color: var(--viriditas-living);
}

.toast--error {
  border-color: var(--crimson-primary);
}

.toast--info {
  border-color: var(--gold-primary);
}

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast__content {
  flex: 1;
}

.toast__title {
  font-weight: 600;
  color: var(--neutral-100);
  margin-bottom: var(--space-1);
}

.toast__message {
  font-size: var(--font-size-sm);
  color: var(--neutral-400);
}

.toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--neutral-500);
  cursor: pointer;
  padding: var(--space-1);
  transition: color var(--timing-quick) var(--ease-natural);
}

.toast__close:hover {
  color: var(--neutral-200);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================================
   MODAL
   ============================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: var(--glass-blur-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: fade-in var(--timing-moderate) var(--ease-natural);
}

.modal {
  position: relative;
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-heavy) var(--glass-saturate);
  border: var(--border-thin) solid var(--glass-border-gold);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-2xl), var(--shadow-gold);
  animation: modal-scale-in var(--timing-moderate) var(--ease-out);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--glass-bg-light);
  border: var(--border-thin) solid var(--glass-border-subtle);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  cursor: pointer;
  transition: all var(--timing-quick) var(--ease-natural);
}

.modal__close:hover {
  background: var(--glass-bg-medium);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  color: var(--neutral-100);
  margin-bottom: var(--space-4);
}

.modal__content {
  color: var(--neutral-300);
  line-height: var(--line-height-relaxed);
}

.modal__actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  justify-content: flex-end;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-scale-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================================================
   SKELETON LOADING STATES
   ============================================================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--glass-bg-dark) 25%,
    var(--glass-bg-medium) 50%,
    var(--glass-bg-dark) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer var(--timing-water) var(--ease-natural) infinite;
  border-radius: var(--radius-md);
}

.skeleton--text {
  height: 1em;
  width: 100%;
}

.skeleton--title {
  height: 1.5em;
  width: 60%;
}

.skeleton--thumbnail {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
}

.skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}

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

/* ============================================================================
   HERO SECTION - Landing Page
   ============================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

.hero__content {
  position: relative;
  z-index: var(--z-above);
  max-width: 800px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--viriditas-glow);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--neutral-100);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero__title-accent {
  color: var(--gold-primary);
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--neutral-400);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   BADGES & TAGS
   ============================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--glass-bg-medium);
  border: var(--border-thin) solid var(--glass-border-visible);
  color: var(--neutral-300);
}

.badge--gold {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.badge--viriditas {
  background: rgba(94, 201, 157, 0.15);
  border-color: var(--viriditas-living);
  color: var(--viriditas-light);
}

.badge--crimson {
  background: rgba(139, 37, 37, 0.15);
  border-color: var(--crimson-primary);
  color: var(--crimson-glow);
}

.badge--new {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-rich) 100%);
  border-color: var(--gold-primary);
  color: var(--water-abyss);
}

/* ============================================================================
   AVATAR
   ============================================================================ */

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-rich) 100%);
  border: var(--border-medium) solid var(--gold-primary);
  color: var(--water-abyss);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: var(--font-size-xs);
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: var(--font-size-lg);
}

.avatar--xl {
  width: 80px;
  height: 80px;
  font-size: var(--font-size-2xl);
}

/* ============================================================================
   PROGRESS BAR
   ============================================================================ */

.progress {
  width: 100%;
  height: 6px;
  background: var(--glass-bg-dark);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold-primary) 100%);
  border-radius: var(--radius-full);
  transition: width var(--timing-moderate) var(--ease-natural);
}

.progress--viriditas .progress__bar {
  background: linear-gradient(90deg, var(--viriditas-deep) 0%, var(--viriditas-glow) 100%);
}

/* ============================================================================
   TOOLTIP
   ============================================================================ */

.tooltip {
  position: relative;
}

.tooltip__content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--space-2) var(--space-3);
  background: var(--neutral-800);
  color: var(--neutral-200);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--timing-quick) var(--ease-natural);
  z-index: var(--z-tooltip);
}

.tooltip__content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--neutral-800);
}

.tooltip:hover .tooltip__content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

/* ============================================================================
   SWITCH/TOGGLE
   ============================================================================ */

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__slider {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--glass-bg-dark);
  border: var(--border-medium) solid var(--glass-border-visible);
  border-radius: var(--radius-full);
  transition: all var(--timing-quick) var(--ease-natural);
}

.switch__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--neutral-400);
  border-radius: var(--radius-full);
  transition: all var(--timing-quick) var(--ease-bounce);
}

.switch__input:checked + .switch__slider {
  background: rgba(45, 125, 90, 0.3);
  border-color: var(--viriditas-living);
}

.switch__input:checked + .switch__slider::before {
  transform: translateX(22px);
  background: var(--viriditas-glow);
}

.switch__input:focus-visible + .switch__slider {
  box-shadow: 0 0 0 3px rgba(94, 201, 157, 0.3);
}

.switch__label {
  margin-left: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--neutral-300);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing */
.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

/* Width */
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Visibility */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Transitions */
.transition { transition: all var(--timing-quick) var(--ease-natural); }
.transition-slow { transition: all var(--timing-moderate) var(--ease-natural); }

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  background: var(--water-abyss);
  border-top: var(--border-thin) solid var(--glass-border-subtle);
  padding: var(--space-12) var(--space-6) var(--space-6);
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.footer__brand {
  grid-column: 1 / -1;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__tagline {
  color: var(--neutral-500);
  font-size: var(--font-size-sm);
  font-style: italic;
}

.footer__section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  display: block;
  color: var(--neutral-400);
  font-size: var(--font-size-sm);
  padding: var(--space-1) 0;
  transition: color var(--timing-quick) var(--ease-natural);
}

.footer__link:hover {
  color: var(--neutral-200);
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: var(--border-thin) solid var(--glass-border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: var(--neutral-600);
}

.footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: var(--font-size-sm);
}

/* ============================================================================
   EMPTY STATES
   ============================================================================ */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.empty-state__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  color: var(--neutral-600);
}

.empty-state__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  color: var(--neutral-300);
  margin-bottom: var(--space-3);
}

.empty-state__description {
  font-size: var(--font-size-base);
  color: var(--neutral-500);
  max-width: 400px;
  margin: 0 auto var(--space-6);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
  }

  .login-card {
    padding: var(--space-6);
  }

  .otp-input {
    width: 44px;
    height: 52px;
    font-size: var(--font-size-xl);
  }

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

  .nav__links {
    display: none;
  }

  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__links {
    gap: var(--space-4);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__brand {
    grid-column: span 1;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1200px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .skeleton {
    animation: none;
    background: var(--glass-bg-medium);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --glass-bg-dark: rgba(0, 0, 0, 0.9);
    --glass-border-visible: rgba(255, 255, 255, 0.3);
    --glass-border-gold: rgba(201, 162, 39, 0.6);
  }
  
  .btn--primary {
    border-width: 3px;
  }
  
  .form__input:focus {
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.4);
  }
}

/* Print Styles */
@media print {
  body::before {
    display: none;
  }
  
  .nav,
  .toast-container,
  .modal-overlay {
    display: none;
  }
  
  .card,
  .video-card,
  .login-card {
    background: white;
    color: black;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* ============================================================================
   END OF PIP-HILDEGARD.CSS
   ============================================================================ */
