/* ============================================================
   SADE — Modern, minimal, light blog platform
   Design tokens & base
   ============================================================ */

:root {
  /* Palette — warm stone neutrals + terracotta accent (light theme) */
  --bg: #fafaf8;
  --bg-soft: #f4f2ee;
  --surface: #ffffff;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #a8a29e;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --accent: #e4572e;
  --accent-dark: #c94b27;
  --accent-soft: #fcebe3;

  /* Geometry */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05), 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 6px 18px -6px rgba(28, 25, 23, 0.10), 0 2px 6px -3px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(28, 25, 23, 0.16);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", "Palatino Linotype", serif;

  --header-h: 66px;
  --container: 1140px;
  --prose: 700px;

  /* Safe areas (notch / home indicator / rounded corners) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Bottom app bar (mobile) */
  --bottom-nav-h: 58px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 18px);
  scroll-padding-bottom: calc(var(--bottom-nav-h) + 24px);
  overflow-x: hidden;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

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

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

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

input,
textarea {
  font: inherit;
}

ul[class],
ol[class] {
  list-style: none;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section {
  padding-block: 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s;
}
.section-link:hover {
  color: var(--accent);
}
.section-link svg {
  vertical-align: -2px;
  margin-left: 4px;
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(228, 87, 46, 0.55);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text-3);
  background: var(--bg-soft);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.chip.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* Category tag on cards */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ============================================================
   Header — sticky, blur, hide-on-scroll-down
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: transparent;
  transition: transform 0.32s ease, background 0.32s ease, box-shadow 0.32s ease,
    border-color 0.32s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border);
}
.site-header.is-hidden {
  transform: translateY(-102%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.logo .dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  margin-left: 3px;
}
.logo-mark {
  display: inline-block;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--text);
  margin-right: 9px;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
}
.main-nav li {
  flex: none;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.main-nav a.active {
  color: var(--text);
  font-weight: 600;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}
.icon-btn:hover {
  color: var(--accent-dark);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.35);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  z-index: 80;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 26px;
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer .drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.drawer nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 12px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  border-radius: 12px;
}
.drawer nav a:hover,
.drawer nav a.active {
  background: var(--bg-soft);
}
.drawer nav a span {
  color: var(--text-3);
  font-size: 13px;
}
.drawer .btn {
  margin-top: auto;
  width: 100%;
}

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px) 0 24px;
}
/* Dekoratif degrade arka plan */
.hero::before {
  content: "";
  position: absolute;
  top: -190px;
  right: -140px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 87, 46, 0.11), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -130px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 25, 23, 0.055), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy {
  max-width: 640px;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, var(--accent) 10%, #f0883c 55%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero p.sub {
  margin-top: 20px;
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 560px;
}
.hero-meta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* İstatistik şeridi */
.hero-stats {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 40px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-stat strong {
  display: block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card .card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
}
.card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body .tag {
  align-self: flex-start;
}
.card-title {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.card-title a:hover {
  color: var(--accent-dark);
}
.card-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
}
.card-meta svg {
  opacity: 0.7;
}
.card-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* Featured post */
.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.featured-card .fc-media {
  position: relative;
  min-height: 320px;
}
.featured-card .fc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-card .fc-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
}
.fc-body {
  padding: clamp(26px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.fc-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.fc-body h2 a:hover {
  color: var(--accent-dark);
}
.fc-body p {
  color: var(--text-2);
  line-height: 1.7;
}
.fc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Category chips row */
.chips-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================================
   Newsletter band
   ============================================================ */
.newsletter {
  margin-block: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 160% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--surface);
  padding: clamp(30px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.newsletter p {
  margin-top: 10px;
  color: var(--text-2);
  max-width: 460px;
}
.nl-form {
  display: flex;
  gap: 10px;
}
.nl-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nl-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nl-form input[type="email"].invalid {
  border-color: #dc2626;
}
.nl-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
}
.nl-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14.5px;
}
.nl-success.show {
  display: flex;
}

/* ============================================================
   Footer — tek satır minimal
   ============================================================ */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding-block: 20px;
}
.footer-single .f-copy {
  font-size: 13.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.footer-single .f-copy a {
  color: var(--text-2);
  font-weight: 600;
}
.footer-single .f-copy a:hover {
  color: var(--accent-dark);
}
.footer-mini {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-mini a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s;
}
.footer-mini a:hover {
  color: var(--accent-dark);
}
.footer-social {
  display: flex;
  gap: 6px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: all .2s;
}
.footer-social a:hover {
  color: var(--accent-dark);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .footer-single {
    flex-direction: column;
    gap: 12px;
    padding-block: 24px;
    text-align: center;
  }
  .footer-mini {
    gap: 16px;
  }
}

/* ============================================================
   Post page
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f2a65a);
  transition: width 0.08s linear;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
  padding-top: 30px;
}
.breadcrumb a:hover {
  color: var(--accent-dark);
}
.breadcrumb .sep {
  color: var(--border-strong);
}

.post-header {
  max-width: var(--prose);
  margin-inline: auto;
  padding-top: 28px;
}
.post-header h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.post-header .lead {
  margin-top: 18px;
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.7;
  color: var(--text-2);
}
.post-meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-2);
}
.post-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
.avatar.accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}
.post-cover {
  margin-top: 30px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-cover figcaption {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  padding: 10px;
  background: var(--surface);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--prose)) 240px;
  gap: 48px;
  max-width: calc(var(--prose) + 240px + 48px);
  margin-inline: auto;
  padding-top: 44px;
  align-items: start;
}

/* TOC */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}
.toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.toc ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}
.toc a {
  position: relative;
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-2);
  padding: 7px 12px 7px 26px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.toc a::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background 0.15s, transform 0.15s;
}
.toc a:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.toc a:hover::before {
  background: var(--text-3);
}
.toc a.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 600;
}
.toc a.active::before {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.4);
}
.toc a.toc-h3 {
  padding-left: 40px;
  font-size: 13px;
}
.toc a.toc-h3::before {
  left: 22px;
  width: 4px;
  height: 4px;
}
.toc-mobile {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 26px;
}
.toc-mobile summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc-mobile summary::-webkit-details-marker {
  display: none;
}
.toc-mobile .caret {
  transition: transform 0.2s;
}
.toc-mobile[open] .caret {
  transform: rotate(180deg);
}
.toc-mobile ul {
  padding: 0 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}
