/* ==========================================================================
   STYLE.CSS - PANTHERA STORE NATIVE APP GLOBAL VARIABLES & M3 THEMING
   ========================================================================== */

:root {
    /* 🎨 LIGHT THEME (Material 3 Defaults) */
    --bg-main: #f8fafd; /* M3 Light Background */
    --bg-surface: #ffffff; /* M3 Surface */
    --bg-surface-variant: #e1e2e8; /* M3 Surface Variant */
    
    --text-primary: #1a1c1e; /* M3 On-Background */
    --text-secondary: #43474e; /* M3 On-Surface-Variant */
    
    /* Brand Accent Colors (Tech Green) */
    --accent-green: #118d57; /* M3 Primary Green */
    --accent-green-hover: #0d6e44;
    --accent-green-alpha: rgba(17, 141, 87, 0.12); /* M3 Primary Container */
    
    --border-color: #c4c6d0; /* M3 Outline Variant */
    
    /* App UI Specifics */
    --app-bar-bg: rgba(248, 250, 253, 0.85); /* Glassmorphism support */
    --bottom-nav-bg: #fdfbff; /* M3 Surface Container */
    
    /* ☁️ M3 Elevations (Soft Shadows) */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.06);
    
    /* 📏 M3 SIZING & SPACING (Extra Rounded) */
    --app-bar-height: 64px;
    --bottom-nav-height: 80px;
    
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 28px; /* Key Material 3 Feature */
    --radius-pill: 50px;
    
    /* ✍️ TYPOGRAPHY */
    --font-main: 'Inter', sans-serif;
    
    /* ⚡ ANIMATIONS */
    --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1); /* M3 Standard Easing */
    --transition-swipe: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 🎨 DARK THEME VARIABLES (Material 3 Dark) */
[data-theme="dark"] {
    --bg-main: #1a1c1e;
    --bg-surface: #111315; /* M3 Dark Surface */
    --bg-surface-variant: #43474e;
    
    --text-primary: #e2e2e5;
    --text-secondary: #c4c6d0;
    
    --accent-green: #6dd58c; /* M3 Dark Primary */
    --accent-green-hover: #58b975;
    --accent-green-alpha: rgba(109, 213, 140, 0.15); /* M3 Dark Primary Container */
    
    --border-color: #43474e;
    
    --app-bar-bg: rgba(26, 28, 30, 0.85);
    --bottom-nav-bg: #1e2022; /* M3 Dark Surface Container */
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
}

/* 🔄 SYSTEM THEME AUTO-DETECTION */
@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        --bg-main: #1a1c1e;
        --bg-surface: #111315;
        --bg-surface-variant: #43474e;
        --text-primary: #e2e2e5;
        --text-secondary: #c4c6d0;
        --accent-green: #6dd58c;
        --accent-green-hover: #58b975;
        --accent-green-alpha: rgba(109, 213, 140, 0.15);
        --border-color: #43474e;
        --app-bar-bg: rgba(26, 28, 30, 0.85);
        --bottom-nav-bg: #1e2022;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
        --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
    }
}

/* ==========================================================================
   GLOBAL RESETS (For that smooth Native Feel)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Removes the ugly blue flash when tapping on mobile */
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    /* Locks the body background from scrolling */
    overflow: hidden; 
    height: 100vh;
    height: 100dvh;
    overscroll-behavior-y: none; /* Stops the pull-to-refresh drag */
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* 🚀 HIDE SCROLLBARS FOR APP FEEL */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

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