/* ==========================================================
   NEON GLASSMORPHISM DESIGN SYSTEM
   Frosted glass panels, neon cyan-blue primary, purple accent,
   soft glow borders/shadows. Loads BEFORE all other stylesheets.
   ========================================================== */

/* DARK MODE = DEFAULT */
:root {
    /* ---- PRIMARY (neon cyan-blue) ---- */
    --primary-color: #38bdf8;
    --primary-dark: #0ea5e9;
    --primary-light: #7dd3fc;
    --accent: #a855f7;

    /* ---- TEXT ---- */
    --text-color: rgba(255, 255, 255, 0.85);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text-heading: #ffffff;
    --text-on-primary: #0a0a1a;

    /* ---- SURFACES (glass panels) ---- */
    --background-color: #0a0a1a;
    /* Opaque top-chrome color sampled by iOS Safari around the Dynamic Island. */
    --ios-chrome-bg: #0a0a1a;
    --card-bg: rgba(15, 15, 35, 0.6);
    --surface-elevated: rgba(25, 25, 55, 0.7);
    --dropdown-bg: #141428;

    /* ---- GRADIENTS ---- */
    --gradient-bg: linear-gradient(180deg, #0a0a1a 0%, #0d0d24 50%, #0a0a1a 100%);
    --gradient-primary: linear-gradient(135deg, #0ea5e9, #a855f7);
    --gradient-accent: linear-gradient(135deg, #38bdf8, #7c3aed);
    --gradient-card: linear-gradient(180deg, rgba(15, 15, 35, 0.6) 0%, rgba(20, 20, 45, 0.5) 100%);

    /* ---- BORDERS & SHADOWS ---- */
    --border-color: rgba(56, 189, 248, 0.12);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 6px rgba(56, 189, 248, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.06);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.12), 0 0 40px rgba(168, 85, 247, 0.06);
    --shadow-glow: 0 0 15px rgba(56, 189, 248, 0.1), 0 0 30px rgba(168, 85, 247, 0.05);

    /* ---- GLASS ---- */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(56, 189, 248, 0.12);

    /* ---- TYPOGRAPHY ---- */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ---- UTILITY COLORS ---- */
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --info: #38bdf8;

    /* ---- INPUT ---- */
    --input-bg: rgba(15, 15, 35, 0.5);
    --input-border: rgba(56, 189, 248, 0.1);
    --input-focus: rgba(56, 189, 248, 0.35);

    /* ---- MISC ---- */
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* ---- TAGS / CHIPS ---- */
    --chip-radius: 10px;
    --chip-radius-sm: 8px;
    --chip-bg: linear-gradient(135deg, rgba(56, 189, 248, 0.13), rgba(168, 85, 247, 0.08)), rgba(15, 15, 35, 0.56);
    --chip-bg-strong: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(168, 85, 247, 0.18)), rgba(15, 15, 35, 0.76);
    --chip-border: rgba(125, 211, 252, 0.22);
    --chip-border-strong: rgba(125, 211, 252, 0.34);
    --chip-text: rgba(255, 255, 255, 0.86);
    --chip-text-muted: rgba(226, 232, 240, 0.72);
    --chip-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(2, 6, 23, 0.16);
    --chip-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(2, 6, 23, 0.24), 0 0 20px rgba(56, 189, 248, 0.09);
    --chip-accent: #38bdf8;
    --chip-accent-2: #a855f7;
}

/* LIGHT MODE */
[data-theme="light"] {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #38bdf8;
    --accent: #7c3aed;

    --text-color: #1e293b;
    --text-secondary: #64748b;
    --text-heading: #0f172a;
    --text-on-primary: #ffffff;

    --background-color: #f1f5f9;
    /* Opaque top-chrome color sampled by iOS Safari around the Dynamic Island. */
    --ios-chrome-bg: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.85);
    --surface-elevated: rgba(241, 245, 249, 0.9);
    --dropdown-bg: #ffffff;

    --gradient-bg: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    --gradient-primary: linear-gradient(135deg, #0284c7, #7c3aed);
    --gradient-accent: linear-gradient(135deg, #0ea5e9, #6d28d9);
    --gradient-card: none;

    --border-color: rgba(2, 132, 199, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 12px rgba(2, 132, 199, 0.08);
    --shadow-glow: 0 0 12px rgba(2, 132, 199, 0.06);

    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(2, 132, 199, 0.08);

    --input-bg: rgba(255, 255, 255, 0.7);
    --input-border: rgba(2, 132, 199, 0.12);
    --input-focus: rgba(2, 132, 199, 0.25);

    --chip-bg: linear-gradient(135deg, rgba(2, 132, 199, 0.09), rgba(124, 58, 237, 0.06)), rgba(255, 255, 255, 0.82);
    --chip-bg-strong: linear-gradient(135deg, rgba(2, 132, 199, 0.14), rgba(124, 58, 237, 0.1)), rgba(255, 255, 255, 0.94);
    --chip-border: rgba(2, 132, 199, 0.18);
    --chip-border-strong: rgba(2, 132, 199, 0.28);
    --chip-text: #0f172a;
    --chip-text-muted: #475569;
    --chip-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 22px rgba(15, 23, 42, 0.07);
    --chip-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 28px rgba(15, 23, 42, 0.1);
}
