/*
 * Aishop design tokens — single source of truth.
 *
 * Reference: .claude/plans/design-system.md
 * designmd.ai inspired (2026-04-30): soft shadows, generous whitespace,
 * moderate radius, monochrome neutral + reserved status accents.
 *
 * Bu dosya yalnızca CSS variables. Component class'ları base.css'te.
 * Layout-specific class'lar her template'in inline <style> block'unda kalır.
 */
:root {
    /* Surface palette */
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-muted: #f4f4f5;
    --border: #e4e4e7;
    --border-strong: #71717a;  /* WCAG 1.4.11 — UI component border 4.64:1 on #fff (ds05) */

    /* Text */
    --text: #18181b;
    --text-muted: #52525b;
    --text-subtle: #71717a;

    /* Brand / interactive */
    --primary: #18181b;
    --primary-hover: #27272a;
    --focus: #18181b;
    --active-bg: #f4f4f5;
    --active-text: #18181b;

    /* Focus ring (WCAG 2.4.7 Focus Visible — Level AA).
       Standards ref: docs/standards/web-design-standards.md §4.2 + §6.1.
       Color #18181b on any Aishop bg → kontrast ≥4.5:1 (--bg, --surface, --surface-muted hep yeterli). */
    --focus-ring-color: var(--focus);
    --focus-ring-width: 2px;
    --focus-ring-offset: 2px;

    /* Status */
    --success-bg: #f0fdf4;
    --success-text: #166534;
    --success-border: #bbf7d0;
    --info-bg: #f4f4f5;
    --info-text: #3f3f46;
    --info-border: #e4e4e7;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --warning-border: #fde68a;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
    --error-border: #fecaca;

    /* Type scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadow — subtle depth (designmd-inspired) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.06);

    /* Spacing scale (4px base) — standards §6.5 */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.5rem;    /* 24px */
    --space-6: 2rem;      /* 32px */
    --space-7: 3rem;      /* 48px */
    --space-8: 4rem;      /* 64px */

    /* Container max-widths — WCAG 1.4.10 Reflow + opinionated.
       Standards §6.6. xs = auth card (mevcut 26rem korunmuş). */
    --container-xs: 26rem;   /* 416px — auth */
    --container-sm: 36rem;   /* 576px */
    --container-md: 56rem;   /* 896px — prose / panel content */
    --container-lg: 80rem;   /* 1280px — dashboard wide */

    /* Z-index scale — single source ordering. */
    --z-sticky: 10;
    --z-overlay: 100;
    --z-modal: 1000;
    --z-toast: 10000;

    /* Breakpoint values — JS exposure only. CSS @media literal kalır
       (CSS spec: custom-property in @media not supported). Standards §6.6. */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;

    /* Font stack */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
}
