/* ==========================================================================
   DOĞTAP Gelişmiş Tasarım Sistemi - Ana CSS (globals.css)
   Next.js orijinal tasarım kalitesine birebir uygun
   ========================================================================== */

:root {
  /* 1. ANA RENKLER (PRIMARY) - Koyu Mavi Tonları */
  --color-primary: #1D255E;
  --color-primary-light: #3A427C;
  --color-primary-lighter: #525A95;
  --color-primary-dark: #050E4A;
  --color-primary-50: #DFE0FF;
  --color-primary-100: #BCC2FF;

  /* 2. İKİNCİL RENKLER (SECONDARY) - Altın/Hardal Tonları */
  --color-secondary: #C5A059;
  --color-secondary-light: #FED488;
  --color-secondary-dark: #775A19;
  --color-secondary-50: #FFDEA5;

  /* 3. VURGU RENKLERİ (ACCENT) - Kırmızı/Bordo Tonları */
  --color-accent: #DF2632;
  --color-accent-light: #FF5756;
  --color-accent-dark: #930015;

  /* 4. DURUM RENKLERİ (SEMANTIC/STATUS) */
  --color-success: #2E7D32;
  --color-warning: #775A19;
  --color-error: #BA1A1A;
  --color-info: #525A95;

  /* 5. ARKA PLAN VE YÜZEY (BACKGROUND & SURFACE) */
  --color-bg: #FBF9F9;
  --color-bg-alt: #F9F8F6;
  --color-bg-dark: #11173A;
  --color-surface: #FFFFFF;
  --color-surface-hover: #EFEDED;

  /* 6. METİN RENKLERİ (TYPOGRAPHY COLORS) */
  --color-text: #1B1C1C;
  --color-text-secondary: #464650;
  --color-text-muted: #767681;
  --color-text-on-dark: #F2F0F0;
  --color-text-on-primary: #FFFFFF;

  /* 7. KENARLIK VE BÖLÜCÜLER (BORDER & DIVIDER) */
  --color-border: #C7C5D1;
  --color-border-light: #EFEDED;
  --color-divider: #C7C5D1;

  /* 8. YAZI TİPLERİ (TYPOGRAPHY FAMILIES) */
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* 9. YAZI BOYUTLARI (TYPOGRAPHY SIZES - FONT SCALE) */
  --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 */

  /* 10. YAZI KALINLIKLARI (FONT WEIGHTS) */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* 11. SATIR YÜKSEKLİKLERİ (LINE HEIGHTS) */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* 12. BOŞLUKLAR (SPACING SCALE) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-24: 6rem;    /* 96px */
  --space-32: 8rem;    /* 128px */

  /* 13. KENAR KIVRIMLARI (BORDER RADIUS) */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* 14. GÖLGELER (SHADOWS & ELEVATION) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 15px rgba(29, 37, 94, 0.3);
  --shadow-glow-gold: 0 0 20px rgba(197, 160, 89, 0.4);

  /* 14b. GRADYANLAR (GRADIENTS)
     home.css bunları var(--gradient-*) ile çağırıyor; aşağıdaki .gradient-*
     sınıflarıyla aynı değerleri paylaşırlar. */
  --gradient-hero: linear-gradient(to bottom, rgba(17, 23, 58, 0.7) 0%, rgba(17, 23, 58, 0.3) 100%);
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-gold: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
  --gradient-sunset: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);

  /* 15. GEÇİŞLER VE ANİMASYON (TRANSITIONS) */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* 16. Z-INDEX KATMANLARI (Z-INDEX LAYERS) */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 1000;
  --z-popover: 1500;
  --z-toast: 2000;

  /* 17. KONTEYNER BOYUTLARI (CONTAINER SIZES) */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;

  /* 18. ÖLÇÜLER (LAYOUT DIMENSIONS) */
  --navbar-height: 80px;
  --sidebar-width: 280px;
}

/* ==========================================================================
   CSS SIFIRLAMA (RESET)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Başlıklar

   Renk --heading-color üzerinden okunur. Koyu zeminli bölümler (hero, footer,
   admin menüsü) bu değişkeni beyaza çekerek başlıklarını okunur kılar; aksi
   halde buradaki koyu varsayılan, kapsayıcının açık rengini eziyordu. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  color: var(--heading-color, var(--color-text));
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

/* Koyu zeminli bağlamlar */
.hero-content,
.page-hero,
.article-hero,
.city-hero,
.main-footer,
.admin-sidebar {
  --heading-color: #FFFFFF;
}

/* Linkler */
a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* Görseller */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Buton ve Form Elemanları */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Listeler */
ul, ol {
  list-style: none;
}

/* Seçim ve Odaklanma (Accessibility & UX) */
::selection {
  background-color: var(--color-secondary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Özel Kaydırma Çubuğu (Custom Scrollbar) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* ==========================================================================
   YARDIMCI SINIFLAR (UTILITIES)
   ========================================================================== */

/* Konteynerlar */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container-lg {
  max-width: var(--container-2xl);
}
.container-sm {
  max-width: var(--container-md);
}

/* Bölüm (Section) Araklıkları */
.section {
  padding: var(--space-24) 0;
}
.section-sm {
  padding: var(--space-12) 0;
}

/* Başlık Stilleri */
.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* Renk Geçişleri (Gradients) */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}
.gradient-gold {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
}
.gradient-sunset {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
}
.gradient-hero {
  background: linear-gradient(to bottom, rgba(17,23,58,0.7) 0%, rgba(17,23,58,0.3) 100%);
}
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cam Efekti (Glassmorphism) */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   BUTONLAR (BUTTONS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  z-index: -1;
}

.btn:hover::after {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background-color: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-accent:hover {
  background-color: var(--color-accent-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}
.btn-outline::after {
  display: none;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

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

/* ==========================================================================
   ANİMASYONLAR (ANIMATIONS)
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Animasyon Sınıfları */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}
.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}
.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}
.animate-scale-in {
  animation: scaleIn 0.8s ease-out forwards;
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Yüklenme İskeleti (Skeleton Loading) */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   DUYARLILIK VE RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Küçük Masaüstü */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: var(--space-16) 0;
  }
}

/* Tablet (Dikey) & Büyük Telefonlar */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  .section {
    padding: var(--space-12) 0;
  }
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
  }
}

/* Telefonlar */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .section {
    padding: var(--space-8) 0;
  }
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
  }
  .btn {
    width: 100%;
  }
}
