/* ===========================================
   NIBANGO WEB - DESIGN SYSTEM
   Synchronized with iOS AppStyle (Style.swift)
   =========================================== */

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

:root {
    /* ========== Brand Colors (Premium Indigo) ========== */
    --brand-primary: #5A52E5;
    --brand-primary-light: #F5F7FF;
    --brand-secondary: #4338CA;
    --brand-accent: #818CF8;

    /* Logo Colors (Original) */
    --logo-niban: #3F8AFF;
    --logo-go: #77E9A8;

    /* ========== Neutral Scale (Minimalist) ========== */
    --grey-50: #F9FAFB;
    --grey-100: #F3F4F6;
    --grey-200: #E5E7EB;
    --grey-300: #D1D5DB;
    --grey-400: #9CA3AF;
    --grey-500: #6B7280;
    --grey-600: #4B5563;
    --grey-700: #374151;
    --grey-800: #1F2937;
    --grey-900: #111827;

    /* ========== Semantic Colors ========== */
    --color-background: #F9FAFB;
    --color-background-secondary: #FFFFFF;
    --color-background-tertiary: #F3F4F6;

    --color-text-primary: #111827;
    --color-text-secondary: #4B5563;
    --color-text-tertiary: #9CA3AF;

    --color-link: #5A52E5;
    --color-error: #EF4444;
    --color-success: #10B981;
    --color-warning: #F59E0B;

    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;

    /* ========== Layout Constraints ========== */
    --max-width: 1280px;
    --content-margin: 0 auto;
    --grid-gap: 20px;

    /* ========== Typography ========== */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-logo: 'Ibrand', -apple-system, BlinkMacSystemFont, sans-serif;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font sizes (Apple inspired) */
    --font-size-hero: 48px;
    --font-size-title: 32px;
    --font-size-subtitle: 24px;
    --font-size-headline: 18px;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-size-mini: 12px;

    /* ========== Materials ========== */
    --glass-background: rgba(255, 255, 255, 0.75);
    --glass-blur: 20px;
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-bento: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    /* ========== Z-Index ========== */
    --z-header: 100;
    --z-tab-bar: 200;
    --z-overlay: 150;

    /* ========== Radius ========== */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
}

/* Force light parity as requested, preventing accidental dark mode styles */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #F9FAFB;
        --color-background-secondary: #FFFFFF;
        --color-text-primary: #111827;
        --color-text-secondary: #4B5563;
        --color-border: #E5E7EB;
        --glass-background: rgba(255, 255, 255, 0.75);
    }
}