/* ============================================================
   main.css — Streetwear E-commerce Global Design System
   WAKK SPORTS GEAR — v2.0 Enhanced
   ============================================================ */

/* ---- 1. CSS Design Tokens (Custom Properties) ------------ */
:root {
    /* Color Palette */
    --color-bg: #080808;
    --color-bg-offset: #101010;
    --color-bg-card: #161616;
    --color-text: #F2F2ED;
    --color-text-muted: #7A7A7A;
    --color-primary: #FF4D00;
    --color-primary-hover: #E04400;
    --color-secondary: #C9A84C;      /* Muted Gold */
    --color-border: #202020;
    --color-border-focus: #3A3A3A;

    /* Semantic Colors */
    --color-success: #00E676;
    --color-error: #FF1744;
    --color-warning: #FFD600;
    --color-info: #00B0FF;

    /* Fonts */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.75);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 20px rgba(255, 77, 0, 0.35);
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --header-height: 88px;
    --border-radius: 0px; /* Streetwear is sharp and industrial */
}

/* Light Theme Overrides */
[data-theme="light"] {
    --color-bg: #F4F4EF;
    --color-bg-offset: #EAEAE5;
    --color-bg-card: #FFFFFF;
    --color-text: #0A0A0A;
    --color-text-muted: #666666;
    --color-border: #DEDEDE;
    --color-border-focus: #999999;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(255, 77, 0, 0.15);
}

/* ---- 2. Reset & Base Styling ----------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Gritty Grain Overlay Texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 9998;
}

[data-theme="light"] .grain-overlay {
    background-image: radial-gradient(rgba(0, 0, 0, 0.012) 1px, transparent 0);
}

/* ---- 3. Global Typography & Classes ---------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 800;
    line-height: 1.15;
}

.font-bebas {
    font-family: var(--font-display) !important;
    font-weight: normal !important;
    letter-spacing: 1px;
}

.bebas-heading {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

button {
    cursor: pointer;
}

/* ---- 4. Layout Container & Utilities --------------------- */
.site-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .site-container {
        padding: 0 20px;
    }
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-glow {
    text-shadow: 0 0 14px rgba(255, 77, 0, 0.5);
}

/* Accent underline for section headings */
.underline-accent {
    position: relative;
    display: inline-block;
}

.underline-accent::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.separator-line {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-border), transparent);
    margin: 24px 0;
}

.separator-line-full {
    border: 0;
    height: 1px;
    background-color: var(--color-border);
    margin: 24px 0;
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.badge-accent {
    color: var(--color-secondary);
    border-color: rgba(201, 168, 76, 0.4);
    background-color: rgba(201, 168, 76, 0.08);
}

.badge-primary {
    color: var(--color-primary);
    border-color: rgba(255, 77, 0, 0.4);
    background-color: rgba(255, 77, 0, 0.08);
}

.badge-ghost {
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

/* Simple responsive wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fade in page entry transitions */
.fade-in {
    animation: fadeIn var(--transition-smooth) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger fade for lists */
.fade-in-stagger > * {
    opacity: 0;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.fade-in-stagger > *:nth-child(2) { animation-delay: 0.10s; }
.fade-in-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.fade-in-stagger > *:nth-child(4) { animation-delay: 0.20s; }
.fade-in-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.fade-in-stagger > *:nth-child(6) { animation-delay: 0.30s; }

.hidden {
    display: none !important;
}

/* Scrollbar styling (Webkit) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-border-focus);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Selection color */
::selection {
    background-color: rgba(255, 77, 0, 0.3);
    color: #FFFFFF;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
