/* ============================================
   HASINDER - TASARIM SİSTEMİ (theme.css)
   Tüm sitelerde tutarlı renk, font, spacing
   ============================================ */

:root {
  /* === MARKA RENKLERİ === */
  --primary: #1B365D;
  --primary-light: #2E4A7F;
  --primary-dark: #142845;
  --primary-50: #f0f4fa;
  --primary-100: #d9e2f1;
  --primary-200: #b3c5e3;
  --primary-300: #7e9ac7;
  --primary-400: #4d72a8;
  --primary-500: #2E4A7F;
  --primary-600: #1B365D;
  --primary-700: #142845;
  --primary-800: #0d1c30;
  --primary-900: #08101a;

  --accent: #D4AF37;
  --accent-light: #F4D03F;
  --accent-dark: #B8941F;
  --accent-50: #fdf9ec;
  --accent-100: #faf0c8;
  --accent-200: #f5e08a;

  /* === ANLAMSAL RENKLER === */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #047857;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #b45309;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-dark: #b91c1c;
  --info: #3b82f6;
  --info-light: #dbeafe;
  --info-dark: #1e40af;

  /* === NÖTR RENK PALETİ === */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* === GRADYANLAR === */
  --gradient-primary: linear-gradient(135deg, #0B1B3D 0%, #142845 40%, #1B365D 70%, #0F4C5C 100%);
  --gradient-accent: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-light: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

  /* === SPACING (8pt grid) === */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* === BORDER RADIUS === */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --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.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.15);
  --shadow-gold: 0 8px 24px rgba(212,175,55,0.25);
  --shadow-primary: 0 8px 24px rgba(27,54,93,0.25);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.08);

  /* === TYPOGRAPHY === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --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 */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* === TRANSITIONS === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* === Z-INDEX === */
  --z-base: 0;
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-modal-backdrop: 300;
  --z-modal: 350;
  --z-toast: 400;
  --z-tooltip: 500;

  /* === LAYOUT === */
  --header-height: 64px;
  --header-height-mobile: 56px;
  --container-max: 1280px;
  --container-padding: 1rem;
}

/* === GRADIENT HERO CLASS === */
.gradient-hero {
  background: var(--gradient-primary);
  color: white;
}

/* === GLOBAL RESET === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--primary-dark); }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img, svg { max-width: 100%; height: auto; display: block; }

/* === UTILITY CLASSES === */
.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: var(--space-8) 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === TOUCH OPTIMIZATION === */
button, a, input[type="submit"], input[type="button"], .btn, .nav-link, .mobile-toggle, .hero-search-btn, .btn-hero-primary, .btn-hero-ghost {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
