/* ============================================
   ALAETIKET DESIGN SYSTEM
   Sessiz Lüks - Butik ama Kurumsal
   ============================================ */

/* 
   TASARIM FELSEFESİ:
   - Az göster, ama doğru göster
   - Tekrar eden ritim, tutarlı boşluk
   - Ölçülü kontrast, net hiyerarşi
   - Okunurluk her şeyden önce gelir
*/

:root {
  /* ============================================
     1. RENK SİSTEMİ (DEĞİŞTİRİLEMEZ)
     ============================================ */
  
  /* Ana Marka Rengi - Koyu Lacivert (Kurumsal) */
  --ds-color-brand: #0E1A2B;
  --ds-color-brand-light: #1a2b42;
  --ds-color-brand-dark: #0a1420;
  
  /* Vurgu Rengi - Sessiz Altın (Sadece CTA'lar için) */
  --ds-color-accent: #C8A96A;
  --ds-color-accent-hover: #B09050;
  --ds-color-accent-light: #D9C494;
  
  /* Metin Renkleri */
  --ds-color-text-primary: #1A1D23;
  --ds-color-text-secondary: #4A5568;
  --ds-color-text-muted: #6B7280;
  
  /* Zemin Renkleri */
  --ds-color-bg-primary: #FFFFFF;
  --ds-color-bg-secondary: #F9FAFB;
  --ds-color-bg-tertiary: #F3F4F6;
  
  /* Çizgi Renkleri */
  --ds-color-border-light: #E5E7EB;
  --ds-color-border-medium: #D1D5DB;
  --ds-color-border-dark: #9CA3AF;
  
  /* Durum Renkleri (Minimal kullanım) */
  --ds-color-success: #059669;
  --ds-color-error: #DC2626;
  --ds-color-warning: #D97706;
  
  /* ============================================
     2. TİPOGRAFİ SİSTEMİ
     ============================================ */
  
  /* Font Ailesi - Tek font, 2 ağırlık */
  --ds-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Ağırlıkları */
  --ds-font-weight-normal: 400;
  --ds-font-weight-medium: 500;
  --ds-font-weight-semibold: 600;
  
  /* Font Boyutları - Tutarlı ölçek */
  --ds-text-xs: 0.75rem;      /* 12px */
  --ds-text-sm: 0.875rem;     /* 14px */
  --ds-text-base: 1rem;       /* 16px */
  --ds-text-lg: 1.125rem;     /* 18px */
  --ds-text-xl: 1.25rem;      /* 20px */
  --ds-text-2xl: 1.5rem;      /* 24px */
  --ds-text-3xl: 1.875rem;    /* 30px */
  --ds-text-4xl: 2.25rem;     /* 36px */
  --ds-text-5xl: 3rem;        /* 48px */
  
  /* Satır Yükseklikleri */
  --ds-leading-tight: 1.25;
  --ds-leading-normal: 1.5;
  --ds-leading-relaxed: 1.75;
  
  /* ============================================
     3. BOŞLUK SİSTEMİ (8px grid)
     ============================================ */
  
  --ds-space-1: 0.25rem;   /* 4px */
  --ds-space-2: 0.5rem;    /* 8px */
  --ds-space-3: 0.75rem;   /* 12px */
  --ds-space-4: 1rem;      /* 16px */
  --ds-space-5: 1.25rem;   /* 20px */
  --ds-space-6: 1.5rem;    /* 24px */
  --ds-space-8: 2rem;      /* 32px */
  --ds-space-10: 2.5rem;   /* 40px */
  --ds-space-12: 3rem;     /* 48px */
  --ds-space-16: 4rem;     /* 64px */
  --ds-space-20: 5rem;     /* 80px */
  --ds-space-24: 6rem;     /* 96px */
  
  /* Section Aralıkları - Sabit */
  --ds-section-spacing: var(--ds-space-20);
  --ds-section-spacing-sm: var(--ds-space-16);
  
  /* ============================================
     4. LAYOUT & GRID
     ============================================ */
  
  --ds-container-max: 1200px;
  --ds-container-padding: var(--ds-space-6);
  --ds-grid-gap: var(--ds-space-6);
  
  /* ============================================
     5. BORDER & RADIUS
     ============================================ */
  
  --ds-radius-sm: 0.25rem;   /* 4px */
  --ds-radius-md: 0.5rem;    /* 8px */
  --ds-radius-lg: 0.75rem;   /* 12px */
  --ds-radius-xl: 1rem;      /* 16px */
  
  /* ============================================
     6. SHADOWS (Minimal)
     ============================================ */
  
  --ds-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --ds-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --ds-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* ============================================
     7. TRANSITIONS
     ============================================ */
  
  --ds-transition-fast: 150ms ease;
  --ds-transition-base: 200ms ease;
  --ds-transition-slow: 300ms ease;
  
  /* ============================================
     8. Z-INDEX
     ============================================ */
  
  --ds-z-base: 1;
  --ds-z-dropdown: 1000;
  --ds-z-sticky: 1020;
  --ds-z-fixed: 1030;
  --ds-z-modal: 1050;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-base);
  font-weight: var(--ds-font-weight-normal);
  line-height: var(--ds-leading-normal);
  color: var(--ds-color-text-primary);
  background-color: var(--ds-color-bg-primary);
}