.toc-mobile a {
  position: relative;
  padding: 8px 6px 8px 26px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text-2);
  border-radius: 8px;
}
.toc-mobile a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--border-strong);
}
.toc-mobile a.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 600;
}
.toc-mobile a.active::before {
  background: var(--accent);
}

/* Prose */
.prose {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.85;
  color: #292524;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-sans);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2 {
  font-size: 25px;
  font-weight: 800;
  margin-top: 2em;
  padding-top: 0.4em;
}
.prose h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 1.8em;
}
.prose h4 {
  font-size: 17.5px;
  font-weight: 700;
  margin-top: 1.6em;
}
.prose p {
  margin-top: 1.1em;
}
.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: rgba(228, 87, 46, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose strong {
  font-weight: 700;
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin-top: 1.1em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-top: 0.45em;
  padding-left: 0.25em;
}
.prose li::marker {
  color: var(--accent);
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #44403c;
  margin-block: 1.6em;
}
.prose blockquote p {
  margin: 0;
}
.prose img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-block: 1.6em;
}
.prose figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: -1.2em;
  margin-bottom: 1.6em;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 2.4em;
}
.prose code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--accent-dark);
}
.prose pre {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  background: #1c1917;
  color: #e7e5e4;
  border-radius: var(--radius-sm);
  padding: 22px;
  overflow-x: auto;
  margin-block: 1.6em;
}
.prose pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}
.prose .note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-2);
  margin-block: 1.8em;
  border-left: 3px solid var(--border-strong);
}

/* Tags after post */
.post-tags {
  margin-top: 36px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-tags a {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}
.post-tags a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Author card & share */
.post-footer-box {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.post-footer-box .avatar {
  width: 52px;
  height: 52px;
  font-size: 16px;
  flex: none;
}
.author-info h3 {
  font-size: 16.5px;
  font-weight: 700;
}
.author-info p {
  margin-top: 5px;
  font-size: 14.5px;
  color: var(--text-2);
}
.author-info a {
  display: inline-block;
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-dark);
}
.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.share-row .share-label {
  font-size: 13.5px;
  color: var(--text-3);
  font-weight: 600;
}
.share-btns {
  display: flex;
  gap: 8px;
}
.share-btns button,
.share-btns a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.2s;
}
.share-btns button:hover,
.share-btns a:hover {
  border-color: var(--border-strong);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

/* Prev / Next */
.pn-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pn-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 22px;
  transition: all 0.2s;
  display: block;
}
.pn-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pn-card.next {
  text-align: right;
}
.pn-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pn-card strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
}

