/* ============================================
   BASE & DESIGN TOKENS (PREMIUM LIGHT/DARK MODE)
   ============================================ */

:root {
  /* GLOBAL BRAND TOKENS (HSL for better control) */
  --h-orange: 22;
  --s-orange: 100%;
  --l-orange: 50%;
  
  --color-orange: hsl(var(--h-orange), var(--s-orange), var(--l-orange));
  --color-orange-dark: hsl(var(--h-orange), var(--s-orange), 40%);
  --color-orange-glow: hsla(var(--h-orange), var(--s-orange), var(--l-orange), 0.4);
  
  --color-success: #00e676;
  --color-error: #ff1744;
  --color-highlight: #ffc400;
  
  /* LIGHT THEME (Warm & Premium) */
  --color-bg-base: #fcfbf9;
  --color-bg-secondary: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-card-solid: #ffffff;
  
  --color-text: #0a0a0a;
  --color-text-secondary: #4a4a4a;
  --color-text-muted: #8a8a8a;
  
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --glass-blur: blur(20px);
  
  /* Modern Shadows (Layered) */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-orange: 0 10px 30px -10px var(--color-orange-glow);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, sans-serif;
  --font-display: 'Inter', -apple-system, sans-serif; /* Fallback for now */
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK THEME (Pure Black OLED) */
[data-theme="dark"] {
  --color-bg-base: #000000;
  --color-bg-secondary: #080808;
  --color-bg-card: #111111;
  --color-bg-card-solid: #111111;
  
  --color-text: #ffffff;
  --color-text-secondary: #a1a1a1;
  --color-text-muted: #666666;
  
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);
  
  --glass-bg: rgba(0, 0, 0, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg-base: #000000;
    --color-bg-secondary: #080808;
    --color-bg-card: #111111;
    --color-bg-card-solid: #111111;
    --color-text: #ffffff;
    --color-text-secondary: #a1a1a1;
    --color-text-muted: #666666;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

html, body {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-base);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title i { color: var(--color-orange); }

/* Utilities */
.text-center { text-align: center; }
.text-orange { color: var(--color-orange); }
.hidden { display: none !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Store Status Badge */
.store-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
}
.store-status:hover {
  background: var(--color-bg-secondary);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.store-status.open .status-dot {
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}
.store-status.open .status-dot::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border: 2px solid var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.5;
}
.store-status.closed .status-dot {
  background: var(--color-error);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(15, 15, 18, 0.85); /* Fallback dark */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  z-index: 10000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: translateY(120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text p {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 4px;
}

.cookie-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-orange);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    flex: 1;
  }
}