/* ============================================
   TYPOGRAPHY COMPONENTS
   ============================================ */

/* Başlıklar - Sade, karakterli ama kalın değil */
.ds-heading-1 {
  font-size: var(--ds-text-5xl);
  font-weight: var(--ds-font-weight-semibold);
  line-height: var(--ds-leading-tight);
  color: var(--ds-color-text-primary);
  letter-spacing: -0.02em;
}

.ds-heading-2 {
  font-size: var(--ds-text-4xl);
  font-weight: var(--ds-font-weight-semibold);
  line-height: var(--ds-leading-tight);
  color: var(--ds-color-text-primary);
  letter-spacing: -0.01em;
}

.ds-heading-3 {
  font-size: var(--ds-text-3xl);
  font-weight: var(--ds-font-weight-medium);
  line-height: var(--ds-leading-tight);
  color: var(--ds-color-text-primary);
}

.ds-heading-4 {
  font-size: var(--ds-text-2xl);
  font-weight: var(--ds-font-weight-medium);
  line-height: var(--ds-leading-normal);
  color: var(--ds-color-text-primary);
}

/* Body Text */
.ds-body-lg {
  font-size: var(--ds-text-lg);
  line-height: var(--ds-leading-relaxed);
  color: var(--ds-color-text-secondary);
}

.ds-body-base {
  font-size: var(--ds-text-base);
  line-height: var(--ds-leading-normal);
  color: var(--ds-color-text-secondary);
}

.ds-body-sm {
  font-size: var(--ds-text-sm);
  line-height: var(--ds-leading-normal);
  color: var(--ds-color-text-muted);
}

/* ============================================
   BUTTON COMPONENTS (Tek tasarım)
   ============================================ */

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-6);
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-base);
  font-weight: var(--ds-font-weight-medium);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--ds-radius-md);
  cursor: pointer;
  transition: all var(--ds-transition-base);
  white-space: nowrap;
}

/* Primary Button - Sadece CTA'lar için */
.ds-btn-primary {
  background-color: var(--ds-color-accent);
  color: var(--ds-color-bg-primary);
}

.ds-btn-primary:hover {
  background-color: var(--ds-color-accent-hover);
  transform: translateY(-1px);
}

.ds-btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.ds-btn-secondary {
  background-color: transparent;
  color: var(--ds-color-text-primary);
  border: 1px solid var(--ds-color-border-medium);
}

.ds-btn-secondary:hover {
  background-color: var(--ds-color-bg-secondary);
  border-color: var(--ds-color-text-primary);
}

/* Ghost Button */
.ds-btn-ghost {
  background-color: transparent;
  color: var(--ds-color-text-secondary);
}

.ds-btn-ghost:hover {
  color: var(--ds-color-text-primary);
  background-color: var(--ds-color-bg-secondary);
}

/* Button Sizes */
.ds-btn-sm {
  padding: var(--ds-space-2) var(--ds-space-4);
  font-size: var(--ds-text-sm);
}

.ds-btn-lg {
  padding: var(--ds-space-4) var(--ds-space-8);
  font-size: var(--ds-text-lg);
}

/* ============================================
   FORM COMPONENTS (Tek tasarım)
   ============================================ */

.ds-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-6);
}

.ds-label {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-color-text-primary);
}

