/* ========== THEME SYSTEM — CSS CUSTOM PROPERTIES ========== */

/* ---- LIGHT MODE (default) ---- */
:root {
    --bg-primary: #f5f0ea;
    --bg-secondary: #ebe4db;
    --bg-card: #e8e0d5;
    --bg-dark-section: #3d2b1f;
    --bg-darker-section: #2a1e14;
    --bg-hero: #1a1510;
    --bg-intro: #0e0c0a;

    --text-primary: #2c1a0e;
    --text-secondary: #6b5648;
    --text-muted: #9a8878;
    --text-on-dark: #f0ebe5;
    --text-on-dark-muted: rgba(240, 235, 229, 0.6);

    --accent: #c9956a;
    --accent-hover: #b8845c;
    --accent-light: rgba(201, 149, 106, 0.15);
    --accent-border: rgba(201, 149, 106, 0.3);

    --border-light: #d4c4b0;
    --border-lighter: rgba(0, 0, 0, 0.08);
    --border-on-dark: rgba(255, 255, 255, 0.08);

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);

    --showcase-card-bg: #eee9e1;
    --showcase-bg-word: rgba(0, 0, 0, 0.06);
    --showcase-corner: #999;
    --showcase-check-bg: #3d2b1f;
    --showcase-check-color: #fff;

    --product-card-bg: #e8e0d5;
    --product-card-number: #2c1a0e;
    --product-card-badge-bg: #3d2b1f;
    --product-card-badge-color: #fff;
    --product-card-arrow-bg: #fff;
    --product-card-arrow-hover-bg: #3d2b1f;
    --product-card-arrow-hover-color: #fff;

    --marquee-bg: #3d2b1f;
    --marquee-color: #e0d9d0;

    --nav-btn-border: #b8a99a;
    --nav-btn-hover-bg: #3d2b1f;
    --nav-btn-hover-color: #fff;

    --tag-pill-border: #b8a99a;
    --tag-pill-color: #6b5648;

    --services-bg: #3d2b1f;
    --services-odd: #a8b49e;
    --services-even: #96a78c;
    --services-title-color: #2c1a0e;
    --services-desc-color: rgba(44, 26, 14, 0.65);

    --exclusive-bg: #3d2b1f;
    --exclusive-btn-hover-bg: #f0ebe5;
    --exclusive-btn-hover-color: #3d2b1f;

    --video-strip-bg: #f5f0ea;

    --footer-bg: #1a1510;

    --toggle-bg: rgba(0, 0, 0, 0.08);
    --toggle-icon-color: #6b5648;
}

/* ---- DARK MODE ---- */
[data-theme="dark"] {
    --bg-primary: #141210;
    --bg-secondary: #1e1a16;
    --bg-card: #262019;
    --bg-dark-section: #1a1510;
    --bg-darker-section: #0e0c0a;
    --bg-hero: #0e0c0a;
    --bg-intro: #0a0908;

    --text-primary: #f0ebe5;
    --text-secondary: #b8a99a;
    --text-muted: #7a6e62;
    --text-on-dark: #f0ebe5;
    --text-on-dark-muted: rgba(240, 235, 229, 0.6);

    --accent: #c9956a;
    --accent-hover: #d4a47a;
    --accent-light: rgba(201, 149, 106, 0.12);
    --accent-border: rgba(201, 149, 106, 0.25);

    --border-light: #3d3228;
    --border-lighter: rgba(255, 255, 255, 0.06);
    --border-on-dark: rgba(255, 255, 255, 0.08);

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);

    --showcase-card-bg: #1e1a16;
    --showcase-bg-word: rgba(255, 255, 255, 0.04);
    --showcase-corner: #7a6e62;
    --showcase-check-bg: #c9956a;
    --showcase-check-color: #1a1510;

    --product-card-bg: #1e1a16;
    --product-card-number: #f0ebe5;
    --product-card-badge-bg: #c9956a;
    --product-card-badge-color: #1a1510;
    --product-card-arrow-bg: rgba(255, 255, 255, 0.08);
    --product-card-arrow-hover-bg: #c9956a;
    --product-card-arrow-hover-color: #1a1510;

    --marquee-bg: #1a1510;
    --marquee-color: #b8a99a;

    --nav-btn-border: #3d3228;
    --nav-btn-hover-bg: #c9956a;
    --nav-btn-hover-color: #1a1510;

    --tag-pill-border: #3d3228;
    --tag-pill-color: #b8a99a;

    --services-bg: #0e0c0a;
    --services-odd: #2d3a28;
    --services-even: #344030;
    --services-title-color: #f0ebe5;
    --services-desc-color: rgba(240, 235, 229, 0.6);

    --exclusive-bg: #1a1510;
    --exclusive-btn-hover-bg: #c9956a;
    --exclusive-btn-hover-color: #1a1510;

    --video-strip-bg: #141210;

    --footer-bg: #0a0908;

    --toggle-bg: rgba(255, 255, 255, 0.08);
    --toggle-icon-color: #c9956a;
}

/* ========== GLOBAL OVERRIDES USING VARIABLES ========== */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ---- Collection Section ---- */
.collection-section {
    background: var(--bg-primary);
}

.fp {
    box-shadow: var(--card-shadow);
}

.fp:hover {
    box-shadow: var(--card-shadow-hover);
}

/* ---- Marquee ---- */
.marquee {
    background: var(--marquee-bg);
    color: var(--marquee-color);
}

/* ---- Exclusive Section ---- */
.exclusive-section {
    background: var(--exclusive-bg);
}

/* ---- Video Cards ---- */
.video-card {
    background: var(--bg-hero);
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: rgba(201, 149, 106, 0.5);
    background: rgba(201, 149, 106, 0.15);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    position: absolute;
}

.theme-toggle .icon-sun {
    color: #f5c842;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    color: #fff;
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* ---- Smooth transitions for theme switch ---- */
.collection-section,
.fp,
.marquee,
.exclusive-section {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ---- Dark mode specific overrides ---- */
[data-theme="dark"] .hero {
    background: #0e0c0a;
}

[data-theme="dark"] .hero-bg {
    background: #0e0c0a;
}

[data-theme="dark"] .collection-bg-text span {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .fp img {
    filter: brightness(0.9);
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg {
        width: 15px;
        height: 15px;
    }
}
