/* ============================================================
   DarkBlog Pro — Ana Stil Dosyası
   Sürüm: 1.0.0
   ============================================================ */

/* ─── 1. CSS Değişkenleri (Design Tokens) ──────────────────── */
:root {
  /* Renkler */
  --clr-bg:          #0f1117;
  --clr-bg-2:        #161b27;
  --clr-bg-3:        #1e2535;
  --clr-surface:     #1a2030;
  --clr-border:      #2a3347;
  --clr-text:        #e2e8f0;
  --clr-text-muted:  #8892a4;
  --clr-text-faint:  #4a5568;
  --clr-accent:      #6c63ff;
  --clr-accent-hover:#8b85ff;
  --clr-accent-glow: rgba(108, 99, 255, 0.25);
  --clr-success:     #48bb78;
  --clr-warning:     #ed8936;
  --clr-error:       #fc8181;
  --clr-white:       #ffffff;

  /* Tipografi */
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:  'Merriweather', Georgia, 'Times New Roman', serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  /* Aralıklar */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Kenar yuvarlaklığı */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Gölgeler */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg:  0 10px 25px rgba(0,0,0,0.5), 0 4px 10px rgba(0,0,0,0.3);
  --shadow-xl:  0 20px 40px rgba(0,0,0,0.6);
  --shadow-glow:0 0 20px var(--clr-accent-glow);

  /* Geçişler */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max: 1200px;
  --content-max:   800px;
  --sidebar-width: 320px;
  --header-height: 70px;
}

/* ─── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

a:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── 3. Erişilebilirlik ───────────────────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--clr-accent);
  color: var(--clr-white);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus { top: 0; }

/* ─── 4. Layout ────────────────────────────────────────────── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.main-content-inner {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-12);
  padding-block: var(--space-12);
  align-items: start;
}

.primary-content {
  min-width: 0; /* Grid overflow önleme */
}

.site-main {
  flex: 1;
}

/* ─── 5. Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

/* Logo / Site Adı */
.site-branding {
  flex-shrink: 0;
}

.site-title-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--clr-white) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-description {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  line-height: 1;
}

.custom-logo {
  max-height: 44px;
  width: auto;
}

/* Navigasyon */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
  color: var(--clr-white);
  background-color: var(--clr-bg-3);
}

/* Dropdown menü */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 200px;
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 200;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  border-radius: 0;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--clr-border);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.nav-toggle:hover { background: var(--clr-bg-3); }

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--clr-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Header Aksiyonlar */
.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--clr-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.search-toggle:hover {
  color: var(--clr-white);
  background: var(--clr-bg-3);
}

/* Arama Paneli */
.header-search-panel {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--clr-border);
  background-color: var(--clr-bg-2);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-search-panel .search-form {
  display: flex;
  gap: var(--space-3);
}

.header-search-panel .search-field {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.header-search-panel .search-field:focus {
  outline: none;
  border-color: var(--clr-accent);
}

.header-search-panel .search-submit {
  padding: var(--space-3) var(--space-6);
  background: var(--clr-accent);
  color: var(--clr-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.header-search-panel .search-submit:hover {
  background: var(--clr-accent-hover);
  box-shadow: var(--shadow-glow);
}

/* ─── 6. Yazı Kartları ─────────────────────────────────────── */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.post-card {
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent);
}

/* Liste düzeni: yatay kart */
.posts-list .post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.posts-list .post-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.posts-list .post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.04);
}

/* Izgara düzeni: dikey kart */
.posts-grid .post-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.posts-grid .post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-card-category a {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  transition: color var(--transition-fast);
}

.post-card-category a:hover { color: var(--clr-accent-hover); }

.post-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
}

.post-card-title a {
  color: var(--clr-white);
  transition: color var(--transition-fast);
}

.post-card-title a:hover { color: var(--clr-accent); }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.meta-separator { color: var(--clr-text-faint); }

.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
}

/* ─── 7. Tekil Yazı ────────────────────────────────────────── */
.single-post-article {
  max-width: var(--content-max);
}

.single-post-header {
  margin-bottom: var(--space-8);
}

.single-post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.cat-link {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  background: var(--clr-accent-glow);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.cat-link:hover {
  background: rgba(108,99,255,0.35);
  border-color: var(--clr-accent);
  color: var(--clr-accent-hover);
}

.single-post-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--clr-white);
  margin-bottom: var(--space-6);
}

.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.meta-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.meta-author a { color: var(--clr-text-muted); }
.meta-author a:hover { color: var(--clr-accent); }

