/* ── LUXURY DESIGN SYSTEM TOKENS ── */
:root {
  /* Dark Theme: Obsidian Gold & Neon Emerald (Default) */
  --bg-canvas: #08090f; /* Deep void black */
  --bg-card: rgba(17, 22, 40, 0.65); /* Translucent high-end slate blue */
  --text-primary: #94a3b8; /* Soft slate grey */
  --text-emphasis: #f8fafc; /* Crisp near-white */
  --text-muted: #64748b; /* Muted slate blue */

  --accent-primary: #d4a843; /* Burnished luxury gold */
  --accent-active: #f97316; /* Vivid orange pulse */
  --accent-success: #10b981; /* Neon Emerald status */
  --accent-warning: #ef4444; /* Crimson alarm */
  --accent-sku: #84cc16; /* Lime telemetry highlight */

  --glass-border: rgba(212, 168, 67, 0.15); /* Burnished Gold framing */
  --glass-shadow: rgba(0, 0, 0, 0.65);
  --font-family-sans: 'Outfit', sans-serif;
  --font-family-arabic: 'Noto Naskh Arabic', serif;
}

[data-theme='bright'] {
  /* Bright Theme: Alabaster Gold & Forest Mint */
  --bg-canvas: #f7f5f0; /* Warm warm alabaster sandstone */
  --bg-card: rgba(255, 255, 255, 0.75); /* Soft translucent white */
  --text-primary: #3f3f46; /* Warm bronze charcoal */
  --text-emphasis: #18181b; /* Elegant dark bronze */
  --text-muted: #8e8e93; /* Muted warm grey */

  --accent-primary: #d4a843; /* Burnished luxury gold stays consistent */
  --accent-active: #e67e22; /* Warm copper orange */
  --accent-success: #2d6a4f; /* Deep Forest Mint success */
  --accent-warning: #c93b2b; /* Classic red amber */
  --accent-sku: #4f772d; /* Moss green */

  --glass-border: rgba(212, 168, 67, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.05);
}

/* ── GLOBAL RESET & BASIC ELEMENTS ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Targeted smooth transitions for theme properties on layout elements */
body,
header,
main,
section,
footer,
select,
input,
textarea,
.glass-card,
button,
.btn-primary {
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-sans);
  color: var(--text-emphasis);
  font-weight: 600;
}

/* Ambient Glowing Spheres for Cinematic Lighting */
.glow-spheres-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  transition: all 0.8s ease;
}
.glow-1 {
  width: 35vw;
  height: 35vw;
  min-width: 300px;
  min-height: 300px;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(
    circle,
    var(--accent-primary) 0%,
    transparent 70%
  );
  top: 10%;
  left: 15%;
  animation: pulse-glow-1 12s infinite alternate ease-in-out;
}
.glow-2 {
  width: 45vw;
  height: 45vw;
  min-width: 350px;
  min-height: 350px;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(
    circle,
    var(--accent-success) 0%,
    transparent 70%
  );
  bottom: 15%;
  right: 10%;
  animation: pulse-glow-2 15s infinite alternate ease-in-out;
}

[data-theme='bright'] .glow-sphere {
  opacity: 0.12;
}

@keyframes pulse-glow-1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(40px, 30px) scale(1.1);
    opacity: 0.45;
  }
  100% {
    transform: translate(-20px, -40px) scale(0.9);
    opacity: 0.25;
  }
}
@keyframes pulse-glow-2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(-50px, 20px) scale(1.15);
    opacity: 0.5;
  }
  100% {
    transform: translate(30px, -20px) scale(0.95);
    opacity: 0.3;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ── PREMIUM GLASS CONTAINER SHAPES ── */
.glass-card {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

/* Interactive glass card glow on hover */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glass-card:hover::before {
  opacity: 1;
}
