/**
 * PhotoSplit Studio — style-premium.css
 * True Dark Mode, Immersive Animations, and Premium Visuals
 */

/* 🌑 TRUE OLED DARK MODE (Enhancement) */
[data-theme="dark"] {
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-2: #121212;
  --bg-sunken: #050505;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  /* Glassmorphism */
  --glass-bg: rgba(10, 10, 10, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .tool-sidebar,
[data-theme="dark"] .splits-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

/* 🎙️ VOICE UI */
#btn-voice-toggle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#btn-voice-toggle.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px rgba(254, 44, 85, 0.4);
}

#btn-voice-toggle.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: voice-pulse 1.5s infinite;
}

@keyframes voice-pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* 🏗️ IMMERSIVE ONBOARDING / HERO */
.hero-3d-scene {
  perspective: 1000px;
  overflow: hidden;
}

.floating-photo {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero:hover .floating-photo {
  transform: translateZ(50px) rotateY(10deg);
}

/* ♿ ACCESSIBILITY FOCUS STATES */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* MICRO-ANIMATIONS */
.bounding-box {
  transition: opacity 0.3s, transform 0.3s;
}

.bounding-box.detected {
  animation: box-reveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes box-reveal {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
