/* ═══════════════════════════════════════════════════════════════
   Pomi Blog — ortak stil.
   Palet ve tipografi index.html ile birebir aynı; blog sayfaları
   siteden kopmasın diye tokenlar oradan kopyalandı. Yeni bir renk
   eklemeden önce index.html'deki :root bloğuna bak.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #FDFAF2;
  --cream: #FBF4E4;
  --paper: #FFFFFF;
  --ink: #27223D;
  --ink-2: #453F63;
  --ink-soft: #635C7D;
  --line: rgba(39, 34, 61, 0.10);
  --line-soft: rgba(39, 34, 61, 0.06);
  --cherry: #FF5B6E;
  --cherry-deep: #E8455B;
  --mint: #2FB99B;
  --sky: #4FA3E3;
  --grape: #9B6DD6;
  --sun: #FFC23D;
  --peach: #F58E6F;
  --tint-rose: #FFF1F1;
  --tint-mint: #ECF8F4;
  --tint-sun: #FFF7E6;
  --tint-sky: #EEF4FC;
  --tint-grape: #F5F0FD;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow: 0 30px 70px -44px rgba(39, 34, 61, 0.45), 0 2px 4px -2px rgba(39, 34, 61, 0.05);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #FFD9DE; color: var(--ink); }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2.5rem); }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 0.7rem 1.1rem; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip:focus { left: 0; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.accent { font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400; letter-spacing: -0.005em; color: var(--cherry-deep); }
.kicker {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.6rem;
}
.kicker::before { content: ""; width: 7px; height: 7px; background: var(--cherry); border-radius: 2px; display: inline-block; }

/* ── Üst bar ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 242, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: 'Pixelify Sans', monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; padding: 0.85rem 1.35rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); box-shadow: 0 14px 26px -18px rgba(39,34,61,0.9); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(39,34,61,0.04); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }

/* ── Makale düzeni ── */
.article-head { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); overflow: hidden; }
.article-head::before {
  content: ""; position: absolute; inset: -30% -10% 20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 42% at 18% 20%, rgba(255, 91, 110, 0.12), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(47, 185, 155, 0.12), transparent 70%);
}
.article-head .wrap, .article-body, .post-list { max-width: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 1.4rem; list-style: none; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.article-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); margin: 0.9rem 0 1rem; }
.article-head .lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.88rem; color: var(--ink-soft); margin-top: 1.4rem; align-items: center; }
.meta .author { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); }
.meta .author svg { width: 26px; height: 26px; border-radius: 8px; }

.article-body { margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2.5rem); }
.article-body > * + * { margin-top: 1.2rem; }
.article-body h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.8rem; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.18rem; margin-top: 2rem; }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: 0.45rem; }
.article-body a { text-decoration-color: rgba(39,34,61,0.3); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--cherry); }

/* Kısa cevap kutusu: AI botları ve hızlı okuyucular için sayfanın özeti */
.tldr {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.35rem 1.5rem; box-shadow: var(--shadow); margin-top: 2rem;
}
.tldr .kicker { margin-bottom: 0.6rem; }
.tldr p { color: var(--ink); font-size: 1.02rem; }
.tldr ul { margin-top: 0.7rem; }

/* Tablo */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
th, td { text-align: left; padding: 0.8rem 0.95rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: var(--cream); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Uygulama kartı (liste yazıları) */
.app-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem; margin-top: 1.6rem;
}
.app-card h3 { margin-top: 0; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.app-card .tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 999px; background: var(--tint-mint); color: #1E7C66;
}
.app-card .tag.rose { background: var(--tint-rose); color: var(--cherry-deep); }
.app-card .tag.sun { background: var(--tint-sun); color: #9A6A00; }
.app-card .tag.sky { background: var(--tint-sky); color: #2A6FB0; }
.app-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin-top: 0.9rem; font-size: 0.93rem; }
.app-card dt { font-weight: 600; color: var(--ink-soft); }
.app-card dd { color: var(--ink-2); }
.app-card.ours { border-color: rgba(255, 91, 110, 0.4); background: linear-gradient(180deg, #FFF7F7, var(--paper) 40%); }

/* Bilgi / not kutusu */
.note {
  border-left: 4px solid var(--sun); background: var(--tint-sun);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1rem 1.2rem; font-size: 0.95rem;
}
.note.mint { border-color: var(--mint); background: var(--tint-mint); }
.note.sky { border-color: var(--sky); background: var(--tint-sky); }

/* SSS */
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); padding: 0; margin-top: 0.7rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.95rem 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-soft); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1rem; color: var(--ink-2); }

