/* =====================================================
   HİKMET ATÖLYESİ - Tasarım Token Sistemi
   css/variables.css
   ===================================================== */

:root {
  /* ─── Ana Renk Paleti ─── */
  --color-primary: #0d9488;
  --color-primary-light: #14b8a6;
  --color-primary-dark: #0f766e;
  --color-primary-glow: rgba(13, 148, 136, 0.35);

  --color-accent: #d4a017;
  --color-accent-light: #f0b429;
  --color-accent-dark: #b8870e;
  --color-accent-glow: rgba(212, 160, 23, 0.35);

  /* ─── Kitap Renkleri ─── */
  --color-dkab: #0d9488;
  --color-dkab-light: #ccfbf1;
  --color-dkab-dark: #0f766e;
  --color-dkab-gradient: linear-gradient(135deg, #0d9488, #06b6d4);

  --color-ph: #7c3aed;
  --color-ph-light: #ede9fe;
  --color-ph-dark: #5b21b6;
  --color-ph-gradient: linear-gradient(135deg, #7c3aed, #a855f7);

  --color-kuran: #1d4ed8;
  --color-kuran-light: #dbeafe;
  --color-kuran-dark: #1e3a8a;
  --color-kuran-gradient: linear-gradient(135deg, #1d4ed8, #4f46e5);

  --color-arapca: #dc2626;
  --color-arapca-light: #fee2e2;
  --color-arapca-dark: #991b1b;
  --color-arapca-gradient: linear-gradient(135deg, #dc2626, #f97316);

  /* ─── Sınıf Renkleri ─── */
  --color-sinif5: #059669;
  --color-sinif6: #0891b2;
  --color-sinif7: #7c3aed;
  --color-sinif8: #d97706;

  /* ─── Durum Renkleri ─── */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;

  /* ─── Rütbe Renkleri ─── */
  --color-rank-talip: #6b7280;
  --color-rank-talebe: #059669;
  --color-rank-kari: #2563eb;
  --color-rank-arif: #7c3aed;
  --color-rank-munevver: #d97706;
  --color-rank-hikmet: #d4a017;

  /* ─── Tipografi ─── */
  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Amiri', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font Boyutları */
  --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;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Font Ağırlıkları */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Satır Yükseklikleri */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* ─── Spacing ─── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ─── Border Radius ─── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* ─── Gölgeler ─── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-glow-primary: 0 0 20px rgba(13, 148, 136, 0.4);
  --shadow-glow-accent: 0 0 20px rgba(212, 160, 23, 0.4);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.1);

  /* ─── Geçişler ─── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ─── Z-Index ─── */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-tooltip: 500;

  /* ─── Layout ─── */
  --header-height: 70px;
  --sidebar-width: 280px;
  --max-width: 1400px;
  --container-padding: var(--space-6);

  /* ─── Touch Hedefleri (Akıllı Tahta) ─── */
  --touch-target-min: 48px;
  --touch-target-lg: 64px;
}

/* ─── Light Tema ─── */
[data-theme="light"] {
  --bg-base: #faf9f6;
  --bg-surface: #ffffff;
  --bg-surface-2: #f3f2ee;
  --bg-surface-3: #e8e7e2;
  --bg-overlay: rgba(250, 249, 246, 0.85);

  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-tertiary: #a8a29e;
  --text-inverse: #fafaf9;

  --border-color: #e7e5e4;
  --border-color-strong: #d6d3d1;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  --card-bg: #ffffff;
  --card-hover-bg: #fafafa;
  --nav-bg: rgba(250, 249, 246, 0.92);

  --input-bg: #f9f8f5;
  --input-border: #d6d3d1;
  --input-focus-border: var(--color-primary);

  --scrollbar-track: #f1f0ec;
  --scrollbar-thumb: #c8c5bf;

  --pattern-opacity: 0.04;
}

/* ─── Dark Tema ─── */
[data-theme="dark"] {
  --bg-base: #0f1117;
  --bg-surface: #171922;
  --bg-surface-2: #1e2130;
  --bg-surface-3: #252840;
  --bg-overlay: rgba(15, 17, 23, 0.85);

  --text-primary: #f0ede8;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-inverse: #1c1917;

  --border-color: #2a2d3a;
  --border-color-strong: #363947;

  --glass-bg: rgba(23, 25, 34, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --card-bg: #171922;
  --card-hover-bg: #1e2130;
  --nav-bg: rgba(15, 17, 23, 0.92);

  --input-bg: #1e2130;
  --input-border: #2a2d3a;
  --input-focus-border: var(--color-primary);

  --scrollbar-track: #1e2130;
  --scrollbar-thumb: #363947;

  --pattern-opacity: 0.06;
}

/* ─── Responsive Breakpoints ─── */
/* sm: 640px | md: 768px | lg: 1024px | xl: 1280px | 2xl: 1536px */

/* ─── Akıllı Tahta (1200px+) ─── */
@media (min-width: 1200px) {
  :root {
    --text-base: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --touch-target-min: 56px;
  }
}