.meta-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-border);
}

.single-post-thumbnail {
  margin-bottom: var(--space-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.single-post-thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.single-post-thumbnail figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  text-align: center;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}

/* ─── 8. İçerik Tipografisi ────────────────────────────────── */
.entry-content {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--clr-text);
}

.entry-content > * + * { margin-top: var(--space-6); }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-sans);
  color: var(--clr-white);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.entry-content h2 { font-size: var(--text-2xl); }
.entry-content h3 { font-size: var(--text-xl); }
.entry-content h4 { font-size: var(--text-lg); }

.entry-content a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(108,99,255,0.4);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.entry-content a:hover {
  color: var(--clr-accent-hover);
  text-decoration-color: var(--clr-accent-hover);
}

.entry-content ul,
.entry-content ol {
  padding-left: var(--space-6);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li + li { margin-top: var(--space-2); }

.entry-content blockquote {
  position: relative;
  padding: var(--space-6) var(--space-8);
  margin-block: var(--space-8);
  background: var(--clr-surface);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--clr-text-muted);
}

.entry-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-6);
  font-size: 4rem;
  color: var(--clr-accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 2px 6px;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: #e879f9;
}

.entry-content pre {
  padding: var(--space-6);
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  tab-size: 2;
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--clr-text);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

.entry-content th,
.entry-content td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--clr-border);
  text-align: left;
}

.entry-content th {
  background: var(--clr-bg-3);
  color: var(--clr-white);
  font-weight: 600;
}

.entry-content tr:nth-child(even) td {
  background: var(--clr-surface);
}

.entry-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin-block: var(--space-10);
}

/* ─── 9. Yazı Footer (etiketler) ───────────────────────────── */
.single-post-footer {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--clr-border);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.tags-label {
  color: var(--clr-text-muted);
  font-weight: 500;
}

.post-tags a {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-muted);
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
}

.post-tags a:hover {
  background: var(--clr-accent-glow);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ─── 10. Yazar Kutusu ─────────────────────────────────────── */
.author-box {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  margin-top: var(--space-10);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
}

.author-box-avatar .avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: var(--radius-full);
  border: 3px solid var(--clr-accent);
  flex-shrink: 0;
}

.author-box-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.author-box-name a {
  color: var(--clr-white);
}

.author-box-name a:hover { color: var(--clr-accent); }

.author-box-bio {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
}

/* ─── 11. Yazı Navigasyonu ─────────────────────────────────── */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--clr-border);
}

.nav-previous,
.nav-next {
  padding: var(--space-5) var(--space-6);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-glow);
}

.nav-next { text-align: right; }

.nav-subtitle {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-faint);
  margin-bottom: var(--space-2);
}

.nav-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text);
  line-height: var(--leading-snug);
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title { color: var(--clr-accent); }

/* ─── 12. İlgili Yazılar ───────────────────────────────────── */
.related-posts {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--clr-border);
}

.related-posts-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-6);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.related-posts-grid .post-card {
  font-size: var(--text-sm);
}

.related-posts-grid .post-card-title {
  font-size: var(--text-base);
}

/* ─── 13. Yorumlar ─────────────────────────────────────────── */
.comments-area {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--clr-border);
}

.comments-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-6);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.comment-item { list-style: none; }

.comment-body {
  padding: var(--space-6);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.comment-author-avatar .avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-border);
}

.comment-author-name {
  font-weight: 600;
  color: var(--clr-white);
  font-size: var(--text-sm);
}

.comment-date {
  display: block;
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  margin-top: 2px;
}

.comment-content {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
}

.reply a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Yorum Formu */
.comment-respond {
  margin-top: var(--space-10);
}

.comment-reply-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-6);
}

.comment-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
}

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

.comment-form .form-submit .submit {
  padding: var(--space-3) var(--space-8);
  background: var(--clr-accent);
  color: var(--clr-white);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form .form-submit .submit:hover {
  background: var(--clr-accent-hover);
  box-shadow: var(--shadow-glow);
}

/* ─── 14. Sayfalama ────────────────────────────────────────── */
.pagination {
  margin-top: var(--space-10);
}

.pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  justify-content: center;
}

.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--space-3);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination .page-numbers li a:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-glow);
}

.pagination .page-numbers li .current {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
}

/* ─── 15. Kenar Çubuğu ─────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.widget {
  padding: var(--space-6);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
}

.widget-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--clr-border);
}

.widget ul li {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--clr-border);
  font-size: var(--text-sm);
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.widget ul li a:hover { color: var(--clr-accent); }

/* ─── 16. Footer ───────────────────────────────────────────── */
.site-footer {
  background-color: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  margin-top: auto;
}

