
/* Elemanları hem dikey hem yatayda tam ortalama */
.center-box {
  display: flex;
  justify-content: center; /* Yatay ortalama */
  align-items: center;    /* Dikey ortalama */
  min-height: 100vh;
}

/* Ekran genişliğine göre otomatik sığan (responsive) ızgara düzeni */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
/* ==========================================================================
   1. CSS DEĞİŞKENLERİ (Tüm Projenin Renk ve Ölçü Haritası)
   ========================================================================== */
:root {
  /* Renk Paleti */
  --primary-color: #6c5ce7;
  --primary-hover: #5a4bcf;
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --border-color: #e2e8f0;

  /* Tipografi */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Düzen ve Girintiler */
  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}



/* ==========================================================================
   2. TEMEL sıfırlama (RESET & BOX-SIZING)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Sayfa Kaydırma ve Temel Yapı */
html {
  scroll-behavior: smooth;
  font-size: 100%; /* 16px varsayılan */
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   3. MEDYA & ELEMAN SIFIRLAMALARI
   ========================================================================== */
/* Taşmaları önlemek için resim ve videoların sınırı */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form Elemanları Sıfırlaması */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Bağlantı Sıfırlamaları */
a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   4. YARDIMCI VE YAPISAL SINIFLAR (UTILITY CLASSES)
   ========================================================================== */
/* Sayfayı Ortala ve Sınırla */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* Esnek Yerleşim (Flexbox Ortlayıcı) */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Özelleştirilmiş Kaydırma Çubuğu (Scrollbar) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Metin Seçim Rengi */
::selection {
  background-color: var(--primary-color);
  color: #ffffff;
}