/* ==========================================================
   Medium tarzı blog — style.css
   Mobil öncelikli (mobile-first) responsive tasarım
   ========================================================== */

/* ---------- Değişkenler (Medium renk paleti) ---------- */
:root {
  --renk-metin: #242424;        /* Ana metin */
  --renk-ikincil: #6b6b6b;      /* İkincil metin */
  --renk-soluk: #8f8f8f;        /* Soluk metin (tarih vb.) */
  --renk-vurgu: #1a8917;        /* Medium yeşili */
  --renk-vurgu-koyu: #156d12;
  --renk-arkaplan: #ffffff;
  --renk-yumusak: #f9f9f9;      /* Kart / kutu arka planı */
  --renk-cizgi: #f2f2f2;        /* İnce ayırıcı çizgiler */
  --renk-etiket-bg: #f2f2f2;

  --font-baslik: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-govde: "Source Serif 4", Charter, Georgia, serif;
  --font-arayuz: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Helvetica, Arial, sans-serif;

  --genislik-icerik: 680px;     /* Medium'un okuma genişliği */
  --genislik-genis: 1192px;
}

/* ---------- Sıfırlama ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-govde);
  color: var(--renk-metin);
  background: var(--renk-arkaplan);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Genel kapsayıcılar ---------- */
.kapsayici {
  width: 100%;
  max-width: var(--genislik-genis);
  margin: 0 auto;
  padding: 0 28px;
}

.icerik-dar {
  max-width: var(--genislik-icerik);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================
   ÜST MENÜ (Header)
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--renk-arkaplan);
  border-bottom: 1px solid var(--renk-cizgi);
}

.header-ic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 57px; /* Medium'un header yüksekliği */
}

.logo {
  font-family: var(--font-baslik);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--renk-vurgu);
}

/* --- Navigasyon: mobilde hamburger --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .cizgi {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--renk-metin);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger -> X animasyonu */
.nav-toggle.acik .cizgi:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.acik .cizgi:nth-child(2) {
  opacity: 0;
}
.nav-toggle.acik .cizgi:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 57px;
  left: 0;
  right: 0;
  background: var(--renk-arkaplan);
  border-bottom: 1px solid var(--renk-cizgi);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.site-nav.acik {
  max-height: 240px;
}

.site-nav ul {
  list-style: none;
  padding: 8px 20px 16px;
}

.site-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-arayuz);
  font-size: 0.95rem;
  color: var(--renk-ikincil);
  border-bottom: 1px solid var(--renk-cizgi);
  transition: color 0.2s ease;
}

.site-nav li:last-child a {
  border-bottom: none;
}

.site-nav a:hover,
.site-nav a.aktif {
  color: var(--renk-metin);
}

/* ==========================================================
   HERO (Anasayfa karşılama alanı)
   ========================================================== */
.hero {
  background: var(--renk-yumusak);
  border-bottom: 1px solid var(--renk-cizgi);
  padding: 48px 0;
}

.hero h1 {
  font-family: var(--font-baslik);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero p {
  font-family: var(--font-arayuz);
  font-size: 1rem;
  color: var(--renk-ikincil);
  max-width: 480px;
}

/* ==========================================================
   YAZI KARTLARI
   ========================================================== */
.bolum-baslik {
  font-family: var(--font-arayuz);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--renk-soluk);
  margin: 36px 0 8px;
}

.kart-listesi {
  display: grid;
  grid-template-columns: 1fr; /* Mobil: tek sütun */
  gap: 0;
}

.kart {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--renk-cizgi);
  cursor: pointer;
}

.kart-ust {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.kart-metin {
  flex: 1;
  min-width: 0;
}

.kart-meta {
  font-family: var(--font-arayuz);
  font-size: 0.8rem;
  color: var(--renk-soluk);
  margin-bottom: 8px;
}

.kart h2 {
  font-family: var(--font-baslik);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.kart:hover h2 {
  color: var(--renk-vurgu-koyu);
}

.kart .ozet {
  font-size: 0.95rem;
  color: var(--renk-ikincil);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.kart-gorsel {
  width: 100px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--renk-cizgi);
}

.kart-gorsel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kart-alt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-arayuz);
  font-size: 0.78rem;
  color: var(--renk-soluk);
}

.etiket {
  background: var(--renk-etiket-bg);
  color: var(--renk-metin);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
}

/* ==========================================================
   YAZI DETAY SAYFASI
   ========================================================== */
.yazi {
  padding: 40px 0 64px;
}

.yazi-baslik {
  font-family: var(--font-baslik);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.yazi-altbaslik {
  font-family: var(--font-arayuz);
  font-size: 1.05rem;
  color: var(--renk-ikincil);
  margin-bottom: 24px;
}

.yazar-kutusu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--renk-cizgi);
  border-bottom: 1px solid var(--renk-cizgi);
  margin-bottom: 32px;
  font-family: var(--font-arayuz);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--renk-vurgu);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.yazar-ad {
  font-size: 0.9rem;
  font-weight: 600;
}

.yazar-detay {
  font-size: 0.8rem;
  color: var(--renk-soluk);
}

/* Yazı gövdesi — Medium okuma deneyimi */
.yazi-govde {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--renk-metin);
}

