﻿/* =====================================================================
   GÜRKAN ÖZSOY BLOG
   İki mürekkep (mavi + kırmızı), üç font (serif başlık / sans gövde / mono etiket)
   ===================================================================== */

:root {
  /* Kağıt ve mürekkep paleti */
  --bg: #faf9f5;
  --bg-raised: #ffffff;
  --bg-tint: #f2f0e9;
  --text: #171b21;
  --text-muted: #5c6572;
  --text-light: #9aa1ab;
  --border: #e4e0d6;
  --border-focus: #2e4a73;

  --accent: #2e4a73;          /* mavi mürekkep — gövde */
  --accent-hover: #223a5c;
  --accent-soft: #e7ecf3;

  --mark: #a32e1e;             /* kırmızı mürekkep — imza / vurgu */
  --mark-hover: #85251a;
  --mark-soft: #f5e7e3;

  --code-bg: #14181f;
  --code-header: #0b0e13;
  --code-text: #f4f2ed;

  /* Tipografi */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", Consolas, monospace;

  /* Ölçü / boşluk düzeni */
  --content-width: 1180px;
  --sidebar-width: 300px;
  --col-gap: 3.5rem;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 27, 33, 0.06);
  --shadow-md: 0 10px 28px rgba(23, 27, 33, 0.10);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(23, 27, 33, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
::selection { background: var(--mark); color: #fff; }

.site-container {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.25rem);
}

a { color: var(--accent); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.fa-solid, .fa-regular, .fa-brands { line-height: 1; }

/* ===================================================
   ÜST BAŞLIK (HEADER & NAVİGASYON)
   =================================================== */
header.site-header {
  background: rgba(250, 249, 245, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1.35rem 0;
  margin-bottom: 3rem;
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.brand-title:hover { color: var(--accent); }

.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 0;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.hamburger-btn::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.05rem;
  content: "\f0c9";
}
.hamburger-btn.open::before { content: "\f00d"; }
.hamburger-btn:hover { border-color: var(--mark); color: var(--mark); background: var(--mark-soft); }

nav.top-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

nav.top-nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 3px;
  transition: color 0.15s;
  white-space: nowrap;
}
nav.top-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
nav.top-nav a:hover { color: var(--text); }
nav.top-nav a:hover::after { transform: scaleX(1); }

nav.top-nav a.active { color: var(--mark); font-weight: 600; }
nav.top-nav a.active::after { background: var(--mark); transform: scaleX(1); }

@media (max-width: 820px) {
  .hamburger-btn { display: inline-flex; }
  nav.top-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.25s ease, margin 0.32s ease;
  }
  nav.top-nav a {
    width: 100%;
    padding: 0.85rem 0.1rem;
    border-bottom: 1px solid var(--border);
  }
  nav.top-nav a::after { display: none; }
  nav.top-nav.active {
    max-height: 480px;
    opacity: 1;
    margin-top: 0.35rem;
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  border: none;
  font-size: 0;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background 0.2s;
  z-index: 59;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.05rem;
  content: "\f062";
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--mark); transform: translateY(-3px); }

/* ===================================================
   2 SÜTUNLU DÜZEN
   =================================================== */
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--col-gap);
  align-items: start;
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
}

.main-content { min-width: 0; width: 100%; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border);
}
.breadcrumbs a:first-child::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f015";
  margin-right: 0.4rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: 0.15s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.separator { color: var(--text-light); }
.breadcrumbs span.current { color: var(--text); font-weight: 600; }

/* ===================================================
   YAZI LİSTESİ (ANA SAYFA / KATEGORİ)
   =================================================== */
.post-list { display: flex; flex-direction: column; gap: 2.5rem; }

.post-card {
  position: relative;
  padding: 0 0 2.5rem 1.15rem;
  border-bottom: 1px solid var(--border);
  transition: transform 0.18s ease;
}
.post-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2rem; bottom: 2.7rem;
  width: 3px;
  background: var(--border);
  transition: background 0.18s ease;
}
.post-card:hover::before { background: var(--mark); }
.post-card:hover { transform: translateX(2px); }
.post-card:last-child { border-bottom: none; padding-bottom: 0; }

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-meta span:first-child::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f073";
  margin-right: 0.4rem;
  color: var(--text-light);
}
.post-meta a { color: var(--accent); text-decoration: none; font-weight: 600; }
.post-meta a:hover { color: var(--mark); }