/* CTA */
.cta {
  margin-top: 3rem; background: var(--ink); color: var(--cream); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem); display: grid; gap: 1rem;
}
.cta h2 { color: var(--cream); margin-top: 0; font-size: 1.6rem; }
.cta p { color: rgba(251, 244, 228, 0.78); }
.cta .stores { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.cta .store {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  background: var(--cream); color: var(--ink); border-radius: 999px; padding: 0.7rem 1.2rem; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s var(--ease);
}
.cta .store:hover { transform: translateY(-2px); }

/* Yazar / şeffaflık notu */
.disclosure { margin-top: 2.2rem; font-size: 0.88rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 1.2rem; }

/* Diğer yazılar */
.related { margin-top: 3rem; }
.related h2 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.post-list { list-style: none; display: grid; gap: 0.9rem; padding-left: 0; }
.post-card {
  display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.3rem 1.4rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .kicker { font-size: 0.68rem; }
.post-card h3 { font-size: 1.2rem; margin: 0.5rem 0 0.4rem; }
.post-card p { color: var(--ink-soft); font-size: 0.95rem; }
.post-card .meta { margin-top: 0.7rem; font-size: 0.82rem; }

/* Blog dizin sayfası */
.blog-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.blog-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.6rem); margin: 0.9rem 0 0.8rem; }
.blog-hero p { color: var(--ink-soft); max-width: 58ch; font-size: 1.08rem; }
.post-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 2rem; }
.lang-switch { display: inline-flex; gap: 0.4rem; margin-left: 0.5rem; }
.lang-switch a { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(39,34,61,0.05); color: var(--ink-soft); }
.lang-switch a:hover { color: var(--ink); }

/* Alt bilgi */
footer.site { border-top: 1px solid var(--line-soft); margin-top: clamp(3rem, 7vw, 5rem); padding: 2.2rem 0 2.8rem; }
footer.site .wrap { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; font-size: 0.88rem; color: var(--ink-soft); }
footer.site .fl { display: flex; gap: 1.4rem; flex-wrap: wrap; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .app-card dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .app-card dt { margin-top: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post-card, .cta .store { transition: none; }
}

/* Kaynaklar */
.sources { padding-left: 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.sources li + li { margin-top: 0.35rem; }
.sources em { font-style: italic; }

/* Dizin: konu başlıkları ve kategori grupları */
.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1.4rem; }
.topics a { font-size: 0.85rem; font-weight: 600; text-decoration: none; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); transition: border-color 0.2s ease, color 0.2s ease; }
.topics a:hover { border-color: var(--cherry); color: var(--ink); }
.topics .total { font-size: 0.82rem; color: var(--ink-soft); margin-left: 0.4rem; }
.post-section { margin-top: 2.4rem; scroll-margin-top: 90px; }
.post-section .section-h { font-size: 1.35rem; display: flex; align-items: baseline; gap: 0.6rem; }
.post-section .section-h .n { font-family: 'Pixelify Sans', monospace; font-size: 0.95rem; color: var(--ink-soft); font-weight: 400; }
.post-section .post-grid { margin-top: 1rem; }
.all-link { margin-top: 1rem; font-weight: 600; }
.all-link a { text-decoration: none; }
.all-link a:hover { color: var(--cherry); }
