/*
 * Bear Armz — Custom Styles
 * Premium dark luxury theme: plum + amber palette
 * These styles supplement the inline styles in index.html
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --bg-deep: #0d0a0e;
    --bg-card: #161119;
    --bg-elevated: #1e1722;
    --plum-dark: #2d1219;
    --plum-mid: #5d283b;
    --plum-light: #8c3d58;
    --amber: #d4a017;
    --amber-light: #f0c040;
    --amber-dim: #a07810;
    --text-primary: #f5efe8;
    --text-secondary: #c4b5a4;
    --text-muted: #8a7d72;
    --gold-gradient: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #d4a017 100%);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: var(--text-primary);
}

/* ===== SMOOTH SCROLL OFFSET ===== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-padding-top: 80px;
    }
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ===== LOADING STATE ===== */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PRODUCT CARD INTERACTION ===== */
.product-card {
    cursor: pointer;
}

.product-card:focus-within {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

/* ===== SUBTLE TEXTURE OVERLAY ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amber-dim);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .marquee-track {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== PRINT ===== */
@media print {
    .navbar,
    .marquee-section,
    .hero-scroll,
    .mobile-menu {
        display: none !important;
    }

    body {
        background: white;
        color: #1a1a1a;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .hero-overlay {
        background: rgba(255, 255, 255, 0.9);
    }

    section {
        padding: 2rem 1rem;
    }
}

/* ===== TABLET ADJUSTMENTS ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        gap: 1.25rem;
    }

    .product-card img {
        height: 360px;
    }
}

/* ===== TINY SCREENS ===== */
@media (max-width: 360px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