/* ============================================================
   Archive page
   ============================================================ */
.archive-head {
  padding: 48px 0 8px;
  max-width: 720px;
}
.archive-head h1 {
  margin-top: 16px;
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.archive-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 17px;
}
.archive-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(250, 250, 248, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 28px;
}
.toolbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
}
.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.archive-count {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.archive-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-grid {
  padding-top: 40px;
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
}
.empty-state svg {
  margin: 0 auto 16px;
  opacity: 0.5;
}
.empty-state p {
  font-size: 15.5px;
}

/* ============================================================
   About & contact pages
   ============================================================ */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 20px;
}
.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-hero .lead {
  margin-top: 16px;
  max-width: 640px;
  font-size: 17.5px;
  color: var(--text-2);
  line-height: 1.7;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.contact-card .value-icon {
  margin: 0;
  flex: none;
}
.contact-card h3 {
  font-size: 15.5px;
  font-weight: 700;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 3px;
}
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
}
.form-card label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  padding: 12px 15px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 18px;
}
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}
.form-card textarea {
  min-height: 140px;
  resize: vertical;
}
.form-card .btn {
  width: 100%;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show {
  display: block;
}
.form-success .value-icon {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.form-success h3 {
  font-size: 19px;
  font-weight: 700;
}
.form-success p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

/* ============================================================
   Misc components
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1150px) {
  .main-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--prose);
  }
  .toc {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-actions .btn {
    display: none;
  }
  .burger {
    display: flex;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card .fc-media {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }
  .section {
    padding-block: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pn-grid {
    grid-template-columns: 1fr;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .nl-form {
    flex-direction: column;
  }
  .nl-form .btn {
    width: 100%;
  }
  .archive-toolbar {
    position: static;
  }
  .archive-count {
    margin-left: 0;
    width: 100%;
  }
  .post-footer-box {
    flex-direction: column;
  }
  .share-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   PWA & UYGULAMA SEVİYESİ MOBİL DENEYİM
   ============================================================ */

/* ---------- Başlık: güvenli alan + standalone mod ---------- */
.site-header {
  padding-top: var(--safe-top);
  height: calc(var(--header-h) + var(--safe-top));
}
@media (display-mode: standalone), (display-mode: minimal-ui) {
  .site-header {
    background: rgba(250, 250, 248, 0.92);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom-color: var(--border);
  }
  .archive-toolbar {
    top: calc(var(--header-h) + var(--safe-top));
  }
}

/* ---------- Alt uygulama çubuğu (bottom tab bar) ---------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(250, 250, 248, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid var(--border);
  padding: 6px 10px calc(6px + var(--safe-bottom));
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  border-radius: 14px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  -webkit-user-select: none;
  user-select: none;
}
.bottom-nav a svg {
  transition: transform 0.18s ease;
}
.bottom-nav a:active {
  transform: scale(0.94);
}
.bottom-nav a.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.bottom-nav a.active svg {
  transform: translateY(-1px) scale(1.06);
}
@media (max-width: 900px) {
  .bottom-nav {
    display: grid;
  }
  body {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  }
  .toast {
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 18px);
  }
  .back-to-top {
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
  }
  .drawer {
    padding-bottom: calc(26px + var(--safe-bottom));
  }
}

/* ---------- Kurulum katmanı (install sheet) ---------- */
.install-sheet {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 14px);
  transform: translateX(-50%) translateY(16px);
  z-index: 96;
  width: min(420px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: none;
  gap: 14px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.install-sheet.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.install-sheet img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}
.install-sheet .is-body {
  flex: 1;
  min-width: 0;
}
.install-sheet .is-body strong {
  display: block;
  font-size: 14.5px;
}
.install-sheet .is-body span {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.install-sheet .is-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: var(--bg-soft);
}
.install-sheet .is-close:hover {
  color: var(--text);
}
.install-sheet .btn {
  flex: none;
}
@media (max-width: 900px) {
  .install-sheet {
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 10px);
  }
}
@media (display-mode: standalone) {
  .install-sheet {
    display: none !important;
  }
}

/* ---------- Çevrimdışı şeridi ---------- */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: #1c1917;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px calc(8px + var(--safe-top));
  transform: translateY(-110%);
  transition: transform 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.offline-banner.show {
  transform: translateY(0);
}

/* ---------- Dokunmatik cihazlar: aktif geri bildirim ---------- */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .card:active {
    transform: scale(0.985);
  }
  .card:hover .card-media img {
    transform: none;
  }
  .featured-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .featured-card:active {
    transform: scale(0.99);
  }
  .btn:active,
  .chip:active,
  .icon-btn:active {
    transform: scale(0.96);
  }
  .site-header.is-hidden {
    transform: translateY(calc(-102% - var(--safe-top)));
  }
  .main-nav a,
  .toc a,
  .pn-card,
  .value-card,
  .contact-card {
    -webkit-tap-highlight-color: rgba(228, 87, 46, 0.12);
  }
}