.footer-widgets {
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--clr-border);
}

.footer-widgets-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

.footer-widget-area .widget {
  background: none;
  border: none;
  padding: 0;
}

.footer-bottom {
  padding-block: var(--space-6);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.footer-copyright a {
  color: var(--clr-text-muted);
}

.footer-copyright a:hover { color: var(--clr-accent); }

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
}

.footer-menu a {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.footer-menu a:hover { color: var(--clr-accent); }

/* Sosyal Medya Linkleri */
.social-links {
  display: flex;
  gap: var(--space-3);
  list-style: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-muted);
  transition: all var(--transition-fast);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

.social-link:hover {
  background-color: var(--clr-accent-glow);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* SVG ikonlar (CSS mask kullanımı) */
.icon-twitter  { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.259 5.63zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") no-repeat center / 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.259 5.63zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") no-repeat center / 16px; background-color: currentColor; }
.icon-github   { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z'/%3E%3C/svg%3E") no-repeat center / 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z'/%3E%3C/svg%3E") no-repeat center / 16px; background-color: currentColor; }
.icon-linkedin { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E") no-repeat center / 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E") no-repeat center / 16px; background-color: currentColor; }
.icon-instagram { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E") no-repeat center / 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E") no-repeat center / 16px; background-color: currentColor; }
.icon-rss { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19.01 7.38 20 6.18 20C4.98 20 4 19.01 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1z'/%3E%3C/svg%3E") no-repeat center / 16px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19.01 7.38 20 6.18 20C4.98 20 4 19.01 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1z'/%3E%3C/svg%3E") no-repeat center / 16px; background-color: currentColor; }

/* ─── 17. Başa Dön Butonu ──────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--clr-accent);
  color: var(--clr-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: background var(--transition-fast), transform var(--transition-fast), opacity var(--transition-normal);
  opacity: 0;
}

.back-to-top:not([hidden]) {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--clr-accent-hover);
  transform: translateY(-3px);
}

/* ─── 18. Arama Sayfası ────────────────────────────────────── */
.search-header,
.archive-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--clr-border);
}

.search-title,
.archive-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-2);
}

.search-description,
.archive-description {
  color: var(--clr-text-muted);
  font-size: var(--text-base);
}

/* ─── 19. 404 Sayfası ──────────────────────────────────────── */
.error-404 {
  text-align: center;
  padding-block: var(--space-20);
}

.error-404-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--clr-accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
}

.error-404-title {
  font-size: var(--text-2xl);
  color: var(--clr-white);
  margin-bottom: var(--space-4);
}

.error-404-text {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
}

/* ─── 20. Responsive Tasarım ───────────────────────────────── */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 280px;
  }

  .main-content-inner {
    gap: var(--space-8);
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet küçük: 768px */
@media (max-width: 768px) {
  .main-content-inner {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .posts-list .post-card {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-widgets-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Hamburger aktif */
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--clr-bg);
    padding: var(--space-6);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    z-index: 99;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .nav-menu a {
    font-size: var(--text-lg);
    padding: var(--space-4);
  }

  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--clr-bg-3);
    border: none;
    border-radius: var(--radius-md);
    margin-top: var(--space-1);
    margin-left: var(--space-4);
  }

  .single-post-title {
    font-size: var(--text-2xl);
  }
}

/* Mobil: 480px */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding-inline: var(--space-4);
  }

  .main-content-inner {
    padding-block: var(--space-8);
  }

  .post-card-content {
    padding: var(--space-4);
  }

  .single-post-header {
    margin-bottom: var(--space-6);
  }

  .back-to-top {
    bottom: var(--space-5);
    right: var(--space-5);
  }
}

/* ─── 21. Print Stilleri ───────────────────────────────────── */
@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .post-navigation,
  .related-posts,
  .comments-area,
  .back-to-top {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .main-content-inner {
    grid-template-columns: 1fr;
  }

  a { color: black; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ─── 22. Animasyonlar ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card {
  animation: fadeInUp 0.4s ease both;
}

.post-card:nth-child(2) { animation-delay: 0.05s; }
.post-card:nth-child(3) { animation-delay: 0.1s; }
.post-card:nth-child(4) { animation-delay: 0.15s; }
.post-card:nth-child(5) { animation-delay: 0.2s; }

/* Reduced motion desteği */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
