/* ============================================================
   Referdes — makale sayfaları ortak stil dosyası
   Ana sayfadaki (index.html) renk ve tipografi sistemiyle aynı.
   Yeni makale eklerken bu dosyaya dokunmanıza gerek yok.
   ============================================================ */

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

:root {
  --teal-dark:   #0F6E56;
  --teal-mid:    #1a9b77;
  --teal-light:  #5DCAA5;
  --teal-pale:   #a8e8d2;
  --bg:          #080d0b;
  --bg-2:        #0d1512;
  --bg-3:        #111a17;
  --surface:     #142320;
  --border:      rgba(93,202,165,.14);
  --border-2:    rgba(93,202,165,.26);
  --text:        #e8f5f1;
  --text-muted:  #7a9e92;
  --mono:        'Space Mono', monospace;
  --sans:        'DM Sans', sans-serif;
  --radius:      6px;
  --transition:  .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── ÜST BAR ────────────────────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(8,13,11,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.bar-logo {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}
.bar-logo .a { color: var(--text-muted); }
.bar-logo .b { color: var(--teal-light); }
.bar-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.bar-nav a:hover { color: var(--teal-light); }

/* ─── SAYFA GÖVDESİ ──────────────────────────────────────── */
.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem) 4rem;
}

.crumb {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 1.25rem;
}
.crumb a { color: var(--teal-mid); text-decoration: none; }
.crumb a:hover { color: var(--teal-light); text-decoration: underline; }

h1 {
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.meta {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--teal-light);
  margin: 2.75rem 0 1rem;
}
article h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.9rem 0 .65rem;
}
article p { margin-bottom: 1.15rem; color: #c9ddd7; }
article ul, article ol { margin: 0 0 1.3rem 1.3rem; color: #c9ddd7; }
article li { margin-bottom: .55rem; }
article strong { color: var(--text); font-weight: 500; }
article a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 3px; }

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6rem;
  font-size: .9rem;
}
article th, article td {
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  text-align: left;
}
article th {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-light);
  background: var(--bg-3);
}
article td { color: #c9ddd7; }

/* tabloyu dar ekranda taşırmadan kaydır */
.table-scroll { overflow-x: auto; }

.callout {
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.6rem;
  background: var(--bg-3);
  border-left: 2px solid var(--teal-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
  color: #c9ddd7;
}

/* ─── MAKALE LİSTESİ ─────────────────────────────────────── */
.post-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.post-list li { border-top: 1px solid var(--border); }
.post-list li:last-child { border-bottom: 1px solid var(--border); }
.post-list a {
  display: block;
  padding: 1.5rem .25rem;
  text-decoration: none;
  transition: background var(--transition);
}
.post-list a:hover { background: var(--bg-2); }
.post-list .t {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  transition: color var(--transition);
}
.post-list a:hover .t { color: var(--teal-light); }
.post-list .d { font-size: .92rem; color: var(--text-muted); }

/* ─── ALT CTA ────────────────────────────────────────────── */
.cta {
  margin-top: 3.5rem;
  padding: 1.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.cta p { color: var(--text-muted); margin-bottom: 1.1rem; font-size: .95rem; }
.cta a {
  display: inline-block;
  padding: .8rem 1.6rem;
  background: var(--teal-dark);
  color: var(--teal-pale);
  border: 1px solid var(--teal-mid);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition);
}
.cta a:hover { background: var(--teal-mid); }

/* ─── ALT BİLGİ ──────────────────────────────────────────── */
footer {
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--teal-light); }

/* ─── WHATSAPP ───────────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 150;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: box-shadow var(--transition), transform var(--transition);
}
.wa-float:hover { box-shadow: 0 8px 26px rgba(37,211,102,.45); transform: translateY(-2px); }
.wa-float svg { width: 27px; height: 27px; fill: #fff; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float:hover { transform: none; }
}
