/* ==========================================================================
   REDPANDAIUM — PAVILLON BEAUX-ARTS DESIGN SYSTEM (COMPACT & MODERN)
   Modern, Lightweight, Hyper-Legible Museum Architecture
   Author: Mercu7io
   ========================================================================== */

:root {
  --bg-pavilion: #08090d;
  --bg-card: rgba(18, 20, 28, 0.85);
  --bg-card-hover: rgba(26, 29, 40, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(255, 255, 255, 0.18);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-red: rgba(255, 77, 77, 0.35);
  
  --panda-red: #ff4d4d;
  --panda-orange: #ff6b35;
  --gold-warm: #f59e0b;
  --emerald-live: #10b981;
  
  --text-pure: #f8fafc;
  --text-main: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-pavilion);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-pavilion);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #07080c 0%, #0d0f14 100%);
  background-size: 28px 28px, 100% 100%;
}

/* Typography Utility Classes */
.font-gallery { font-family: var(--font-serif); }
.font-mono-tech { font-family: var(--font-mono); }
.font-body { font-family: var(--font-sans); }

/* Spotlight Halo Beam (Subtle & Performant) */
.gallery-spotlight {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: radial-gradient(
    550px circle at var(--mouse-x, 50%) var(--mouse-y, 35%),
    rgba(255, 245, 230, 0.04),
    transparent 70%
  );
  transition: opacity 0.3s ease;
}

/* Compact Museum Cards */
.exhibit-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.exhibit-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 77, 77, 0.08);
}

/* Red Panda Seal */
.panda-seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.panda-seal::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--panda-red), var(--gold-warm), var(--panda-orange), var(--panda-red));
  z-index: -1;
  opacity: 0.35;
  filter: blur(6px);
}

/* Category Filter Tabs */
.filter-tab {
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: var(--text-muted);
}
.filter-tab:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.06);
}
.filter-tab.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Sound Wave Animation (Audio Guide) */
.sound-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}
.sound-bar {
  width: 2px;
  background: var(--gold-warm);
  border-radius: 2px;
  animation: waveMotion 1.2s ease-in-out infinite alternate;
}
.sound-bar:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 11px; animation-delay: 0.3s; }
.sound-bar:nth-child(3) { height: 6px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }
@keyframes waveMotion {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-pavilion); }
::-webkit-scrollbar-thumb { background: #202330; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #353b50; }

/* Status Badges */
.badge-prod {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.badge-testing {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Kinetic Voyage Typography (2026 Aurora Starlight Flow) */
.kinetic-voyage-title {
  background: linear-gradient(
    115deg,
    #ffffff 0%,
    #fef08a 18%,
    #ff4d4d 42%,
    #f59e0b 68%,
    #cbd5e1 88%,
    #ffffff 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: voyageAurora 10s ease-in-out infinite alternate;
  text-shadow: 0 0 35px rgba(255, 77, 77, 0.12);
  display: inline-block;
}

@keyframes voyageAurora {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Celestial Constellation Canvas */
#hero-voyage-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* Astrolabe / Compass Badge */
.voyage-astrolabe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}

/* Sound Wave Playback States */
.sound-wave.is-playing .sound-bar {
  animation-play-state: running;
}
.sound-wave.is-paused .sound-bar {
  animation-play-state: paused;
  height: 3px !important;
  opacity: 0.6;
}

/* Unified Navigation Links */
.pavilion-nav-link {
  transition: all 0.2s ease;
}
.pavilion-nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .gallery-spotlight { display: none; }
  #hero-voyage-canvas { opacity: 0.5; }
}

/* ==========================================================================
   REDPANDA HERO INSIGNIA & MASCOT PRESENCE
   ========================================================================== */
.hero-panda-insignia {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.8), rgba(245, 158, 11, 0.6), rgba(255, 107, 53, 0.8));
  box-shadow: 0 0 35px rgba(255, 77, 77, 0.35), 0 0 15px rgba(245, 158, 11, 0.25);
  animation: pandaBreathing 4s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .hero-panda-insignia {
    width: 110px;
    height: 110px;
  }
}

.hero-panda-insignia:hover {
  transform: scale(1.06) rotate(2deg);
  box-shadow: 0 0 50px rgba(255, 77, 77, 0.55), 0 0 25px rgba(245, 158, 11, 0.4);
}

.hero-panda-insignia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #090b10;
  background: #090b10;
}

@keyframes pandaBreathing {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.02); }
}

/* Floating Red Panda Companion */
.floating-panda-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 16, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 77, 77, 0.3);
  padding: 6px 14px 6px 6px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 77, 77, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-panda-widget:hover {
  border-color: rgba(255, 77, 77, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 77, 77, 0.35);
}