.yazi-govde p {
  margin-bottom: 1.6em;
}

.yazi-govde h2 {
  font-family: var(--font-baslik);
  font-size: 1.5rem;
  margin: 1.8em 0 0.6em;
  letter-spacing: -0.3px;
}

.yazi-govde h3 {
  font-family: var(--font-baslik);
  font-size: 1.25rem;
  margin: 1.5em 0 0.5em;
}

.yazi-govde blockquote {
  border-left: 3px solid var(--renk-metin);
  padding-left: 20px;
  font-style: italic;
  color: var(--renk-ikincil);
  margin: 1.6em 0;
}

.yazi-govde ul,
.yazi-govde ol {
  margin: 0 0 1.6em 1.4em;
}

.yazi-govde li {
  margin-bottom: 0.5em;
}

.yazi-govde code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--renk-yumusak);
  border: 1px solid var(--renk-cizgi);
  border-radius: 4px;
  padding: 2px 6px;
}

.yazi-govde pre {
  background: var(--renk-yumusak);
  border: 1px solid var(--renk-cizgi);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 1.6em;
}

.yazi-govde pre code {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.yazi-govde a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yazi-govde a:hover {
  color: var(--renk-vurgu);
}

.yazi-govde img {
  border-radius: 6px;
  margin: 1.6em auto;
}

.geri-don {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-arayuz);
  font-size: 0.85rem;
  color: var(--renk-ikincil);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.geri-don:hover {
  color: var(--renk-vurgu);
}

/* ==========================================================
   HAKKIMDA SAYFASI
   ========================================================== */
.sayfa {
  padding: 48px 0 64px;
}

.sayfa-baslik {
  font-family: var(--font-baslik);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.hakkimda-ust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.buyuk-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--renk-vurgu);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arayuz);
  font-weight: 700;
  font-size: 2.2rem;
}

.sayfa-metin {
  font-size: 1.1rem;
  line-height: 1.8;
}

.sayfa-metin p {
  margin-bottom: 1.4em;
}

.sayfa-metin h2 {
  font-family: var(--font-baslik);
  font-size: 1.4rem;
  margin: 1.6em 0 0.6em;
}

/* ==========================================================
   İLETİŞİM SAYFASI
   ========================================================== */
.iletisim-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.form-grup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grup label {
  font-family: var(--font-arayuz);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--renk-metin);
}

.form-grup input,
.form-grup textarea {
  font-family: var(--font-arayuz);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: var(--renk-arkaplan);
  color: var(--renk-metin);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grup input:focus,
.form-grup textarea:focus {
  outline: none;
  border-color: var(--renk-vurgu);
  box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.12);
}

.form-grup textarea {
  resize: vertical;
  min-height: 140px;
}

.hata-mesaji {
  font-family: var(--font-arayuz);
  font-size: 0.78rem;
  color: #c94a4a;
  min-height: 1em;
}

.buton {
  font-family: var(--font-arayuz);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--renk-vurgu);
  border: none;
  border-radius: 100px; /* Medium'un hap şeklindeki butonu */
  padding: 12px 28px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.buton:hover {
  background: var(--renk-vurgu-koyu);
}

.form-basari {
  display: none;
  font-family: var(--font-arayuz);
  background: #eef7ee;
  border: 1px solid #bfe3bd;
  color: var(--renk-vurgu-koyu);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.9rem;
}

.form-basari.goster {
  display: block;
}

.iletisim-bilgi {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--renk-cizgi);
  font-family: var(--font-arayuz);
  font-size: 0.9rem;
  color: var(--renk-ikincil);
}

.iletisim-bilgi p {
  margin-bottom: 8px;
}

/* ==========================================================
   ALT BİLGİ (Footer)
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--renk-cizgi);
  margin-top: 48px;
  padding: 28px 0;
}

.footer-ic {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-family: var(--font-arayuz);
  font-size: 0.8rem;
  color: var(--renk-soluk);
}

.footer-linkler {
  display: flex;
  gap: 20px;
}

.footer-linkler a:hover {
  color: var(--renk-metin);
}

/* ==========================================================
   TABLET — 768px ve üzeri
   ========================================================== */
@media (min-width: 768px) {
  .kapsayici {
    padding: 0 32px;
  }

  /* Menü artık her zaman görünür */
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    border: none;
    overflow: visible;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    gap: 28px;
    padding: 0;
  }

  .site-nav a {
    padding: 0;
    border: none;
  }

  .site-nav a.aktif {
    color: var(--renk-metin);
    font-weight: 600;
  }

  .hero {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .kart h2 {
    font-size: 1.4rem;
  }

  .kart-gorsel {
    width: 160px;
    height: 105px;
  }

  .yazi-baslik {
    font-size: 2.5rem;
  }

  .sayfa-baslik {
    font-size: 2.4rem;
  }

  .hakkimda-ust {
    flex-direction: row;
    align-items: center;
  }

  .footer-ic {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================
   MASAÜSTÜ — 1024px ve üzeri
   ========================================================== */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.6rem;
  }

  /* Kartlar iki sütuna geçer */
  .kart-listesi {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  .kart {
    padding: 28px 0;
  }

  .yazi-baslik {
    font-size: 2.8rem;
  }
}
