/* ===================================================
   S4VE — Color Palette Picker (removable)
   To disable: delete this file's <link> tag from HTML
   =================================================== */

/* ── Palette Overrides ── */

html[data-palette] .footer {
    background: var(--navy);
}

/* Palette 2: Army Tactical */
html[data-palette="army"] {
    --navy: #3C3B33;
    --navy-light: #4D4944;
    --navy-mid: #444338;
    --gold: #C4B28A;
    --gold-light: #E1D5C8;
    --gold-dark: #A89870;
    --cream: #E1D5C8;
    --cream-dark: #D0C4B5;
    --olive: #606843;
    --olive-light: #777663;

    --gradient-hero: linear-gradient(135deg, rgba(60, 59, 51, 0.92) 0%, rgba(77, 73, 68, 0.85) 40%, rgba(96, 104, 67, 0.7) 100%);
    --gradient-gold: linear-gradient(135deg, #C4B28A 0%, #E1D5C8 100%);
    --gradient-dark: linear-gradient(180deg, #3C3B33 0%, #4D4944 100%);
    --gradient-section: linear-gradient(180deg, #3C3B33 0%, #444338 50%, #3C3B33 100%);
    --gradient-card: linear-gradient(145deg, rgba(225, 213, 200, 0.08) 0%, rgba(225, 213, 200, 0.02) 100%);

    --shadow-gold: 0 4px 24px rgba(196, 178, 138, 0.3);
}

html[data-palette="army"] .navbar.scrolled {
    background: rgba(60, 59, 51, 0.95);
}

/* Palette 3: Midnight Sage */
html[data-palette="sage"] {
    --navy: #1A2B2A;
    --navy-light: #253D3B;
    --navy-mid: #1F3332;
    --gold: #C4956A;
    --gold-light: #D9B48F;
    --gold-dark: #A87A52;
    --cream: #F0EDE6;
    --cream-dark: #E2DDD4;
    --olive: #5B7B6F;
    --olive-light: #6E9484;

    --gradient-hero: linear-gradient(135deg, rgba(26, 43, 42, 0.92) 0%, rgba(37, 61, 59, 0.85) 40%, rgba(91, 123, 111, 0.7) 100%);
    --gradient-gold: linear-gradient(135deg, #C4956A 0%, #D9B48F 100%);
    --gradient-dark: linear-gradient(180deg, #1A2B2A 0%, #253D3B 100%);
    --gradient-section: linear-gradient(180deg, #1A2B2A 0%, #1F3332 50%, #1A2B2A 100%);
    --gradient-card: linear-gradient(145deg, rgba(196, 149, 106, 0.08) 0%, rgba(196, 149, 106, 0.02) 100%);

    --shadow-gold: 0 4px 24px rgba(196, 149, 106, 0.3);
}

html[data-palette="sage"] .navbar.scrolled {
    background: rgba(26, 43, 42, 0.95);
}

/* Palette 4: Charcoal Ember */
html[data-palette="ember"] {
    --navy: #2D2D34;
    --navy-light: #3D3D46;
    --navy-mid: #35353C;
    --gold: #C95D3A;
    --gold-light: #E07A56;
    --gold-dark: #A84A2D;
    --cream: #F4F1EC;
    --cream-dark: #E6E2DB;
    --olive: #6B8F71;
    --olive-light: #7FA885;

    --gradient-hero: linear-gradient(135deg, rgba(45, 45, 52, 0.92) 0%, rgba(61, 61, 70, 0.85) 40%, rgba(107, 143, 113, 0.7) 100%);
    --gradient-gold: linear-gradient(135deg, #C95D3A 0%, #E07A56 100%);
    --gradient-dark: linear-gradient(180deg, #2D2D34 0%, #3D3D46 100%);
    --gradient-section: linear-gradient(180deg, #2D2D34 0%, #35353C 50%, #2D2D34 100%);
    --gradient-card: linear-gradient(145deg, rgba(201, 93, 58, 0.08) 0%, rgba(201, 93, 58, 0.02) 100%);

    --shadow-gold: 0 4px 24px rgba(201, 93, 58, 0.3);
}

html[data-palette="ember"] .navbar.scrolled {
    background: rgba(45, 45, 52, 0.95);
}

/* ── Picker Widget ── */
.s4ve-palette-picker {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.s4ve-palette-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(11, 29, 58, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 300ms ease;
    color: #fff;
    font-size: 18px;
}

.s4ve-palette-toggle:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.s4ve-palette-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 240px;
    background: rgba(20, 20, 28, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    pointer-events: none;
    transition: all 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.s4ve-palette-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.s4ve-palette-panel__title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.s4ve-palette-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 200ms ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.s4ve-palette-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.s4ve-palette-option.active {
    background: rgba(255, 255, 255, 0.12);
}

.s4ve-palette-swatches {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.s4ve-palette-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.s4ve-palette-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.s4ve-palette-check {
    width: 16px;
    height: 16px;
    font-size: 12px;
    color: #4ADE80;
    opacity: 0;
    transition: opacity 200ms ease;
}

.s4ve-palette-option.active .s4ve-palette-check {
    opacity: 1;
}