/* ==========================================================================
   AUREA LUXURY DESIGN SYSTEM - By Althea Ravenscroft
   Minimalist Haute Couture, Warm Obsidian & Champagne Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
    --gold: #c8aa76;
    --gold-light: #f4e6be;
    --gold-dark: #8e6f3b;
    --gold-gradient: linear-gradient(135deg, #c8aa76 0%, #f4e6be 50%, #b89355 100%);
    --gold-border: rgba(200, 170, 118, 0.22);
    --gold-border-hover: rgba(200, 170, 118, 0.55);
    --gold-glow: 0 0 25px rgba(200, 170, 118, 0.18);
    --gold-glow-intense: 0 0 40px rgba(200, 170, 118, 0.35);
    
    --bg-base: #060608;
    --bg-surface: #0c0c10;
    --bg-surface-elevated: #121217;
    --bg-card: rgba(18, 18, 23, 0.75);
    
    --text-primary: #f8f6f0;
    --text-muted: rgba(244, 230, 190, 0.65);
    --text-subtle: rgba(244, 230, 190, 0.4);
}

/* Base resets & typography */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Montserrat', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-base);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    display: none;
}
::-webkit-scrollbar-track {
    background: #08080a;
}
::-webkit-scrollbar-thumb {
    background: rgba(200, 170, 118, 0.35);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Text selections */
::selection {
    background: var(--gold);
    color: #000000;
}

/* Luxury Typography & Gradients */
.font-cinzel { font-family: 'Cinzel', serif; }
.font-playfair { font-family: 'Playfair Display', Georgia, serif; }
.font-sans-clean { font-family: 'Plus Jakarta Sans', sans-serif; }

.gold-gradient-text {
    background: linear-gradient(120deg, #c8aa76 0%, #f7edd4 35%, #c8aa76 70%, #edd49a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 250% auto;
    animation: goldShine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

/* Double-Bezel Architecture (Machined Luxury Hardware) */
.luxury-bezel {
    position: relative;
    border: 1px solid var(--gold-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.4) 100%), var(--bg-card);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                inset 0 0 15px rgba(200, 170, 118, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-bezel:hover {
    border-color: var(--gold-border-hover);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9),
                0 0 30px rgba(200, 170, 118, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Nav Link Micro-Interaction */
.nav-pill-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-pill-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-pill-link:hover::after,
.nav-pill-link.active::after {
    width: 80%;
}

/* Glowing Gold Accents */
.gold-glow {
    box-shadow: var(--gold-glow);
}
.gold-glow:hover {
    box-shadow: var(--gold-glow-intense);
}

/* Floating Stardust Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

main, header, footer, #app-content {
    position: relative;
    z-index: 10;
}

/* Page transitions */
.page-view {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}
.page-view.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Fade-in on scroll */
.fade-up-element {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cart & Modal Drawers */
#cart-sidebar {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#cart-sidebar.open {
    transform: translateX(0);
}

/* Shimmer Button */
.btn-gold-luxury {
    background: linear-gradient(135deg, #c8aa76 0%, #e2c99a 50%, #b89355 100%);
    color: #070709;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-gold-luxury::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    transition: all 0.6s ease;
}
.btn-gold-luxury:hover::before {
    left: 120%;
}
.btn-gold-luxury:hover {
    box-shadow: 0 0 25px rgba(200, 170, 118, 0.4);
    transform: translateY(-1px);
}
.btn-gold-luxury:active {
    transform: translateY(1px);
}

/* Button Outline Luxury */
.btn-outline-luxury {
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    background: rgba(200, 170, 118, 0.03);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.btn-outline-luxury:hover {
    border-color: var(--gold);
    background: rgba(200, 170, 118, 0.12);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(200, 170, 118, 0.15);
    transform: translateY(-1px);
}

/* Custom modal backdrop animation */
.modal-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-dialog {
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Product Card Luxury Image Container */
.product-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(200, 170, 118, 0.05) 0%, rgba(10, 10, 13, 0.8) 100%);
}
.product-card-img-wrap img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.luxury-bezel:hover .product-card-img-wrap img {
    transform: scale(1.06);
}

/* Category Filter Chips */
.category-filter-wrapper {
    position: relative;
    overflow: hidden;
}

.category-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0.65rem;
    padding: 0.6rem 3rem;
    -webkit-overflow-scrolling: touch;
}

.category-fade-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3.5rem;
    background: linear-gradient(to right, #060608 25%, rgba(6, 6, 8, 0.85) 65%, transparent 100%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.category-fade-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3.5rem;
    background: linear-gradient(to left, #060608 25%, rgba(6, 6, 8, 0.85) 65%, transparent 100%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.cat-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(18, 18, 23, 0.9);
    border: 1px solid rgba(200, 170, 118, 0.35);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
}
.category-filter-wrapper:hover .cat-nav-btn:not(:disabled) {
    opacity: 1;
    pointer-events: auto;
}
.cat-nav-btn:hover:not(:disabled) {
    background: var(--gold);
    color: #070709;
    box-shadow: 0 0 15px rgba(200, 170, 118, 0.4);
    transform: translateY(-50%) scale(1.08);
}
.cat-nav-btn.cat-nav-prev {
    left: 0.5rem;
}
.cat-nav-btn.cat-nav-next {
    right: 0.5rem;
}
.cat-nav-btn:disabled {
    opacity: 0 !important;
    pointer-events: none !important;
}
@media (max-width: 768px) {
    .cat-nav-btn {
        display: none !important;
    }
}

@media (min-width: 1280px) {
    .category-track {
        justify-content: flex-start;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.cat-chip {
    transition: all 0.25s ease;
    border: 1px solid rgba(200, 170, 118, 0.15);
    color: rgba(244, 230, 190, 0.7);
    background: rgba(18, 18, 23, 0.4);
    cursor: pointer;
    flex-shrink: 0;
}
.cat-chip:hover {
    border-color: rgba(200, 170, 118, 0.4);
    color: #ffffff;
}
.cat-chip.active {
    border-color: var(--gold);
    color: #070709;
    background: var(--gold);
    box-shadow: 0 0 15px rgba(200, 170, 118, 0.3);
    font-weight: 600;
}

.tag-chip {
    transition: all 0.2s ease;
    border: 1px solid rgba(200, 170, 118, 0.2);
    color: rgba(244, 230, 190, 0.65);
    background: rgba(14, 14, 19, 0.6);
    cursor: pointer;
    flex-shrink: 0;
}
.tag-chip:hover {
    border-color: rgba(200, 170, 118, 0.5);
    color: #f4e6be;
    background: rgba(200, 170, 118, 0.1);
}
.tag-chip.active {
    border-color: var(--gold);
    color: #070709;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(200, 170, 118, 0.35);
    font-weight: 600;
}

/* ===================================================
   Collaboration Banner Rectangles & Directional Gradients
   =================================================== */
.collab-banner-card {
    position: relative;
    border-radius: 1.75rem;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease, border-color 0.4s ease;
    border: 1px solid rgba(200, 170, 118, 0.22);
    background: #07070b;
}

.collab-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(200, 170, 118, 0.15);
    border-color: rgba(200, 170, 118, 0.45);
}

/* Gradient from left (dark) towards right (transparent) */
.collab-gradient-left {
    background: linear-gradient(to top, rgba(7, 7, 11, 0.98) 0%, rgba(7, 7, 11, 0.88) 55%, rgba(7, 7, 11, 0.25) 100%);
}
@media (min-width: 640px) {
    .collab-gradient-left {
        background: linear-gradient(to right, 
            #07070b 0%, 
            rgba(7, 7, 11, 0.97) 35%, 
            rgba(7, 7, 11, 0.85) 52%, 
            rgba(7, 7, 11, 0.4) 72%, 
            rgba(7, 7, 11, 0.05) 90%,
            transparent 100%
        );
    }
}

/* Gradient from right (dark) towards left (transparent) */
.collab-gradient-right {
    background: linear-gradient(to top, rgba(7, 7, 11, 0.98) 0%, rgba(7, 7, 11, 0.88) 55%, rgba(7, 7, 11, 0.25) 100%);
}
@media (min-width: 640px) {
    .collab-gradient-right {
        background: linear-gradient(to left, 
            #07070b 0%, 
            rgba(7, 7, 11, 0.97) 35%, 
            rgba(7, 7, 11, 0.85) 52%, 
            rgba(7, 7, 11, 0.4) 72%, 
            rgba(7, 7, 11, 0.05) 90%,
            transparent 100%
        );
    }
}

