/* ============================================================
   BURHANI HERBALS — THEME ENGINE
   6 Dynamic Themes + Day/Night Mode
   ============================================================ */

/* ── GLOBAL TRANSITION (applied to :root for smooth theme morph) ── */
:root {
  transition:
    background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════
   THEME 1 — 🌿 NATURE GREEN FLOW (default)
   ═══════════════════════════════════════════════ */
:root,
[data-theme="nature-green"] {
  --bg-primary:       #f0f7ee;
  --bg-secondary:     #e2f0df;
  --bg-deep:          #c8e6c0;
  --accent:           #2d6a1f;
  --accent-2:         #4caf50;
  --accent-glow:      rgba(76, 175, 80, 0.45);
  --gold:             #c8a84b;
  --text-primary:     #1a2e18;
  --text-muted:       rgba(26, 46, 24, 0.60);
  --glass-bg:         rgba(255, 255, 255, 0.18);
  --glass-border:     rgba(76, 175, 80, 0.25);
  --glass-blur:       16px;
  --card-bg:          rgba(255, 255, 255, 0.22);
  --card-border:      rgba(76, 175, 80, 0.20);
  --nav-bg:           rgba(240, 247, 238, 0.75);
  --btn-primary-bg:   #2d6a1f;
  --btn-primary-text: #ffffff;
  --btn-glow:         rgba(45, 106, 31, 0.50);
  --particle-color:   #4caf50;
  --particle-secondary: #81c784;
  --cursor-color:     #2d6a1f;
  --cursor-glow:      rgba(45, 106, 31, 0.60);
  --shadow-color:     rgba(45, 106, 31, 0.15);
  --hero-gradient:    linear-gradient(135deg, #e8f5e9 0%, #f0f7ee 50%, #e0f2f1 100%);
  --section-alt:      #e8f5e9;
  --divider:          #c8a84b;
  --loading-bg:       #1a2e18;
  --loading-accent:   #4caf50;
}

/* ═══════════════════════════════════════════════
   THEME 2 — 🌙 LIGHT / DARK LUXURY (GOLD)
   ═══════════════════════════════════════════════ */
[data-theme="dark-luxury"] {
  /* Day Mode (Light Luxury) */
  --bg-primary:       #fcfbf8;
  --bg-secondary:     #f4f1ea;
  --bg-deep:          #ebe5d8;
  --accent:           #c8a84b;
  --accent-2:         #b08d38;
  --accent-glow:      rgba(200, 168, 75, 0.40);
  --gold:             #c8a84b;
  --text-primary:     #2c2a26;
  --text-muted:       rgba(44, 42, 38, 0.65);
  --glass-bg:         rgba(255, 255, 255, 0.45);
  --glass-border:     rgba(200, 168, 75, 0.35);
  --glass-blur:       16px;
  --card-bg:          rgba(255, 255, 255, 0.60);
  --card-border:      rgba(200, 168, 75, 0.25);
  --nav-bg:           rgba(252, 251, 248, 0.85);
  --btn-primary-bg:   #c8a84b;
  --btn-primary-text: #ffffff;
  --btn-glow:         rgba(200, 168, 75, 0.45);
  --particle-color:   #d4b86a;
  --particle-secondary: #c8a84b;
  --cursor-color:     #c8a84b;
  --cursor-glow:      rgba(200, 168, 75, 0.55);
  --shadow-color:     rgba(200, 168, 75, 0.15);
  --hero-gradient:    linear-gradient(135deg, #fcfbf8 0%, #f4f1ea 50%, #ebe5d8 100%);
  --section-alt:      #f4f1ea;
  --divider:          #c8a84b;
  --loading-bg:       #ffffff;
  --loading-accent:   #c8a84b;
}

[data-theme="dark-luxury"][data-daynight="night"] {
  /* Night Mode (Dark Luxury) — Restores the original dark elegance */
  --bg-primary:       #0a0f0a;
  --bg-secondary:     #111811;
  --bg-deep:          #0d160d;
  --accent:           #c8a84b;
  --accent-2:         #2e7d32;
  --accent-glow:      rgba(200, 168, 75, 0.50);
  --gold:             #c8a84b;
  --text-primary:     #e8f5e9;
  --text-muted:       rgba(232, 245, 233, 0.55);
  --glass-bg:         rgba(255, 255, 255, 0.06);
  --glass-border:     rgba(200, 168, 75, 0.25);
  --glass-blur:       20px;
  --card-bg:          rgba(30, 40, 30, 0.65);
  --card-border:      rgba(200, 168, 75, 0.20);
  --nav-bg:           rgba(10, 15, 10, 0.82);
  --btn-primary-bg:   #c8a84b;
  --btn-primary-text: #0a0f0a;
  --btn-glow:         rgba(200, 168, 75, 0.55);
  --particle-color:   #c8a84b;
  --particle-secondary: #2e7d32;
  --cursor-color:     #c8a84b;
  --cursor-glow:      rgba(200, 168, 75, 0.70);
  --shadow-color:     rgba(200, 168, 75, 0.20);
  --hero-gradient:    linear-gradient(135deg, #0a0f0a 0%, #111811 50%, #0d160d 100%);
  --section-alt:      #0d160d;
  --divider:          #c8a84b;
  --loading-bg:       #000000;
  --loading-accent:   #c8a84b;
}

/* ═══════════════════════════════════════════════
   THEME 3 — 🌼 AYURVEDIC EARTH
   ═══════════════════════════════════════════════ */
[data-theme="ayurvedic-earth"] {
  --bg-primary:       #f5ece0;
  --bg-secondary:     #ede0ce;
  --bg-deep:          #e8d5b5;
  --accent:           #8B4513;
  --accent-2:         #d4890a;
  --accent-glow:      rgba(212, 137, 10, 0.40);
  --gold:             #d4890a;
  --text-primary:     #3e1f08;
  --text-muted:       rgba(62, 31, 8, 0.60);
  --glass-bg:         rgba(255, 245, 235, 0.30);
  --glass-border:     rgba(212, 137, 10, 0.25);
  --glass-blur:       12px;
  --card-bg:          rgba(255, 245, 235, 0.45);
  --card-border:      rgba(139, 69, 19, 0.20);
  --nav-bg:           rgba(245, 236, 224, 0.80);
  --btn-primary-bg:   #8B4513;
  --btn-primary-text: #fff8f0;
  --btn-glow:         rgba(139, 69, 19, 0.45);
  --particle-color:   #d4890a;
  --particle-secondary: #8B4513;
  --cursor-color:     #8B4513;
  --cursor-glow:      rgba(139, 69, 19, 0.55);
  --shadow-color:     rgba(139, 69, 19, 0.18);
  --hero-gradient:    linear-gradient(135deg, #f5ece0 0%, #ede0ce 50%, #e8d5b5 100%);
  --section-alt:      #ede0ce;
  --divider:          #d4890a;
  --loading-bg:       #3e1f08;
  --loading-accent:   #d4890a;
}

/* ═══════════════════════════════════════════════
   THEME 4 — 💧 MINT FRESH
   ═══════════════════════════════════════════════ */
[data-theme="mint-fresh"] {
  --bg-primary:       #e0f7fa;
  --bg-secondary:     #f1fffe;
  --bg-deep:          #b2ebf2;
  --accent:           #00796b;
  --accent-2:         #26c6da;
  --accent-glow:      rgba(38, 198, 218, 0.45);
  --gold:             #00796b;
  --text-primary:     #004d40;
  --text-muted:       rgba(0, 77, 64, 0.60);
  --glass-bg:         rgba(255, 255, 255, 0.28);
  --glass-border:     rgba(38, 198, 218, 0.30);
  --glass-blur:       18px;
  --card-bg:          rgba(255, 255, 255, 0.35);
  --card-border:      rgba(0, 121, 107, 0.20);
  --nav-bg:           rgba(224, 247, 250, 0.78);
  --btn-primary-bg:   #00796b;
  --btn-primary-text: #ffffff;
  --btn-glow:         rgba(0, 121, 107, 0.50);
  --particle-color:   #26c6da;
  --particle-secondary: #80deea;
  --cursor-color:     #00796b;
  --cursor-glow:      rgba(0, 121, 107, 0.60);
  --shadow-color:     rgba(0, 121, 107, 0.15);
  --hero-gradient:    linear-gradient(135deg, #e0f7fa 0%, #f1fffe 50%, #b2ebf2 100%);
  --section-alt:      #f1fffe;
  --divider:          #26c6da;
  --loading-bg:       #004d40;
  --loading-accent:   #26c6da;
}

/* ═══════════════════════════════════════════════
   THEME 5 — 🔥 HERBAL ENERGY (ORANGE)
   ═══════════════════════════════════════════════ */
[data-theme="herbal-energy"] {
  --bg-primary:       #fff3e0;
  --bg-secondary:     #ffe0b2;
  --bg-deep:          #ffcc80;
  --accent:           #e65100;
  --accent-2:         #ff6f00;
  --accent-glow:      rgba(230, 81, 0, 0.40);
  --gold:             #ef6c00;
  --text-primary:     #3e1f08;
  --text-muted:       rgba(62, 31, 8, 0.60);
  --glass-bg:         rgba(255, 255, 255, 0.35);
  --glass-border:     rgba(230, 81, 0, 0.25);
  --glass-blur:       16px;
  --card-bg:          rgba(255, 255, 255, 0.45);
  --card-border:      rgba(230, 81, 0, 0.20);
  --nav-bg:           rgba(255, 243, 224, 0.85);
  --btn-primary-bg:   #e65100;
  --btn-primary-text: #ffffff;
  --btn-glow:         rgba(230, 81, 0, 0.45);
  --particle-color:   #ff9800;
  --particle-secondary: #f57c00;
  --cursor-color:     #e65100;
  --cursor-glow:      rgba(230, 81, 0, 0.55);
  --shadow-color:     rgba(230, 81, 0, 0.15);
  --hero-gradient:    linear-gradient(135deg, #fff3e0 0%, #ffe0b2 50%, #ffcc80 100%);
  --section-alt:      #ffe0b2;
  --divider:          #e65100;
  --loading-bg:       #3e1f08;
  --loading-accent:   #ff6f00;
}

/* ═══════════════════════════════════════════════
   THEME 6 — 🌸 FLORAL SOFT
   ═══════════════════════════════════════════════ */
[data-theme="floral-soft"] {
  --bg-primary:       #fdf2f8;
  --bg-secondary:     #fce4ec;
  --bg-deep:          #f8bbd0;
  --accent:           #c2185b;
  --accent-2:         #e91e8c;
  --accent-glow:      rgba(194, 24, 91, 0.35);
  --gold:             #ad1457;
  --text-primary:     #4a0e2e;
  --text-muted:       rgba(74, 14, 46, 0.60);
  --glass-bg:         rgba(255, 255, 255, 0.32);
  --glass-border:     rgba(194, 24, 91, 0.20);
  --glass-blur:       14px;
  --card-bg:          rgba(255, 255, 255, 0.40);
  --card-border:      rgba(194, 24, 91, 0.18);
  --nav-bg:           rgba(253, 242, 248, 0.82);
  --btn-primary-bg:   #c2185b;
  --btn-primary-text: #ffffff;
  --btn-glow:         rgba(194, 24, 91, 0.45);
  --particle-color:   #f48fb1;
  --particle-secondary: #ce93d8;
  --cursor-color:     #c2185b;
  --cursor-glow:      rgba(194, 24, 91, 0.60);
  --shadow-color:     rgba(194, 24, 91, 0.15);
  --hero-gradient:    linear-gradient(135deg, #fdf2f8 0%, #fce4ec 50%, #f8bbd0 100%);
  --section-alt:      #fce4ec;
  --divider:          #c2185b;
  --loading-bg:       #4a0e2e;
  --loading-accent:   #e91e8c;
}

/* ═══════════════════════════════════════════════
   DAY / NIGHT OVERLAY MODIFIER
   Applied as: [data-daynight="night"] on <html>
   Darkens any theme by remapping key tokens
   ═══════════════════════════════════════════════ */

/* ── Generic night mode (applies to nature-green, mint-fresh, floral-soft) ── */
[data-daynight="night"]:not([data-theme="dark-luxury"]):not([data-theme="herbal-energy"]):not([data-theme="ayurvedic-earth"]) {
  --bg-primary:   #121212;
  --bg-secondary: #1a1a1a;
  --glass-bg:     rgba(0, 0, 0, 0.45);
  --card-bg:      rgba(20, 20, 20, 0.60);
  --nav-bg:       rgba(10, 10, 10, 0.85);
  --text-primary: #ffffff;
  --text-muted:   #aaaaaa;
  --hero-gradient: linear-gradient(135deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
  --section-alt:  #151515;
}

/* ── Night mode — 🌼 AYURVEDIC EARTH (ORANGE) ──────────────────────────────
   Problem: same burnt-orange #8B4513 on a black bg has almost NO contrast.
   Fix: night mode shifts to a vivid amber-orange that glows on dark surfaces.
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="ayurvedic-earth"][data-daynight="night"] {
  /* Backgrounds — very dark warm brown */
  --bg-primary:     #100800;
  --bg-secondary:   #1a0f00;
  --bg-deep:        #0d0700;
  --section-alt:    #1a0f00;
  --hero-gradient:  linear-gradient(135deg, #100800 0%, #1a0f00 50%, #0d0700 100%);

  /* Accents — shift from dull sienna to vivid flame orange that pops on dark */
  --accent:         #ff7c2a;
  --accent-2:       #ffaa00;
  --accent-glow:    rgba(255, 124, 42, 0.60);
  --gold:           #ffaa00;

  /* Text */
  --text-primary:   #fff3e0;
  --text-muted:     rgba(255, 243, 224, 0.58);

  /* Glass & cards — warm dark */
  --glass-bg:       rgba(255, 124, 42, 0.08);
  --glass-border:   rgba(255, 124, 42, 0.28);
  --card-bg:        rgba(26, 15, 0, 0.70);
  --card-border:    rgba(255, 124, 42, 0.22);
  --nav-bg:         rgba(16, 8, 0, 0.88);

  /* Buttons */
  --btn-primary-bg:   #ff7c2a;
  --btn-primary-text: #ffffff;
  --btn-glow:         rgba(255, 124, 42, 0.60);

  /* Particles & cursor */
  --particle-color:      #ff7c2a;
  --particle-secondary:  #ffaa00;
  --cursor-color:        #ff7c2a;
  --cursor-glow:         rgba(255, 124, 42, 0.70);

  /* Other */
  --shadow-color: rgba(255, 124, 42, 0.22);
  --divider:      #ff7c2a;
}

/* ── Night mode — 🔥 HERBAL ENERGY (ORANGE DARK THEME) ─────────────────────
   This theme is already dark, so day vs night must feel distinctly different.
   Day = warm fiery orange glow; Night = deeper, cooler burnt ember tone.
   ─────────────────────────────────────────────────────────────────────────── */
[data-theme="herbal-energy"][data-daynight="night"] {
  /* Backgrounds — go even darker / more neutral so the accent reads differently */
  --bg-primary:     #0a0500;
  --bg-secondary:   #110800;
  --bg-deep:        #080300;
  --section-alt:    #110800;
  --hero-gradient:  linear-gradient(135deg, #0a0500 0%, #110800 50%, #0a0500 100%);

  /* Accent — deep ember red-orange instead of bright fire orange */
  --accent:         #d44000;
  --accent-2:       #e86820;
  --accent-glow:    rgba(212, 64, 0, 0.55);
  --gold:           #e07800;

  /* Text — cooler off-white to feel different from the warm day tones */
  --text-primary:   #f5ede0;
  --text-muted:     rgba(245, 237, 224, 0.50);

  /* Glass & cards */
  --glass-bg:       rgba(212, 64, 0, 0.10);
  --glass-border:   rgba(212, 64, 0, 0.28);
  --card-bg:        rgba(17, 8, 0, 0.80);
  --card-border:    rgba(212, 64, 0, 0.24);
  --nav-bg:         rgba(10, 5, 0, 0.92);

  /* Buttons */
  --btn-primary-bg:   #d44000;
  --btn-primary-text: #ffffff;
  --btn-glow:         rgba(212, 64, 0, 0.60);

  /* Particles & cursor */
  --particle-color:      #d44000;
  --particle-secondary:  #e07800;
  --cursor-color:        #d44000;
  --cursor-glow:         rgba(212, 64, 0, 0.70);

  /* Other */
  --shadow-color: rgba(212, 64, 0, 0.28);
  --divider:      #d44000;
}

