/* GEMSLY GLOBAL STYLES */
:root {
    --neon-cyan: #00f2ff;
    --neon-purple: #bb00ff;
    --dark-bg: #050505;
    --darker-bg: #000000;
}

body {
    background-color: var(--darker-bg);
    color: white;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #222;
}

/* Common Gradient Text */
.gemsly-gradient-text {
    background: linear-gradient(to right, #ffffff, var(--neon-cyan), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -100% center; }
    100% { background-position: 100% center; }
}

/* Animations */
@keyframes pulse-cyan {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-cyan {
    animation: pulse-cyan 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================
   LIGHT MODE THEME OVERRIDES
   ========================================== */
html.light {
    --dark-bg: #f8fafc;
    --darker-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-white: #0f172a;
}

html.light body {
    background-color: var(--dark-bg) !important;
    color: var(--text-white) !important;
}

/* Override hardcoded dark/black backgrounds */
html.light .bg-[#050505],
html.light .bg-[#050505]\/80,
html.light .bg-[#050505]\/95,
html.light .bg-[#0a0a0a],
html.light .bg-black,
html.light .bg-[#121212],
html.light .bg-[#0f1922],
html.light .bg-[#0f1922]\/70,
html.light .bg-[#0f1922]\/50,
html.light .bg-[#0a2336],
html.light .bg-[#0d0d0d],
html.light .bg-darker-bg,
html.light .bg-[#121212]\/40,
html.light .bg-dark-bg {
    background-color: #ffffff !important;
}

html.light header {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
}

html.light .border-white\/5,
html.light .border-white\/10,
html.light .border-white\/20,
html.light .border-white\/30 {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html.light .text-white,
html.light .text-gray-300,
html.light .text-gray-400,
html.light span.text-white,
html.light a.text-white,
html.light h1, html.light h2, html.light h3, html.light h4, html.light h5, html.light h6 {
    color: #0f172a !important;
}

html.light .text-gray-500,
html.light .text-gray-600 {
    color: #64748b !important;
}

/* Glass card styling */
html.light .glass-card,
html.light .glass-panel,
html.light .bg-[#121212],
html.light .bg-white\/5 {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

html.light .glass-card:hover {
    background: #f8fafc !important;
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.25) !important;
}

/* Inputs and Forms */
html.light .search-input,
html.light input[type="text"],
html.light input[type="number"],
html.light input[type="email"],
html.light input[type="password"],
html.light textarea,
html.light select {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

html.light .search-input::placeholder,
html.light input::placeholder,
html.light textarea::placeholder {
    color: #94a3b8 !important;
}

/* Text and Titles */
html.light header a,
html.light header button,
html.light header span {
    color: #334155 !important;
}

html.light header a:hover,
html.light header button:hover {
    color: var(--neon-cyan) !important;
}

html.light #mobile-menu {
    background-color: #ffffff !important;
}

html.light .gemsly-gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #00f2ff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html.light .cyber-grid {
    opacity: 0.12;
    background-image:
        linear-gradient(to right, rgba(0, 242, 255, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(187, 0, 255, 0.2) 1px, transparent 1px);
}

html.light #cart-toggle div,
html.light #theme-toggle div {
    background-color: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Swiper details pane adjustment */
html.light .swiper-slide .bg-gradient-to-br {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

html.light .swiper-slide h3,
html.light .swiper-slide div,
html.light .swiper-slide span {
    color: #0f172a !important;
}

html.light .featured-prev,
html.light .featured-next {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html.light .featured-prev::after,
html.light .featured-next::after {
    color: #0f172a !important;
}

