/**
 * PodConnect - CSS Variables
 * Clean, Minimal Design System - True Stripe Style
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    /* ============================
       Brand Colors
       ============================ */
    --brand-primary: #635bff;
    --brand-primary-dark: #5851db;
    --brand-primary-light: #7a73ff;

    /* ============================
       Light Mode - Stripe Style
       ============================ */
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-surface-alt: #f6f8fa;
    --color-surface-hover: #f0f2f4;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #5c5c5c;
    --color-text-tertiary: #8a8a8a;
    --color-border: #e6e6e6;
    --color-border-light: #f0f0f0;
    --color-border-hover: #c9c9c9;

    /* Primary */
    --color-primary: var(--brand-primary);
    --color-primary-dark: var(--brand-primary-dark);
    --color-primary-light: var(--brand-primary-light);

    /* Semantic - Muted */
    --color-success: #24b47e;
    --color-success-bg: #f0fdf7;
    --color-warning: #e6a23c;
    --color-warning-bg: #fffbf0;
    --color-error: #e25950;
    --color-error-bg: #fef2f2;
    --color-info: var(--brand-primary);
    --color-info-bg: #f5f5ff;

    /* Grays */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* ============================
       Spacing
       ============================ */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* ============================
       Typography - Inter
       ============================ */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 0.9375rem;
    --font-size-lg: 1.0625rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* ============================
       Shadows - Very Subtle
       ============================ */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);

    /* ============================
       Border Radius - Subtle
       ============================ */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* ============================
       Transitions
       ============================ */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;

    /* ============================
       Z-Index
       ============================ */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1070;

    /* ============================
       Layout
       ============================ */
    --container-width: 1200px;
    --navbar-height: 64px;
    --navbar-height-mobile: 56px;
}

/* ============================
   Dark Mode
   ============================ */
[data-theme="dark"] {
    --color-background: #0a0a0a;
    --color-surface: #141414;
    --color-surface-alt: #1c1c1c;
    --color-surface-hover: #262626;
    --color-text-primary: #fafafa;
    --color-text-secondary: #a1a1a1;
    --color-text-tertiary: #6b6b6b;
    --color-border: #2e2e2e;
    --color-border-light: #1f1f1f;
    --color-border-hover: #454545;

    --color-success-bg: #0f2922;
    --color-warning-bg: #2a2012;
    --color-error-bg: #2a1515;
    --color-info-bg: #1a1a2e;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-background: #0a0a0a;
        --color-surface: #141414;
        --color-surface-alt: #1c1c1c;
        --color-surface-hover: #262626;
        --color-text-primary: #fafafa;
        --color-text-secondary: #a1a1a1;
        --color-text-tertiary: #6b6b6b;
        --color-border: #2e2e2e;
        --color-border-light: #1f1f1f;
        --color-border-hover: #454545;
        --color-success-bg: #0f2922;
        --color-warning-bg: #2a2012;
        --color-error-bg: #2a1515;
        --color-info-bg: #1a1a2e;
        --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
}
