/* ═══════════════════════════════════════════════
   SPDN — Design Tokens
   Tek kaynak — tüm sayfalar (index, admin, dashboard,
   profile, embed) bu token'ları tüketir.
   Yol haritası: Faz 0 / T0.2
   ═══════════════════════════════════════════════ */

:root {
    /* ── Color: Backgrounds ── */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    /* ── Color: Borders ── */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* ── Color: Text ── */
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    /* ── Color: Accents (hue-based) ── */
    --accent-indigo: #818cf8;
    --accent-violet: #a78bfa;
    --accent-purple: #c084fc;
    --accent-cyan: #22d3ee;
    --accent-green: #34d399;
    --accent-amber: #fbbf24;
    --accent-red: #f87171;
    --accent-primary: #818cf8;
    --accent-secondary: #a78bfa;

    /* ── Color: Semantic aliases (yeni — meaning-based) ── */
    --color-brand: var(--accent-indigo);
    --color-brand-soft: rgba(129, 140, 248, 0.15);
    --color-success: var(--accent-green);
    --color-success-soft: rgba(52, 211, 153, 0.15);
    --color-warning: var(--accent-amber);
    --color-warning-soft: rgba(251, 191, 36, 0.15);
    --color-danger: var(--accent-red);
    --color-danger-soft: rgba(248, 113, 113, 0.15);
    --color-info: var(--accent-cyan);
    --color-info-soft: rgba(34, 211, 238, 0.15);

    /* ── Gradients ── */
    --gradient-primary: linear-gradient(135deg, #818cf8, #c084fc);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));

    /* ── Typography: Families ── */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* ── Typography: Sizes (yeni) ── */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */

    /* ── Typography: Line heights (yeni) ── */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-loose: 1.75;

    /* ── Typography: Weights (yeni) ── */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* ── Radius ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;   /* yeni */

    /* ── Spacing scale (yeni — 4px increments) ── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* ── Shadow scale (yeni) ── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 24px rgba(129, 140, 248, 0.35);
    --shadow-glow-strong: 0 0 48px rgba(129, 140, 248, 0.55);

    /* ── Z-index scale (yeni) ── */
    --z-base: 0;
    --z-content: 1;
    --z-sticky: 10;
    --z-dropdown: 100;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-popover: 1500;
    --z-toast: 2000;
    --z-max: 9999;

    /* ── Transitions ── */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Layout breakpoints (referans — media query'de değişken kullanılamaz,
           ama JS/kural gerektiğinde kaynak olarak) ── */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}