/* ---------- Tipografi iyileştirmeleri ---------- */
h1, h2, h3, .section-title, .fc-body h2, .post-header h1, .page-hero h1, .archive-head h1 {
  text-wrap: balance;
  font-optical-sizing: auto;
}
.prose {
  overflow-wrap: break-word;
}
.prose a {
  overflow-wrap: break-word;
}
.card-title {
  overflow-wrap: break-word;
}

/* ---------- Performans: ekran dışı bölümler ---------- */
.section {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
.newsletter,
.footer-grid {
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}
@media (prefers-reduced-motion: reduce) {
  .section,
  .newsletter,
  .footer-grid {
    content-visibility: visible;
  }
}

/* ---------- Sayfa giriş animasyonu ---------- */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
main {
  animation: pageEnter 0.45s ease both;
}
@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

/* ---------- Kaydırma çubuğu (desktop ince) ---------- */
@media (hover: hover) and (pointer: fine) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
  }
  *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  *::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
    border: 3px solid var(--bg);
  }
  *::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* ---------- Kategori çipleri: mobilde kaydırılabilir (scroll snap) ---------- */
/* Mobilde çipler satır satır sarılır — taşma/kesilme asla olmaz */
@media (hover: none), (max-width: 640px) {
  .chips-row,
  .archive-chips {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* ---------- iOS: form odaklanınca otomatik zoom engeli ---------- */
@media (max-width: 640px) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ============================================================
   HER EKRAN BOYUTUNA GÜVENLİ TASARIM (safe-by-default)
   ============================================================ */

/* 320px — en küçük telefonlar */
@media (max-width: 360px) {
  :root {
    --header-h: 56px;
  }
  .hero {
    padding-top: 26px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .post-grid {
    gap: 20px;
  }
  .card-body {
    padding: 18px 18px 20px;
  }
  .newsletter {
    padding: 26px 20px;
  }
  .btn {
    padding: 10px 16px;
  }
  .footer-grid {
    gap: 24px;
  }
}

/* 361-640px — standart telefonlar */
@media (max-width: 640px) {
  .hero-meta {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-meta .btn {
    width: 100%;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .post-meta {
    font-size: 13px;
    gap: 8px;
  }
  .prose {
    font-size: 17px;
    line-height: 1.8;
  }
  .post-layout {
    padding-top: 28px;
    gap: 28px;
  }
  .value-card,
  .contact-card,
  .form-card,
  .post-footer-box {
    padding: 20px;
  }
  .share-btns {
    width: 100%;
  }
  .share-btn-text {
    display: none;
  }
  .share-btns button,
  .share-btns a {
    flex: 1;
    justify-content: center;
    padding-inline: 0;
  }
  .footer-bottom {
    padding-bottom: calc(20px + var(--safe-bottom));
  }
}

/* 641-900px — geniş telefon / küçük tablet */
@media (min-width: 641px) and (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 901-1280px — tablet / küçük dizüstü */
@media (min-width: 901px) and (max-width: 1280px) {
  .container {
    padding-inline: 28px;
  }
}

/* Yatay (landscape) telefonlar — kısa yükseklik */
@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --header-h: 54px;
  }
  .hero {
    padding-top: 20px;
  }
  .hero h1 {
    font-size: clamp(28px, 5vw, 40px);
  }
  .hero p.sub {
    font-size: 15px;
    max-width: 560px;
  }
  .hero-meta {
    margin-top: 16px;
  }
  .section {
    padding-block: 32px;
  }
  .newsletter {
    padding: 26px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bottom-nav a span {
    display: none;
  }
  .bottom-nav a {
    font-size: 0;
  }
  .bottom-nav a svg {
    transform: scale(1.15);
  }
  .bottom-nav {
    padding-top: 4px;
  }
  .post-cover {
    margin-top: 20px;
  }
  .post-layout {
    padding-top: 24px;
  }
}

/* Büyük ekranlar — içerik merkezde, ferah */
@media (min-width: 1600px) {
  :root {
    --container: 1240px;
    --prose: 740px;
  }
  .post-layout {
    max-width: 1100px;
  }
}

/* Ultra geniş (4K) — aşırı genişlemeyi sınırla */
@media (min-width: 2200px) {
  :root {
    --container: 1320px;
  }
}

/* ---------- Dokunmatik hedef boyutu (en az 44px) ---------- */
@media (pointer: coarse) {
  .main-nav a,
  .footer-col a,
  .toc a,
  .breadcrumb a {
    padding-block: 10px;
  }
  .chip {
    min-height: 40px;
    padding-inline: 16px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  .burger {
    width: 44px;
    height: 44px;
  }
  .share-btns button,
  .share-btns a {
    min-height: 44px;
  }
  .card-media {
    min-height: 120px;
  }
}

/* ---------- Hero responsive ---------- */
@media (max-width: 640px) {
  .hero {
    padding-top: 26px;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
  .hero-stats {
    gap: 20px;
    padding-top: 20px;
  }
}

/* ============================================================
   MARQUEE — sonsuz kayan şerit
   ============================================================ */
.marquee {
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding-block: 13px;
  margin-block: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  user-select: none;
  -webkit-user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  /* CSS fallback (GSAP yüklenmezse) — çift içerik, -50% kaydırma = kesintisiz döngü */
  animation: marqueeMove 26s linear infinite;
}
.marquee-content {
  display: flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
}
.marquee-content span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-2);
  padding: 0 16px;
}
.marquee-content i {
  font-style: normal;
  color: var(--accent);
  font-size: 13px;
}
@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}
/* GSAP aktifken CSS animasyonu kapatılır (çift animasyon olmasın) */
html.gsap-ready .marquee-track {
  animation: none;
}
/* GSAP aktifken .reveal transition'ları kapatılır (gsap yönetir) */
html.gsap-ready .reveal {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
}

/* ============================================================
   Reviews — yazı sayfası yorum bölümü (minimal)
   ============================================================ */
.reviews {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.reviews-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.reviews-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.reviews-summary .avg { font-size: 14px; font-weight: 700; color: var(--text); }
.reviews-summary .stars { color: #f2a65a; letter-spacing: 1px; font-size: 12px; }
.reviews-summary .stars .off { color: var(--border); }

/* Scroll kutusu — çerçeve ve scrollbar GÖRÜNMEZ, içeride kayar */
.reviews-list,
#reviewsList {
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;           /* Firefox: scrollbar alanı yok */
  -ms-overflow-style: none;
}
.reviews-list::-webkit-scrollbar,
#reviewsList::-webkit-scrollbar {
  display: none;                   /* Chrome/Safari: scrollbar + alanı yok */
  width: 0;
  height: 0;
}

/* Yorum — düz tipografik satır, çerçevesiz */
.review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.review-item:last-of-type { border-bottom: none; }
.review-card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.review-card .rv-head { display: flex; align-items: center; gap: 10px; }
.review-card .rv-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 11px;
}
.rv-user { flex: 1; min-width: 0; }
.rv-user strong { font-size: 13.5px; font-weight: 700; }
.rv-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: var(--text-3);
  margin-left: 5px; vertical-align: 1px;
}
.rv-badge svg { width: 9px; height: 9px; }
.rv-date { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.review-card .rv-stars { margin-left: auto; font-size: 11px; }
.review-card .rv-text {
  font-size: 14.5px;
  color: var(--text-2);
  margin-top: 7px;
  line-height: 1.65;
}

/* Aksiyonlar — sade metin butonları */
.rv-actions { display: flex; gap: 16px; margin-top: 9px; }
.rv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  padding: 2px 0;
  transition: color .15s;
}
.rv-action-btn:hover { color: var(--text); }
.rv-action-btn:active { transform: scale(.95); }
.rv-action-btn .count { font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-action-btn.liked { color: var(--accent-dark); font-weight: 600; }
.rv-action-btn.liked svg { fill: currentColor; }

/* Yanıtlar — ince girinti */
.rv-replies {
  margin-top: 13px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rv-reply { background: none; border: none; padding: 0; }
.rv-reply .rr-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.rv-reply .rr-head strong { font-size: 13px; font-weight: 700; }
.rv-reply .rr-head span.rr-date { font-size: 11.5px; color: var(--text-3); }
.rv-reply .rr-tag { font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.rv-reply p { font-size: 13.5px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }

/* Satır içi yanıt formu — minimal */
.reply-form {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-width: 460px;
  animation: fadeIn .25s ease;
}
.reply-form.open { display: flex; }
.reply-form input[type="text"],
.reply-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  padding: 7px 2px;
  font-size: 13.5px;
  transition: border-color .2s;
}
.reply-form input:focus,
.reply-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: none;
}
.reply-form textarea { min-height: 52px; resize: vertical; }
.reply-form .rf-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Ana yorum formu — minimal */
.review-form {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.review-form h3 { font-size: 15px; font-weight: 700; }
.review-form .rf-sub { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rf-grid .field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.rf-grid .field input,
.review-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  padding: 7px 2px;
  font-size: 14.5px;
  transition: border-color .2s;
}
.rf-grid .field input:focus,
.review-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: none;
}
.review-form textarea { min-height: 76px; resize: vertical; margin-top: 14px; }
.rf-rating { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.rf-rating .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.rating-pick { display: flex; gap: 2px; }
.rating-pick button {
  font-size: 22px;
  line-height: 1;
  color: var(--border);
  background: none;
  border: none;
  padding: 0 1px;
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.rating-pick button.on { color: #f2a65a; }
.rating-pick button:hover { transform: scale(1.15); color: #f2a65a; }
.review-form .btn { margin-top: 18px; }
.rf-note { font-size: 12px; color: var(--text-3); margin-top: 12px; }
.rf-empty { font-size: 14px; color: var(--text-3); padding: 14px 0; }
.rf-success {
  display: none;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  margin-top: 6px;
}
.review-form.done .rf-inner { display: none; }
.review-form.done .rf-success { display: inline-flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .reviews-list, #reviewsList { max-height: 420px; }
  .rf-grid { grid-template-columns: 1fr; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Yorum Modalı — "Yorum Yap" butonu ile açılır
   ============================================================ */
/* Paylaşım satırındaki Yorum Yap butonu */
.rv-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .2s;
}
.rv-open-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.rv-open-btn .rv-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}
.rv-open-btn:hover .rv-count { background: var(--surface); }

/* Overlay */
.rv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 25, 23, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.rv-modal-overlay.open { display: flex; }

/* Beyaz kutu */
.rv-modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 32px 80px -20px rgba(28, 25, 23, 0.3);
  width: min(580px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rvPop .28s ease;
}
@keyframes rvPop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.rv-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.rv-modal-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.rv-modal-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
}
.rv-modal-summary .avg { font-size: 14px; font-weight: 700; color: var(--text); }
.rv-modal-summary .stars { color: #f2a65a; letter-spacing: 1px; font-size: 12px; }
.rv-modal-summary .stars .off { color: var(--border); }
.rv-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: all .15s;
}
.rv-close:hover {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-border);
}

.rv-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 22px 22px;
  overflow-y: auto;               /* uzun modallarda tüm gövde de kayar */
  min-height: 0;
}

/* Beyaz kutu: yorum listesi — KENDİ İÇİNDE KAYAR (çalışır) */
.rv-list-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2px 16px;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.rv-modal .rv-list-box {
  max-height: 300px !important;
  overflow-y: auto !important;
}
.rv-list-box::-webkit-scrollbar { width: 7px; }
.rv-list-box::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.rv-list-box::-webkit-scrollbar-track { background: transparent; }
/* Modal içindeki listede eski section scroll kurallarını iptal et */
.rv-modal #reviewsList {
  max-height: none;
  overflow: visible;
  scrollbar-width: auto;
}
.rv-list-box .review-item { padding: 14px 0; }
.rv-list-box .review-item:last-of-type { border-bottom: none; }
.rv-list-box .rf-empty { padding: 18px 0; }

/* Modal içi form — üst çizgiyle ayrılır, kendi içinde kaymaz */
.rv-modal .review-form {
  margin-top: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.rv-modal .review-form textarea { margin-top: 14px; }
.rv-modal .review-form .btn { margin-top: 16px; }

@media (max-width: 640px) {
  .rv-modal { max-height: 90vh; }
  .rv-modal-head { padding: 16px 16px 14px; }
  .rv-modal-body { padding: 14px 16px 18px; }
  .rv-list-box, .rv-modal .rv-list-box { max-height: 44vh !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-modal { animation: none; }
}