.post-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}
.post-title a {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--mark), var(--mark));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.15s, background-size 0.25s ease;
}
.post-title a:hover { color: var(--mark); background-size: 100% 1px; }
.post-title a::after { content: " ∎"; opacity: 0; color: var(--mark); transition: opacity 0.2s ease; }
.post-title a:hover::after { opacity: 1; }

.post-excerpt { color: #333c48; font-size: 1.03rem; line-height: 1.7; }

/* ===================================================
   TEKİL YAZI & GÖRSEL / EMBED FORMATLARI
   =================================================== */
.article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.22;
  margin-top: 0.6rem;
  letter-spacing: -0.5px;
}

.article-body { font-size: 1.1rem; color: #1e2530; min-width: 0; }
.article-body p { margin-bottom: 1.5rem; }

.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  padding: 0.1rem 0.4rem 0 0;
  color: var(--mark);
}
.article-body > p:first-of-type::after { content: ""; display: table; clear: left; }

.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 2.75rem 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.2px;
  font-weight: 600;
}
.article-body h2 { padding-top: 2rem; border-top: 1px solid var(--border); }

blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.2rem 1.5rem 1.2rem 2.1rem;
  background: var(--bg-tint);
  border-left: 3px solid var(--mark);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #333c48;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.75;
  overflow: hidden;
}
blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.6rem;
  left: 0.35rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--mark);
  opacity: 0.15;
  font-style: normal;
  line-height: 1;
}
blockquote p { margin-bottom: 0 !important; }

.article-body ul, .article-body ol { margin: 1.5rem 0 1.5rem 1.75rem; color: #333c48; }
.article-body li { margin-bottom: 0.5rem; padding-left: 0.25rem; }

.table-container { width: 100%; overflow-x: auto; margin: 2rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg-tint);
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
}
table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: #333c48; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg-tint); }

hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
kbd {
  background: var(--bg-tint);
  border: 1px solid #cbd2dc;
  border-bottom: 2px solid #98a1ac;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.85em;
  font-family: var(--font-mono);
  color: var(--text);
}
mark { background: #f6dfa4; padding: 0.1rem 0.35rem; border-radius: 3px; }

/* GÖRSELLER VE HİZALAMA */
img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body img {
  box-shadow: var(--shadow-sm);
  display: block;
}

.article-body .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  max-width: 48%;
}
.article-body .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 48%;
}
.article-body .aligncenter {
  display: block;
  margin: 1.75rem auto;
  max-width: 100%;
}

/* KOD BLOKLARI */
.code-container { margin: 1.75rem 0; background: var(--code-bg); border-radius: var(--radius); overflow: hidden; max-width: 100%; min-width: 0; width: 100%; box-shadow: var(--shadow-md); }
.code-header { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.85rem; background: var(--code-header); border-bottom: 1px solid #1e293b; }
.code-badge { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; font-weight: 600; }
.copy-btn { background: #1e293b; border: 1px solid #334155; color: #f8fafc; font-family: var(--font-mono); font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 4px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.copied { background: #16a34a; border-color: #16a34a; }
.code-container pre { margin: 0; padding: 1.25rem; background: transparent; border: none; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.6; color: var(--code-text); tab-size: 2; white-space: pre; }
.code-container pre code { background: transparent; padding: 0; color: inherit; font-family: inherit; }
p code, li code { background: var(--accent-soft); color: var(--accent-hover); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.88em; border: 1px solid #dbe2ec; font-family: var(--font-mono); }

/* EMBED ELEMANLARI (YOUTUBE / TWITTER / INSTAGRAM) */
.embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-wrapper {
  margin: 1.75rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
}
.twitter-tweet, .instagram-media {
  margin: 0 auto !important;
  max-width: 550px !important;
  width: 100% !important;
}

/* PAYLAŞIM VE İŞLEM SATIRI */
.share-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.share-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.25rem;
}
.share-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 0.95rem;
}
.share-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ===================================================
   YORUM SİSTEMİ (NESTED)
   =================================================== */
.comments-section { margin-top: 4rem; padding-top: 2.5rem; border-top: 2px solid var(--border); }
.comments-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 2rem; }

.comment-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }

