/**
 * COMMON STYLES & COLORS
 * ----------------------
 * Centralized CSS file for colors, common styles, and design system variables
 * Include this file in all header files for consistent styling across the project
 */

:root {
    /* PREMIUM LUXURY COLOR PALETTE */
    --deep-navy: #0A1F44;
    --rich-navy: #1A3A5C;
    --gold: #D4AF37;
    --rose-gold: #B76E79;
    --emerald: #50C878;
    --pearl: #FFF0F5;
    --champagne: #F7E7CE;
    --platinum: #FCE4EC;
    --bg-light: #FFF0F5;
    --charcoal: #36454F;
    --midnight: #191970;
    --text-luxury: #2C3E50;
    --text-soft: #5D6D7E;
    --shadow-luxury: rgba(10, 31, 68, 0.15);
    --shadow-gold: rgba(212, 175, 55, 0.25);

    /* OPTIMAL PURPLE COLORS (Used in project) */
    --purple-primary: #8255f7;
    --purple-secondary: #8e66f7;
    --purple-light: #a78bf9;
    --purple-dark: #6b3fd6;

    /* Common Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Common Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Common Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* LUXURY SWEETALERT2 STYLES */
.luxury-swal-popup {
    border-radius: 20px !important;
    border: 2px solid var(--gold) !important;
    background: #ffffff url('assets/images/image/logo.jpeg') no-repeat center center / contain !important;
    background-blend-mode: overlay !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.luxury-swal-title {
    font-family: 'Cormorant Garamond', serif !important;
    color: var(--deep-navy) !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
}

.luxury-swal-button {
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
    padding: 12px 35px !important;
    border-radius: 50px !important;
}

/* ========== MOBILE NAVIGATION DRAWER FIXES ========== */
.mobile-menu-container {
    position: fixed !important;
    left: -280px !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1001 !important;
    background-color: var(--deep-navy) !important;
    width: 100% !important;
    max-width: 280px !important;
    overflow-y: auto !important;
    box-shadow: 0.1rem 0 0.6rem 0 rgba(51, 51, 51, 0.5) !important;
    will-change: transform !important;
    visibility: hidden !important;
    opacity: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
    transition: all 0.4s ease !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
}

body.mmenu-active .mobile-menu-container {
    visibility: visible !important;
    transform: translateX(280px) !important;
    opacity: 1 !important;
    display: block !important;
}

.mmenu-active .mobile-menu-container {
    visibility: visible !important;
    transform: translateX(280px) !important;
    opacity: 1 !important;
    display: block !important;
}

body.mmenu-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.mobile-menu-overlay {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    background-color: rgba(25, 25, 25, 0.5) !important;
    z-index: 1000 !important;
    transition: all 0.4s !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.mmenu-active .mobile-menu-overlay {
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-wrapper {
    position: relative !important;
    padding: 4.2rem 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
}

.mobile-menu-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3rem !important;
    height: 3rem !important;
    position: absolute !important;
    top: 0.7rem !important;
    right: 1rem !important;
    padding: 0 !important;
    z-index: 9 !important;
    cursor: pointer !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    color: #fff !important;
    transition: color 0.35s !important;
    background: transparent !important;
    border: none !important;
}

.mobile-menu-close .icon-close {
    display: inline-block !important;
    position: relative !important;
    font-size: 2.4rem !important;
    transform: rotate(45deg) !important;
    font-weight: 300 !important;
}

.mobile-menu-close .icon-close:before {
    content: '+' !important;
    display: block !important;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
    color: var(--gold) !important;
}

.mobile-nav {
    padding: 0 !important;
    margin: 0 0 2.5rem !important;
}

.mobile-menu {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mobile-menu>li>a {
    text-transform: uppercase !important;
}

.mobile-menu li {
    display: block !important;
    position: relative !important;
}

.mobile-menu li a {
    position: relative !important;
    display: block !important;
    padding: 1rem 4.5rem 1rem 2rem !important;
    color: #fff !important;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.08) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.mobile-menu li a:hover,
.mobile-menu li a:focus {
    color: var(--gold) !important;
    background-color: rgba(212, 175, 55, 0.1) !important;
    padding-left: 2.5rem !important;
}

.mobile-menu li.open>a,
.mobile-menu li.active>a {
    color: var(--gold) !important;
}

.mobile-menu li ul {
    margin: 0 !important;
    padding: 0.7rem 0 0.9rem !important;
    display: none !important;
    margin-bottom: 0 !important;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.08) !important;
}


.mobile-menu li.open ul {
    display: block !important;
}

.mobile-menu li ul li a {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    padding-left: 3.5rem !important;
    border-bottom: none !important;
    font-size: 0.9rem !important;
}

.mobile-menu-toggler,
.mobile-toggle {
    display: none !important;
    padding: 0.5rem !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--deep-navy) !important;
    font-size: 1.5rem !important;
    z-index: 1002 !important;
    position: relative !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    min-width: 44px !important;
    min-height: 44px !important;
    -webkit-tap-highlight-color: transparent !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.mobile-menu-toggler:hover,
.mobile-toggle:hover {
    color: var(--purple-primary) !important;
    transform: scale(1.1) !important;
}

.mobile-menu-toggler.active,
.mobile-toggle.active {
    color: var(--purple-primary) !important;
}

@media (max-width: 991px) {

    .mobile-menu-toggler,
    .mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1002 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ensure button is visible and clickable */
    header .mobile-toggle,
    header .mobile-menu-toggler {
        display: flex !important;
    }
}

/* Mobile menu button arrow for submenus */
.mmenu-btn {
    position: absolute !important;
    right: 2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
}

.mmenu-btn::before {
    content: '\f105' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
}

.mobile-menu li.open .mmenu-btn {
    transform: translateY(-50%) rotate(90deg) !important;
}

/* Ensure mobile menu is properly positioned and scrollable */
body.mmenu-active {
    overflow: hidden !important;
}

.mobile-menu-container {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
}

/* ========== BANNER BUTTON COLOR FIX ========== */
.btn-gold,
.hero-content .btn-gold,
.banner .btn-gold {
    background: linear-gradient(45deg, var(--purple-primary), var(--purple-secondary)) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 5px 15px rgba(130, 85, 247, 0.3) !important;
}

.btn-gold:hover,
.hero-content .btn-gold:hover,
.banner .btn-gold:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(130, 85, 247, 0.5) !important;
    background: linear-gradient(45deg, var(--purple-secondary), var(--purple-primary)) !important;
    color: #ffffff !important;
}

.btn-gold:focus,
.hero-content .btn-gold:focus,
.banner .btn-gold:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(130, 85, 247, 0.3) !important;
}

/* ========== COMMON UTILITY CLASSES ========== */
.text-purple {
    color: var(--purple-primary) !important;
}

.bg-purple {
    background-color: var(--purple-primary) !important;
}

.border-purple {
    border-color: var(--purple-primary) !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .mobile-text-sm {
        font-size: 0.9rem !important;
    }

    .mobile-text-base {
        font-size: 1rem !important;
    }

    .mobile-text-lg {
        font-size: 1.25rem !important;
    }
}

@media (min-width: 769px) {
    .desktop-text-sm {
        font-size: 0.9rem !important;
    }

    .desktop-text-base {
        font-size: 1rem !important;
    }

    .desktop-text-lg {
        font-size: 1.35rem !important;
    }
}

/* ========== GLOBAL TYPOGRAPHY STANDARDIZATION (Senior-Friendly) ========== */
/* 
 * 1. Same Font Family: Montserrat (Sans-serif, clean, highly readable)
 * 2. Same Size Consistency: Base increased by 20%
 * 3. Bold & Darker: Default weight 600, Color near black (#111)
 * 4. Visible & High Contrast
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

html {
    font-size: 75% !important;
    /* Increased from 62.5% to make 1rem = 12px (approx 20% increase) */
    -webkit-text-size-adjust: 100% !important;
}

/* Force Family, Color, and Weight on standard reading elements */
/* Removed 'a', 'button', and 'div' from global color forcing to prevent invisibility on dark elements */
body,
p,
li,
span,
input,
textarea,
label,
select,
h1:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h2:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h3:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h4:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h5:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h6:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
.h1:not(.text-white):not(.text-gold),
.h2:not(.text-white):not(.text-gold),
.h3:not(.text-white):not(.text-gold),
.h4:not(.text-white):not(.text-gold),
.h5:not(.text-white):not(.text-gold),
.h6:not(.text-white):not(.text-gold),
.section-title:not(.text-white):not(.text-gold),
.title:not(.text-white):not(.text-gold),
.serif-font:not(.text-white):not(.text-gold) {
    font-family: 'Montserrat', sans-serif !important;
    color: #111111 !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
}

/* Ensure spans in UI elements don't get forced to black */
.btn span,
button span,
a span,
.action-btn span,
.cart-badge,
.text-white,
.text-white-force,
.text-gold,
.text-gold-force {
    color: inherit !important;
}

/* EXCEPTIONS: Allow white text on dark backgrounds or specific luxury components */
.bg-purple *,
.bg-navy *,
.bg-dark *,
.dark-section *,
.chairman-section *,
.split-content *,
.impact-metrics-section *,
.hero-content *,
.mobile-menu *,
.profile-header-card *,
.referral-code-card *,
.ref-stat-box *,
.referral-premium-card *,
.btn-gold-premium,
.btn-gold-premium *,
.btn-gold,
.btn-gold *,
.btn-primary,
.btn-primary *,
.btn-secondary,
.btn-secondary *,
.text-white,
.text-white *,
.text-white-force,
.contact-info-section * {
    color: #FFFFFF !important;
}

/* GOLD EXCEPTIONS: Components that should remain gold even on dark backgrounds */
.text-gold,
.text-gold-force,
.btn-gold-premium,
.btn-gold-premium i,
.btn-gold-premium span,
.referral-code-display,
.order-id-val {
    color: var(--gold) !important;
}

.bg-purple h1,
.bg-purple h2,
.bg-purple h3,
.impact-metrics-section h2,
.impact-metrics-section .metrics-title,
.impact-metrics-section .counter-stat-number,
.text-gold-force {
    color: var(--gold) !important;
}

/* Headings - Bold and Dark by default, but allow white/gold overrides */
h1:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h2:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h3:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h4:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h5:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
h6:not(.text-white):not(.text-white-force):not(.text-gold):not(.text-gold-force),
.h1:not(.text-white):not(.text-gold),
.h2:not(.text-white):not(.text-gold),
.h3:not(.text-white):not(.text-gold),
.h4:not(.text-white):not(.text-gold),
.h5:not(.text-white):not(.text-gold),
.h6:not(.text-white):not(.text-gold),
.section-title:not(.text-white):not(.text-gold),
.title:not(.text-white):not(.text-gold),
.serif-font:not(.text-white):not(.text-gold) {
    color: #000000 !important;
    /* Pure black for headings */
    font-weight: 800 !important;
    /* Extra bold for visibility */
    text-transform: none !important;
    /* Keep natural casing for better legibility */
    letter-spacing: -0.01em !important;
}

/* Specific Size Increases for common elements */
p,
.footer-description,
.newsletter-text,
.text-muted {
    font-size: 1.4rem !important;
    /* Scales to ~17px base */
    margin-bottom: 2rem !important;
    color: #222222 !important;
    /* Make even muted text dark */
}

a {
    color: var(--deep-navy) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    /* Better for seniors to identify links */
}

a:hover {
    color: var(--gold) !important;
    text-decoration: none !important;
}

/* Ensure luxury text variables match the new dark theme */
:root {
    --text-luxury: #111111 !important;
    --text-soft: #222222 !important;
    --deep-navy: #000000 !important;
    /* Darken navy to black for higher contrast */
}

/* Navigation & Buttons - High Visibility */
.nav-links a,
.nav-menu li a,
.btn,
.main-navigation a {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Footer Font Synchronization */
.footer-section-title,
.newsletter-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
    color: #000 !important;
}

/* Clean up old contradicting rules */
body {
    -webkit-font-smoothing: antialiased !important;
    background: #FFFFFF !important;
    margin: 0;
}

/* Product price high visibility */
.product-price,
.price {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #d32f2f !important;
    /* Dark red for prices for quick visibility */
}