.ds-input,
.ds-textarea,
.ds-select {
  width: 100%;
  padding: var(--ds-space-3) var(--ds-space-4);
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-base);
  color: var(--ds-color-text-primary);
  background-color: var(--ds-color-bg-primary);
  border: 1px solid var(--ds-color-border-medium);
  border-radius: var(--ds-radius-md);
  transition: all var(--ds-transition-base);
}

.ds-input:focus,
.ds-textarea:focus,
.ds-select:focus {
  outline: none;
  border-color: var(--ds-color-accent);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.1);
}

.ds-input::placeholder,
.ds-textarea::placeholder {
  color: var(--ds-color-text-muted);
}

.ds-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   CARD COMPONENTS (Tek tasarım)
   ============================================ */

.ds-card {
  background-color: var(--ds-color-bg-primary);
  border: 1px solid var(--ds-color-border-light);
  border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-6);
  transition: all var(--ds-transition-base);
}

.ds-card:hover {
  border-color: var(--ds-color-border-medium);
  box-shadow: var(--ds-shadow-md);
}

.ds-card-header {
  margin-bottom: var(--ds-space-4);
}

.ds-card-title {
  font-size: var(--ds-text-xl);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-color-text-primary);
  margin-bottom: var(--ds-space-2);
}

.ds-card-description {
  font-size: var(--ds-text-sm);
  color: var(--ds-color-text-secondary);
}

.ds-card-body {
  margin-bottom: var(--ds-space-4);
}

.ds-card-footer {
  padding-top: var(--ds-space-4);
  border-top: 1px solid var(--ds-color-border-light);
}

/* ============================================
   SECTION COMPONENTS
   ============================================ */

.ds-section {
  padding: var(--ds-section-spacing) 0;
}

.ds-section-sm {
  padding: var(--ds-section-spacing-sm) 0;
}

.ds-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--ds-space-12);
}

.ds-section-title {
  font-size: var(--ds-text-4xl);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-color-text-primary);
  margin-bottom: var(--ds-space-4);
  line-height: var(--ds-leading-tight);
}

.ds-section-description {
  font-size: var(--ds-text-lg);
  color: var(--ds-color-text-secondary);
  line-height: var(--ds-leading-relaxed);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

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

.ds-grid {
  display: grid;
  gap: var(--ds-grid-gap);
}

.ds-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ds-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ds-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing */
.ds-mt-0 { margin-top: 0; }
.ds-mt-4 { margin-top: var(--ds-space-4); }
.ds-mt-6 { margin-top: var(--ds-space-6); }
.ds-mt-8 { margin-top: var(--ds-space-8); }
.ds-mt-12 { margin-top: var(--ds-space-12); }

.ds-mb-0 { margin-bottom: 0; }
.ds-mb-4 { margin-bottom: var(--ds-space-4); }
.ds-mb-6 { margin-bottom: var(--ds-space-6); }
.ds-mb-8 { margin-bottom: var(--ds-space-8); }
.ds-mb-12 { margin-bottom: var(--ds-space-12); }

/* Text Alignment */
.ds-text-left { text-align: left; }
.ds-text-center { text-align: center; }
.ds-text-right { text-align: right; }

/* Text Colors */
.ds-text-primary { color: var(--ds-color-text-primary); }
.ds-text-secondary { color: var(--ds-color-text-secondary); }
.ds-text-muted { color: var(--ds-color-text-muted); }
.ds-text-accent { color: var(--ds-color-accent); }

/* Background Colors */
.ds-bg-primary { background-color: var(--ds-color-bg-primary); }
.ds-bg-secondary { background-color: var(--ds-color-bg-secondary); }
.ds-bg-tertiary { background-color: var(--ds-color-bg-tertiary); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  :root {
    --ds-container-padding: var(--ds-space-4);
    --ds-section-spacing: var(--ds-space-12);
    --ds-section-spacing-sm: var(--ds-space-10);
  }
  
  .ds-heading-1 { font-size: var(--ds-text-4xl); }
  .ds-heading-2 { font-size: var(--ds-text-3xl); }
  .ds-heading-3 { font-size: var(--ds-text-2xl); }
  .ds-section-title { font-size: var(--ds-text-3xl); }
  
  .ds-grid-2,
  .ds-grid-3,
  .ds-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
*:focus-visible {
  outline: 2px solid var(--ds-color-accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen reader only */
.ds-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