.comment-item {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.95rem;
}
.comment-item.depth-2 { margin-left: 2rem; border-left: 3px solid var(--accent); }
.comment-item.depth-3 { margin-left: 4rem; border-left: 3px solid var(--mark); }

.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; flex-wrap: wrap; gap: 0.4rem; }
.comment-author { font-weight: 700; color: var(--text); }
.admin-badge {
  background: var(--mark);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.admin-badge::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f005"; margin-right: 3px; }
.comment-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.comment-text { color: #333c48; line-height: 1.6; }
.reply-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0;
  transition: color 0.15s;
}
.reply-btn::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f3e5"; margin-right: 0.35rem; }
.reply-btn:hover { color: var(--mark); }

.comment-form-wrapper { background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.comment-form-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 1.2rem; }

/* ===================================================
   FORMLAR
   =================================================== */
.standard-form label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.standard-form input,
.standard-form select,
.standard-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: 0.2s;
}
.standard-form input:focus,
.standard-form select:focus,
.standard-form textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(46, 74, 115, 0.14);
}
.alert-success { background: #dcfce7; color: #166534; padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; border: 1px solid #bbf7d0; }
.alert-danger { background: var(--mark-soft); color: var(--mark-hover); padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; border: 1px solid #e7c3bd; }

/* ===================================================
   SIDEBAR
   =================================================== */
.sidebar { display: flex; flex-direction: column; gap: 2.5rem; min-width: 0; }
.widget { padding: 0; background: transparent; }
.widget-title {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.widget-title::before { content: "§ "; color: var(--text-light); }

.search-form { display: flex; gap: 0.5rem; }
.search-input { flex: 1; min-width: 0; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; font-family: var(--font-body); background: var(--bg-tint); color: var(--text); outline: none; }
.search-input:focus { border-color: var(--border-focus); background: #fff; box-shadow: 0 0 0 3px rgba(46, 74, 115, 0.14); }
.search-btn { background: var(--accent); color: #fff; border: none; padding: 0 1.05rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s; display: inline-flex; align-items: center; gap: 0.4rem; }
.search-btn::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f002"; }
.search-btn:hover { background: var(--accent-hover); }

.cat-list { list-style: none; }
.cat-list li { margin-bottom: 0.35rem; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.6rem; color: #334155; text-decoration: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; transition: background 0.15s, color 0.15s; }
.cat-list a:hover { background: var(--bg-tint); color: var(--accent); }
.cat-list a.active { background: var(--mark-soft); color: var(--mark); font-weight: 700; }
.cat-count { font-family: var(--font-mono); font-size: 0.78rem; background: #e4e0d6; color: var(--text-muted); padding: 2px 7px; border-radius: 10px; }
.cat-list a.active .cat-count { background: var(--mark); color: #fff; }

.widget-newsletter { background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; }
.widget-newsletter .widget-title { border-bottom: none; padding-bottom: 0; margin-bottom: 0.6rem; }
.newsletter-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.newsletter-form input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: #fff;
  color: var(--text);
}
.newsletter-form button {
  background: var(--mark);
  color: #fff;
  border: none;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background 0.15s;
}
.newsletter-form button::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f1d8"; }
.newsletter-form button:hover { background: var(--mark-hover); }

/* İÇ LİNK VE İLGİLİ İÇERİKLER */
.article-body a.internal-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: 0.15s;
}
.article-body a.internal-link:hover { color: var(--accent-hover); background: rgba(46, 74, 115, 0.08); border-radius: 3px; }

.related-posts-section { margin-top: 3.5rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.related-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); font-family: var(--font-display); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.related-card { background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: 0.2s; display: flex; flex-direction: column; justify-content: space-between; }
.related-card:hover { border-color: var(--accent); background: #fff; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; }
.related-card-title a { color: var(--text); text-decoration: none; }
.related-card-title a:hover { color: var(--accent); }
.related-card-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ===================================================
   BUTONLAR VE SAYFALAMA
   =================================================== */
.btn {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-danger { background: var(--mark); color: #fff; padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); text-decoration: none; font-size: 0.85rem; transition: background 0.15s; }
.btn-danger:hover { background: var(--mark-hover); }

.editor-toolbar { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; background: var(--bg-tint); padding: 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.editor-btn { background: #fff; border: 1px solid var(--border); padding: 0.3rem 0.6rem; border-radius: 4px; font-size: 0.8rem; font-family: var(--font-mono); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.editor-btn:hover { border-color: var(--accent); color: var(--accent); }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); gap: 1rem; }
.page-btn { display: inline-flex; align-items: center; padding: 0.65rem 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: 0.2s; }
.page-btn:hover:not(.disabled) { border-color: var(--mark); color: var(--mark); background: var(--bg-tint); }
.page-btn.disabled { color: #cbd2dc; border-color: #f0eee7; cursor: not-allowed; background: var(--bg-tint); }
.page-info { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

@media (max-width: 600px) {
  .pagination { flex-direction: column; gap: 1rem; }
  .page-btn { width: 100%; justify-content: center; }
  .comment-item.depth-2, .comment-item.depth-3 { margin-left: 1rem; }
}

/* ===================================================
   ADMIN PANELİ
   =================================================== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-sidebar { background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; height: fit-content; }
.admin-nav-list { list-style: none; }
.admin-nav-list li { margin-bottom: 0.4rem; }
.admin-nav-list a { display: block; padding: 0.6rem 0.8rem; color: #334155; text-decoration: none; font-weight: 500; border-radius: var(--radius-sm); font-size: 0.95rem; transition: background 0.15s, color 0.15s; }
.admin-nav-list a:hover { background: #e9e6de; color: var(--accent); }
.admin-nav-list a.active { background: var(--text); color: #fff; font-weight: 700; }

.admin-main { min-width: 0; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.74rem; color: var(--text-muted); background: var(--bg-tint); }
.admin-table th, .admin-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; }

/* ===================================================
   ALT BİLGİ (FOOTER)
   =================================================== */
footer.site-footer { margin-top: 5rem; border-top: 1px solid var(--border); padding: 2.75rem 0; color: var(--text-muted); background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.footer-copy { font-family: var(--font-mono); font-size: 0.85rem; }
.footer-copy::after { content: " \2222"; color: var(--mark); }

@media (max-width: 768px) {
  .article-body .alignleft, .article-body .alignright { float: none; margin: 1.25rem auto; max-width: 100%; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ===================================================
   YAZDIRMA (PRINT) STİLLERİ
   =================================================== */
@media print {
  /* Sayfa dışı arayüz elemanlarını tamamen gizle */
  header.site-header,
  footer.site-footer,
  aside.sidebar,
  aside.admin-sidebar,
  .breadcrumbs,
  .share-row,
  .related-posts-section,
  .comments-section,
  .pagination,
  .back-to-top,
  .hamburger-btn,
  .copy-btn,
  .code-header .copy-btn {
    display: none !important;
  }

  /* Video, ses ve embed içeriklerini gizle */
  .embed-container,
  .embed-wrapper,
  .video-container,
  .audio-container,
  iframe,
  audio,
  video {
    display: none !important;
  }

  /* Sayfa yapısını temizle ve tam genişliğe yay */
  body {
    background: #fff !important;
    color: #000 !important;
    background-image: none !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  .site-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .layout-grid {
    display: block !important;
    gap: 0 !important;
  }

  .main-content, article {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .article-header {
    border-bottom: 1px solid #ccc !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
  }

  .article-title {
    font-size: 20pt !important;
    color: #000 !important;
  }

  /* İçerik elemanlarının görünürlüğünü ve baskı kalitesini koru */
  .article-body {
    color: #000 !important;
    font-size: 11pt !important;
  }

  .article-body p,
  .article-body h2,
  .article-body h3,
  .article-body h4,
  .article-body ul,
  .article-body ol,
  .article-body table,
  .article-body blockquote {
    color: #000 !important;
  }

  /* Kod bloklarını yazıcı için okunabilir kıl */
  .code-container {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .code-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
  }

  .code-badge {
    color: #334155 !important;
  }

  .code-container pre {
    color: #0f172a !important;
    background: transparent !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }

  .code-container pre code {
    color: #0f172a !important;
  }

  /* Resimleri koru ve sayfa taşmasını önle */
  .article-body img {
    box-shadow: none !important;
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Matematik bloklarını koru */
  .mathm,
  mjx-container[jax="SVG"] {
    background: transparent !important;
    color: #000 !important;
    page-break-inside: avoid;
  }

  /* Linklerin alt çizgilerini ve gereksiz URL uzantılarını temizle */
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
}