/**
 * ASTIGPH 15 Custom Themes
 * 5 Combination Color Gradients, 5 Ordinary Colors, 5 Shade Color Mixes
 */

/* 1. Retro Halloween (Default - From Screenshot 2) */
body[data-theme="retro_halloween"], .theme-retro_halloween {
    --header-bg: linear-gradient(90deg, #5b101e, #800020, #a83232);
    --header-text: #ffffff;
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --accent-gold: #facc15;
    --body-bg: #f8f6f2;
    --body-pattern: radial-gradient(#e5e1d8 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #f1ede4;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --sidebar-active: #fee2e2;
    --sidebar-active-text: #991b1b;
}

/* 2. Cyberpunk Neon (Mix 1) */
body[data-theme="cyberpunk"], .theme-cyberpunk {
    --header-bg: linear-gradient(90deg, #0f172a, #2e1065, #083344);
    --header-text: #00f0ff;
    --primary: #d946ef;
    --primary-hover: #c026d3;
    --accent-gold: #00f0ff;
    --body-bg: #090d16;
    --body-pattern: radial-gradient(#1e293b 1px, transparent 1px);
    --card-bg: #111827;
    --card-border: #1f2937;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --sidebar-active: #3b0764;
    --sidebar-active-text: #f0abfc;
}

/* 3. Sunset Paradise (Mix 2) */
body[data-theme="sunset"], .theme-sunset {
    --header-bg: linear-gradient(90deg, #9f1239, #ea580c, #f59e0b);
    --header-text: #ffffff;
    --primary: #f97316;
    --primary-hover: #ea580c;
    --accent-gold: #fde047;
    --body-bg: #fffaf5;
    --body-pattern: radial-gradient(#fed7aa 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #ffedd5;
    --text-color: #292524;
    --text-muted: #78716c;
    --sidebar-active: #ffedd5;
    --sidebar-active-text: #c2410c;
}

/* 4. Aurora Borealis (Mix 3) */
body[data-theme="aurora"], .theme-aurora {
    --header-bg: linear-gradient(90deg, #022c22, #0d9488, #0284c7);
    --header-text: #ffffff;
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --accent-gold: #5eead4;
    --body-bg: #f0fdfa;
    --body-pattern: radial-gradient(#ccfbf1 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #e6fffa;
    --text-color: #134e4a;
    --text-muted: #5eead4;
    --sidebar-active: #ccfbf1;
    --sidebar-active-text: #0f766e;
}

/* 5. Cosmic Midnight (Mix 4) - Official Default Theme */
body[data-theme="cosmic"], .theme-cosmic {
    --header-bg: linear-gradient(90deg, #172554, #312e81, #581c87);
    --header-text: #e0e7ff;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent-gold: #fbbf24;
    --body-bg: #ffffff;
    --body-pattern: radial-gradient(#e0e7ff 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #e0e7ff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --sidebar-active: #e0e7ff;
    --sidebar-active-text: #3730a3;
}

/* 6. Candy Pop (Mix 5) */
body[data-theme="candy"], .theme-candy {
    --header-bg: linear-gradient(90deg, #db2777, #ec4899, #06b6d4);
    --header-text: #ffffff;
    --primary: #ec4899;
    --primary-hover: #db2777;
    --accent-gold: #fde047;
    --body-bg: #fff1f2;
    --body-pattern: radial-gradient(#fbcfe8 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #ffe4e6;
    --text-color: #4c0519;
    --text-muted: #9f1239;
    --sidebar-active: #fce7f3;
    --sidebar-active-text: #be185d;
}

/* 7. Royal Blue (Ordinary 1) */
body[data-theme="blue"], .theme-blue {
    --header-bg: #1d4ed8;
    --header-text: #ffffff;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-gold: #facc15;
    --body-bg: #eff6ff;
    --body-pattern: radial-gradient(#dbeafe 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #e0e7ff;
    --text-color: #1e3a8a;
    --text-muted: #64748b;
    --sidebar-active: #dbeafe;
    --sidebar-active-text: #1d4ed8;
}

/* 8. Crimson Red (Ordinary 2) */
body[data-theme="red"], .theme-red {
    --header-bg: #b91c1c;
    --header-text: #ffffff;
    --primary: #dc2626;
    --primary-hover: #991b1b;
    --accent-gold: #fde047;
    --body-bg: #fef2f2;
    --body-pattern: radial-gradient(#fecaca 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #fee2e2;
    --text-color: #450a0a;
    --text-muted: #7f1d1d;
    --sidebar-active: #fee2e2;
    --sidebar-active-text: #b91c1c;
}

/* 9. Sunflower Gold (Ordinary 3) */
body[data-theme="yellow"], .theme-yellow {
    --header-bg: #d97706;
    --header-text: #ffffff;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --accent-gold: #fef08a;
    --body-bg: #fffbeb;
    --body-pattern: radial-gradient(#fde68a 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #fef3c7;
    --text-color: #451a03;
    --text-muted: #78350f;
    --sidebar-active: #fef3c7;
    --sidebar-active-text: #b45309;
}

/* 10. Forest Green (Ordinary 4) */
body[data-theme="green"], .theme-green {
    --header-bg: #15803d;
    --header-text: #ffffff;
    --primary: #16a34a;
    --primary-hover: #15803d;
    --accent-gold: #fef08a;
    --body-bg: #f0fdf4;
    --body-pattern: radial-gradient(#bbf7d0 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #dcfce7;
    --text-color: #14532d;
    --text-muted: #166534;
    --sidebar-active: #dcfce7;
    --sidebar-active-text: #15803d;
}

/* 11. Amethyst Purple (Ordinary 5) */
body[data-theme="purple"], .theme-purple {
    --header-bg: #7e22ce;
    --header-text: #ffffff;
    --primary: #9333ea;
    --primary-hover: #7e22ce;
    --accent-gold: #facc15;
    --body-bg: #faf5ff;
    --body-pattern: radial-gradient(#e9d5ff 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #f3e8ff;
    --text-color: #3b0764;
    --text-muted: #6b21a8;
    --sidebar-active: #f3e8ff;
    --sidebar-active-text: #7e22ce;
}

/* 12. Dark Obsidian (Shade 1) */
body[data-theme="dark_obsidian"], .theme-dark_obsidian {
    --header-bg: #18181b;
    --header-text: #f43f5e;
    --primary: #f43f5e;
    --primary-hover: #e11d48;
    --accent-gold: #fbbf24;
    --body-bg: #09090b;
    --body-pattern: radial-gradient(#27272a 1px, transparent 1px);
    --card-bg: #18181b;
    --card-border: #27272a;
    --text-color: #f4f4f5;
    --text-muted: #a1a1aa;
    --sidebar-active: #27272a;
    --sidebar-active-text: #f43f5e;
}

/* 13. Mocha Chocolate (Shade 2) */
body[data-theme="mocha"], .theme-mocha {
    --header-bg: linear-gradient(90deg, #38220f, #543310);
    --header-text: #fdf0d5;
    --primary: #8a5a36;
    --primary-hover: #704423;
    --accent-gold: #e2b17a;
    --body-bg: #fdfaf6;
    --body-pattern: radial-gradient(#ebd9c6 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #f3e8de;
    --text-color: #2b1704;
    --text-muted: #795548;
    --sidebar-active: #ebd9c6;
    --sidebar-active-text: #543310;
}

/* 14. Soft Pastel Blush (Shade 3) */
body[data-theme="pastel_blush"], .theme-pastel_blush {
    --header-bg: linear-gradient(90deg, #fbcfe8, #f472b6);
    --header-text: #831843;
    --primary: #ec4899;
    --primary-hover: #db2777;
    --accent-gold: #fde047;
    --body-bg: #fff5f8;
    --body-pattern: radial-gradient(#fecdd3 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #ffe4e6;
    --text-color: #4c0519;
    --text-muted: #9d174d;
    --sidebar-active: #fce7f3;
    --sidebar-active-text: #9d174d;
}

/* 15. Slate Steel Minimal (Shade 4) */
body[data-theme="slate_steel"], .theme-slate_steel {
    --header-bg: #334155;
    --header-text: #f8fafc;
    --primary: #475569;
    --primary-hover: #334155;
    --accent-gold: #38bdf8;
    --body-bg: #f8fafc;
    --body-pattern: radial-gradient(#cbd5e1 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --sidebar-active: #e2e8f0;
    --sidebar-active-text: #0f172a;
}

/* ==========================================================================
   5 NEW ANIMATED EMOJI THEMES (LIGHT COLORS + MOVING TOP BAR EMOJIS)
   ========================================================================== */

/* 16. Animated Halloween Light Theme */
body[data-theme="anim_halloween"], .theme-anim_halloween {
    --header-bg: linear-gradient(90deg, #fff7ed, #ffedd5, #fed7aa);
    --header-text: #9a3412;
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --accent-gold: #f59e0b;
    --body-bg: #fffbf5;
    --body-pattern: radial-gradient(#fed7aa 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #ffedd5;
    --text-color: #431407;
    --text-muted: #9a3412;
    --sidebar-active: #ffedd5;
    --sidebar-active-text: #ea580c;
}

/* 17. Animated Summer Light Theme */
body[data-theme="anim_summer"], .theme-anim_summer {
    --header-bg: linear-gradient(90deg, #fef9c3, #e0f2fe, #bae6fd);
    --header-text: #0369a1;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --accent-gold: #eab308;
    --body-bg: #f8fcff;
    --body-pattern: radial-gradient(#bae6fd 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #e0f2fe;
    --text-color: #0c4a6e;
    --text-muted: #0284c7;
    --sidebar-active: #e0f2fe;
    --sidebar-active-text: #0369a1;
}

/* 18. Animated Christmas Light Theme */
body[data-theme="anim_christmas"], .theme-anim_christmas {
    --header-bg: linear-gradient(90deg, #f0fdf4, #fee2e2, #fef2f2);
    --header-text: #991b1b;
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --accent-gold: #16a34a;
    --body-bg: #fcfdfc;
    --body-pattern: radial-gradient(#bbf7d0 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #fee2e2;
    --text-color: #450a0a;
    --text-muted: #991b1b;
    --sidebar-active: #fee2e2;
    --sidebar-active-text: #991b1b;
}

/* 19. Animated Valentine's Light Theme */
body[data-theme="anim_valentines"], .theme-anim_valentines {
    --header-bg: linear-gradient(90deg, #fff1f2, #fce7f3, #ffe4e6);
    --header-text: #9d174d;
    --primary: #e11d48;
    --primary-hover: #be123c;
    --accent-gold: #f43f5e;
    --body-bg: #fff8f9;
    --body-pattern: radial-gradient(#fecdd3 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #fce7f3;
    --text-color: #4c0519;
    --text-muted: #9d174d;
    --sidebar-active: #fce7f3;
    --sidebar-active-text: #be123c;
}

/* 20. Animated Games Light Theme */
body[data-theme="anim_games"], .theme-anim_games {
    --header-bg: linear-gradient(90deg, #f5f3ff, #ede9fe, #dbeafe);
    --header-text: #3730a3;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent-gold: #8b5cf6;
    --body-bg: #fafafa;
    --body-pattern: radial-gradient(#ddd6fe 1px, transparent 1px);
    --card-bg: #ffffff;
    --card-border: #ede9fe;
    --text-color: #1e1b4b;
    --text-muted: #4338ca;
    --sidebar-active: #ede9fe;
    --sidebar-active-text: #4f46e5;
}

/* Ensure light top bar elements have strong contrast when active */
body[data-theme^="anim_"] .site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body[data-theme^="anim_"] .mobile-menu-toggle span {
    color: var(--header-text) !important;
}
body[data-theme^="anim_"] .header-icon-btn {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--header-text);
}
body[data-theme^="anim_"] .coin-counter-pill {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #b45309;
}
body[data-theme^="anim_"] .coin-number-text {
    color: #b45309;
}

/* ==========================================================================
   5 NEW COSMIC MIDNIGHT LIGHT STYLES (White Containers, Light Mixed Bars)
   ========================================================================== */

/* 21. Cosmic Aurora Light */
body[data-theme="cosmic_aurora_light"], .theme-cosmic_aurora_light {
    --header-bg: linear-gradient(90deg, #cffafe, #bbf7d0, #fef08a);
    --header-text: #0f172a;
    --bottom-bar-bg: linear-gradient(90deg, #e0f2fe, #f0fdf4, #fef9c3);
    --bottom-bar-border: #bae6fd;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --accent-gold: #f59e0b;
    --body-bg: #ffffff;
    --body-pattern: none;
    --card-bg: #ffffff;
    --card-border: #e0f2fe;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --sidebar-active: #e0f2fe;
    --sidebar-active-text: #0369a1;
}

/* 22. Cosmic Sunset Light */
body[data-theme="cosmic_sunset_light"], .theme-cosmic_sunset_light {
    --header-bg: linear-gradient(90deg, #fed7aa, #fecdd3, #fef08a);
    --header-text: #1e293b;
    --bottom-bar-bg: linear-gradient(90deg, #ffedd5, #fce7f3, #fef9c3);
    --bottom-bar-border: #fed7aa;
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --accent-gold: #f59e0b;
    --body-bg: #ffffff;
    --body-pattern: none;
    --card-bg: #ffffff;
    --card-border: #ffedd5;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --sidebar-active: #ffedd5;
    --sidebar-active-text: #c2410c;
}

/* 23. Cosmic Lavender Starlight */
body[data-theme="cosmic_lavender_light"], .theme-cosmic_lavender_light {
    --header-bg: linear-gradient(90deg, #e9d5ff, #ddd6fe, #bfdbfe);
    --header-text: #0f172a;
    --bottom-bar-bg: linear-gradient(90deg, #f5f3ff, #ede9fe, #eff6ff);
    --bottom-bar-border: #ddd6fe;
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --accent-gold: #f59e0b;
    --body-bg: #ffffff;
    --body-pattern: none;
    --card-bg: #ffffff;
    --card-border: #ede9fe;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --sidebar-active: #f5f3ff;
    --sidebar-active-text: #6d28d9;
}

/* 24. Cosmic Mint Breeze */
body[data-theme="cosmic_mint_light"], .theme-cosmic_mint_light {
    --header-bg: linear-gradient(90deg, #a7f3d0, #99f6e4, #bae6fd);
    --header-text: #064e3b;
    --bottom-bar-bg: linear-gradient(90deg, #ecfdf5, #f0fdfa, #f0f9ff);
    --bottom-bar-border: #a7f3d0;
    --primary: #059669;
    --primary-hover: #047857;
    --accent-gold: #f59e0b;
    --body-bg: #ffffff;
    --body-pattern: none;
    --card-bg: #ffffff;
    --card-border: #d1fae5;
    --text-color: #064e3b;
    --text-muted: #475569;
    --sidebar-active: #ecfdf5;
    --sidebar-active-text: #047857;
}

/* 25. Cosmic Prismatic Silk */
body[data-theme="cosmic_prism_light"], .theme-cosmic_prism_light {
    --header-bg: linear-gradient(90deg, #fbcfe8, #fef08a, #a5f3fc, #c4b5fd);
    --header-text: #1e293b;
    --bottom-bar-bg: linear-gradient(90deg, #fff1f2, #fefce8, #f0fdfa, #faf5ff);
    --bottom-bar-border: #fbcfe8;
    --primary: #ec4899;
    --primary-hover: #db2777;
    --accent-gold: #f59e0b;
    --body-bg: #ffffff;
    --body-pattern: none;
    --card-bg: #ffffff;
    --card-border: #fce7f3;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --sidebar-active: #fce7f3;
    --sidebar-active-text: #be185d;
}

/* Contrast enhancement for light-bar themes */
body[data-theme^="cosmic_"] .site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body[data-theme^="cosmic_"] .header-icon-btn {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--header-text);
}
body[data-theme^="cosmic_"] .coin-counter-pill {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #b45309;
}
body[data-theme^="cosmic_"] .mobile-bottom-bar a {
    color: var(--text-color);
}

