/* ==========================================================================
   Gustopicks — Blog (Günlük) theme
   Light mode ONLY (no dark-mode blocks). Scoped to blog pages so the
   marketing site's own CSS is never touched. Built on top of style.css's
   design tokens (colors, radii, shadows, fonts) — no new tokens defined
   unless something is genuinely blog-specific.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Blog hero / landing header
   -------------------------------------------------------------------------- */
.blog-hero { padding-top: clamp(56px, 8vw, 96px); }

.blog-empty {
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 48px);
  text-align: center;
  background: var(--surface-alt);
  border-radius: var(--r-2xl);
  max-width: 640px;
  margin-inline: auto;
}
.blog-empty__icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
  margin-bottom: 20px;
}
.blog-empty__icon svg { width: 26px; height: 26px; }
.blog-empty h2 { margin-top: 4px; }
.blog-empty p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   2. Post cards (listing grid)
   -------------------------------------------------------------------------- */
.post-grid {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
  }
  .post-card:hover .post-card__title { color: var(--pine); }
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  overflow: hidden;
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.post-card__media-fallback {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pine-soft), var(--gold-soft));
  color: var(--pine);
}
.post-card__media-fallback svg { width: 34%; height: 34%; opacity: .7; }

.post-card__chip {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.post-card__chip--inline {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: none;
  background: var(--pine-soft);
  color: var(--pine-press);
}
.post-card__chip--ranking {
  left: auto;
  right: 12px;
  background: var(--gold-soft);
  color: var(--on-gold);
}

.post-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__title {
  font-size: 1.18rem;
  line-height: 1.28;
  margin-top: 10px;
  transition: color .18s var(--ease);
}
.post-card__excerpt {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--secondary-text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--faint-text);
  flex-wrap: wrap;
}
.post-meta--lg { font-size: 0.9rem; color: var(--secondary-text); margin-top: 18px; }

/* --------------------------------------------------------------------------
   3. Spotlight card (featured post, landing page)
   -------------------------------------------------------------------------- */
.post-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
  margin-top: clamp(32px, 5vw, 48px);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .post-spotlight:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
}
.post-spotlight__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 220px;
  background: var(--surface-alt);
}
.post-spotlight__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-spotlight__chip { background: var(--clay); color: #fff; box-shadow: none; }
.post-spotlight__body {
  padding: clamp(12px, 2vw, 20px) clamp(8px, 1vw, 16px) 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-spotlight__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin-top: 4px;
}
.post-spotlight__excerpt {
  margin-top: 14px;
  color: var(--secondary-text);
  font-size: 1rem;
  line-height: 1.6;
}
.post-spotlight .post-meta { margin-top: 18px; }

@media (max-width: 760px) {
  .post-spotlight { grid-template-columns: 1fr; }
  .post-spotlight__media { min-height: 200px; }
}

/* --------------------------------------------------------------------------
   4. Article page: breadcrumb, header, hero
   -------------------------------------------------------------------------- */
.blog-post { padding-top: clamp(96px, 13vh, 140px); padding-bottom: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--faint-text);
  margin-bottom: clamp(24px, 4vw, 36px);
}
.breadcrumb a { color: var(--secondary-text); transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--pine); }
.breadcrumb__current {
  color: var(--secondary-text);
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-post__hero {
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: clamp(28px, 4vw, 44px);
  background: var(--surface-alt);
  box-shadow: var(--shadow-card);
}
.blog-post__hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.blog-post__header { max-width: var(--maxw-narrow); }
.blog-post__title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   5. Two-column layout: content + sticky TOC
   -------------------------------------------------------------------------- */
.blog-post-layout {
  margin-top: clamp(32px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 96px);
}

@media (max-width: 980px) {
  .blog-post-layout { grid-template-columns: 1fr; }
  .toc-sticky { display: none; }
}

.toc-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

.toc {
  background: var(--surface-alt);
  border-radius: var(--r-lg);
  padding: 20px 20px 22px;
}
.toc-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-text);
}
.toc ul { display: flex; flex-direction: column; gap: 2px; }
.toc-item { list-style: none; }
.toc-link {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--secondary-text);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.toc-item--h3 .toc-link { padding-left: 24px; margin-left: -12px; font-size: 0.84rem; }
.toc-link:hover { color: var(--ink); }
.toc-link.is-active { color: var(--pine); border-left-color: var(--pine); font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Article typography (.blog-content) — the sanitized engine HTML
   -------------------------------------------------------------------------- */
.blog-content {
  max-width: var(--maxw-narrow);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.blog-content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.blog-content h2:first-child { margin-top: 0; }
.blog-content h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.blog-content h4 {
  font-size: 1.05rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.blog-content p { margin-top: 1.1em; }
.blog-content p:first-child { margin-top: 0; }
.blog-content ul, .blog-content ol { margin-top: 1.1em; padding-left: 1.4em; display: flex; flex-direction: column; gap: 0.55em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { line-height: 1.65; }
.blog-content strong { color: var(--ink); font-weight: 700; }
.blog-content em { font-style: italic; }

.blog-content a {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--pine) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color .18s var(--ease), color .18s var(--ease);
}
.blog-content a:hover { text-decoration-color: currentColor; color: var(--pine-press); }

.blog-content blockquote {
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px solid var(--pine);
  color: var(--secondary-text);
  font-style: italic;
  font-size: 1.02rem;
}

.blog-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-alt);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}
.blog-content pre {
  margin: 1.4em 0;
  padding: 16px 18px;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  overflow-x: auto;
  max-width: 100%;
}
.blog-content pre code { background: none; padding: 0; }

.blog-content img, .blog-content figure {
  border-radius: var(--r-lg);
  margin: 1.6em 0;
}
.blog-content figure img { margin: 0; }
.blog-content figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--faint-text);
  text-align: center;
}

.blog-content hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2.4em 0;
}

/* Generic tables inside article body: keep overflow contained to the table
   itself so the page never scrolls horizontally, whether or not the engine
   wrapped it in .comparison-table. */
.blog-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.94rem;
}
.blog-content th, .blog-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.blog-content thead th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* Dedicated wrapper the engine emits around comparison tables */
.comparison-table {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  /* Scroll-edge shadow affordance for narrow/mobile viewports — two solid
     "mask" layers keep the card's own background at the true edges, two
     fading shadow layers (fixed via background-attachment: scroll) hint
     that there's more table off-screen. Pure CSS, no JS. */
  background-image:
    linear-gradient(to right, var(--surface) 40%, transparent),
    linear-gradient(to left, var(--surface) 40%, transparent),
    linear-gradient(to right, rgba(23, 21, 15, .12), transparent),
    linear-gradient(to left, rgba(23, 21, 15, .12), transparent);
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-color: var(--surface);
  background-size: 24px 100%, 24px 100%, 10px 100%, 10px 100%;
  background-attachment: local, local, scroll, scroll;
}
.comparison-table table { margin: 0; border: none; border-radius: 0; }
.comparison-table th:first-child, .comparison-table td:first-child { padding-left: 18px; }

/* Stronger header: ink background, paper text, uppercase Inter label */
.comparison-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Zebra striping + hover */
.comparison-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.comparison-table tbody tr {
  transition: background-color .15s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .comparison-table tbody tr:hover { background: var(--pine-soft); }
}

/* Rank column reads as its own thing, gold for the top 3 */
.comparison-table .ct-rank {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
}
.comparison-table .ct-rank--top { color: var(--gold); }

.ct-name-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.ct-name-link:hover { color: var(--pine-press); border-color: currentColor; }

/* --------------------------------------------------------------------------
   7. Content components emitted by the generation engine
   -------------------------------------------------------------------------- */

/* Quick-answer callout — the "TL;DR" box AI Overviews love to lift verbatim */
.blog-content .quick-answer,
.quick-answer {
  margin: 1.8em 0;
  padding: 20px 22px;
  background: var(--pine-soft);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--pine);
}
.qa-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-press);
  margin-bottom: 6px;
}
.qa-text { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.6; }

/* Lead paragraph — larger, muted intro immediately after the H1 */
.blog-content .lead,
.blog-content p.lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--secondary-text);
  max-width: none;
  margin-top: 0;
  margin-bottom: 0.4em;
}

/* Tip / warning callouts */
.tip-callout, .warning-callout {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tip-callout {
  background: var(--pine-soft);
  border-left: 3px solid var(--pine);
}
.warning-callout {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
}
.tip-title, .warning-title, .disclaimer-title {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip-title { color: var(--pine-press); }
.warning-title { color: var(--on-gold); }
.disclaimer-title { color: var(--secondary-text); }
.tip-content, .warning-content { font-size: 0.98rem; line-height: 1.6; color: var(--text); }

/* Legacy emoji glyphs are stripped at serve time (blog.py) and the engine no
   longer emits them (gemini_client.py) — a CSS mask-icon supplies the visual
   marker instead, so both old and freshly generated posts render identically. */
.tip-title::before, .warning-title::before, .disclaimer-title::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.tip-title::before { -webkit-mask-image: url(/static/img/icons/tip.svg); mask-image: url(/static/img/icons/tip.svg); }
.warning-title::before { -webkit-mask-image: url(/static/img/icons/alert.svg); mask-image: url(/static/img/icons/alert.svg); }
.disclaimer-title::before { -webkit-mask-image: url(/static/img/icons/info.svg); mask-image: url(/static/img/icons/info.svg); }

/* Info grid + cards */
.info-grid {
  margin: 1.8em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.info-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.info-card .icon {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--pine-soft);
  color: var(--pine);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
/* Legacy posts left a now-empty <span class="icon"> where an emoji used to
   sit (stripped at serve time); new posts emit it empty from the start.
   Either way, this ::before supplies a neutral CSS accent instead. */
.info-card .icon::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url(/static/img/icons/info.svg) center / contain no-repeat;
  mask: url(/static/img/icons/info.svg) center / contain no-repeat;
}
.info-card h3, .info-card h4 { font-size: 1.02rem; margin-top: 0; margin-bottom: 6px; }
.info-card p { font-size: 0.92rem; color: var(--secondary-text); margin-top: 0; }

/* In-article CTA box */
.cta-box {
  margin: 2em 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-xl);
  text-align: center;
  background: var(--ink);
  color: #fff;
}
.cta-box h3, .cta-box h4 { color: #fff; margin-bottom: 10px; }
/* .cta-title: the engine now emits a <p class="cta-title"> instead of <h3>
   for CTA-box headlines (a <p> can't legally follow certain sanitized
   structures an <h3> can) — keep the exact same serif/prominent look as
   .cta-box h3 so older and newer posts render identically. */
.cta-box .cta-title {
  color: #fff;
  margin-bottom: 10px;
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 600;
}
.cta-box p { color: rgba(255,255,255,.78); margin-top: 0; }
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .cta-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

/* Disclaimer / fine-print note */
.disclaimer-box {
  margin: 1.8em 0;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  color: var(--faint-text);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Full-bleed App Store download band (article footer CTA)
   -------------------------------------------------------------------------- */
.blog-cta-band { margin-top: clamp(48px, 7vw, 88px); }
/* Promotional band title — visually the old <h2> but NOT a heading, so it
   stays out of the article's SEO outline (the content h2s carry the outline). */
.blog-cta-band .cta-band__title {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   9. Related posts
   -------------------------------------------------------------------------- */
.blog-related { padding-block: clamp(56px, 8vw, 96px); }

/* --------------------------------------------------------------------------
   10. Venue enrichment: "Adres & Harita" section (address/phone/map cards)
   -------------------------------------------------------------------------- */
.venue-section {
  max-width: var(--maxw-narrow);
  margin-top: clamp(40px, 6vw, 64px);
}
.venue-section .title-md { margin-bottom: 18px; }

.venue-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .venue-list { grid-template-columns: repeat(2, 1fr); }
}

.venue-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .venue-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
  }
}

.venue-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
}

.venue-card__chip {
  align-self: flex-start;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--pine-press);
  background: var(--pine-soft);
  padding: 4px 11px;
  border-radius: var(--r-pill);
}

.venue-card__meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.venue-card__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--secondary-text);
}
.venue-card__meta-row a { color: var(--pine); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--pine) 35%, transparent); text-underline-offset: 2px; }
.venue-card__meta-row a:hover { color: var(--pine-press); text-decoration-color: currentColor; }
.venue-card__meta-icon {
  flex: none;
  margin-top: 2px;
}

.venue-card__actions { margin-top: 16px; }
.venue-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--pine);
  color: var(--on-pine);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none !important;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .venue-map-btn:hover { background: var(--pine-press); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
}

/* --------------------------------------------------------------------------
   11. E-E-A-T author / methodology box
   -------------------------------------------------------------------------- */
.author-box {
  max-width: var(--maxw-narrow);
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
}
.author-box__row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-box__avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--on-clay);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.author-box__byline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.author-box__dates {
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--faint-text);
}
.author-box__method {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--secondary-text);
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .breadcrumb__current { max-width: 28ch; }
  .author-box__row { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   13. Small utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inline SVG stroke icons (blog/_icons.html sprite). 24x24 symbols drawn at
   stroke-width 1.75 — sized in em so they scale with whatever text they sit
   next to, colored via currentColor so they inherit their container's ink. */
.gp-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  stroke: currentColor;
  fill: none;
  vertical-align: -0.15em;
}
.gp-icon--sm { width: 0.95em; height: 0.95em; }
.gp-icon--lg { width: 1.4em; height: 1.4em; }
.gp-icon--pine { color: var(--pine); }
.gp-icon--gold { color: var(--gold); }
.gp-icon--muted { color: var(--secondary-text); }

/* --------------------------------------------------------------------------
   14. Ranking listicle format (post.format == 'ranking')
   -------------------------------------------------------------------------- */

/* Generic section wrapper — same width/rhythm rule as .venue-section, reused
   for every ranking sub-section (summary, table, rank list, use-cases, map,
   FAQ) so spacing reads consistently down the page. */
.ranking-section {
  max-width: var(--maxw-narrow);
  margin-top: clamp(40px, 6vw, 64px);
}
.ranking-section .title-md { margin-bottom: 18px; }

/* Intro paragraph — same treatment as .blog-content .lead, but this template
   isn't nested inside .blog-content so the generic (46ch-capped) .lead
   utility needs its width/size overridden here. */
.ranking-intro {
  max-width: var(--maxw-narrow);
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--secondary-text);
  margin-top: clamp(20px, 3vw, 28px);
}

/* "30 saniyelik özet" — a dedicated premium TL;DR tile set. Deliberately
   NOT the generic green .quick-answer callout: a warm surface card with a
   gold top-rule so it reads as "the answer" rather than a body-copy aside. */
.summary-tldr {
  margin: 1.8em 0;
  padding: 22px clamp(20px, 3vw, 26px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.summary-tldr__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-text);
  margin-bottom: 14px;
}
.summary-30s {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 20px;
}
.summary-30s__tile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-30s__icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--pine-soft);
  color: var(--pine);
}
.summary-30s__tile--gold .summary-30s__icon { background: var(--gold-soft); color: var(--on-gold); }
.summary-30s__body { display: flex; flex-direction: column; min-width: 0; }
.summary-30s__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--secondary-text);
}
.summary-30s__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
}

/* Rank cards */
.rank-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rank-card {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .rank-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
  }
}

/* Ranks 1-3 get a quiet gold emphasis so the card list reads as ordered
   rather than fifteen visually identical rows. */
.rank-card--top {
  border-color: var(--gold-soft);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--surface) 22%);
  box-shadow: var(--shadow-card);
}
.rank-card--top::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  background: var(--gold);
}

.rank-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.rank-card__title-wrap { flex: 1; min-width: 0; }

/* Unified numeric badge — same shape/size for every rank, so there's no
   jarring size jump between an emoji medal and a "#4" text badge. Ranks
   1-3 get a gold ring + a small award-icon accent instead of swapping
   the whole badge for a pictograph. */
.rank-badge {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.rank-badge__num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1;
}
.rank-badge--top {
  background: var(--gold-soft);
  color: var(--on-gold);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.rank-badge__award {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 2px var(--surface);
}
.rank-badge__award .gp-icon { width: 11px; height: 11px; stroke-width: 2.25; }

.rank-card__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.rank-card__sub {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--secondary-text);
}
.rank-card__cat {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rank-card__chip {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--pine-press);
  background: var(--pine-soft);
  padding: 4px 11px;
  border-radius: var(--r-pill);
}

.rank-card__why {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
}
.rank-card__why strong { color: var(--ink); }

/* "Ne sipariş?" is deliberately NOT another paragraph — a compact
   chip/eyebrow row reads faster and visually separates "why this rank"
   (prose) from "what to order" (a quick, scannable fact). */
.rank-card__order {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 9px 14px;
  background: var(--surface-alt);
  border-radius: var(--r-md);
}
.rank-card__order-label {
  flex: none;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pine-press);
  background: var(--pine-soft);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.rank-card__order-text { font-size: 0.92rem; line-height: 1.5; color: var(--text); }

/* Framed pros/cons — two tinted columns instead of two bare bullet lists,
   each with its own mini-label so "Artılar"/"Eksiler" don't rely on color
   alone to read as opposites. */
.rank-card__proscons {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
@media (max-width: 560px) {
  .rank-card__proscons { grid-template-columns: 1fr; }
}
.rank-card__proscol {
  padding: 12px 14px;
  border-radius: var(--r-md);
}
.rank-card__proscol--pros { background: var(--pine-soft); }
.rank-card__proscol--cons { background: var(--surface-alt); }
.rank-card__proscol-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rank-card__proscol--pros .rank-card__proscol-label { color: var(--pine-press); }
.rank-card__proscol--cons .rank-card__proscol-label { color: var(--secondary-text); }
.rank-pros, .rank-cons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.rank-pros li, .rank-cons li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rank-pros li { color: var(--text); }
.rank-pros__icon { flex: none; margin-top: 2px; color: var(--pine); }
.rank-cons li { color: var(--secondary-text); }
.rank-cons__icon { flex: none; margin-top: 2px; color: var(--secondary-text); }

.rank-card__meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rank-card__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--secondary-text);
}
.rank-card__meta-row a { color: var(--pine); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--pine) 35%, transparent); text-underline-offset: 2px; }
.rank-card__meta-row a:hover { color: var(--pine-press); text-decoration-color: currentColor; }
.rank-card__meta-icon { flex: none; margin-top: 2px; }

.rank-card__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
/* Solid clay CTA on the top 3 only — ranks 4-15 get a lighter secondary
   treatment so the page isn't a wall of identical dark buttons. */
.rank-btn--app { background: var(--clay); color: var(--on-clay); }
.rank-btn--app-secondary { background: var(--surface-alt); color: var(--ink); }
.rank-btn--map { background: transparent; color: var(--pine); border-color: var(--pine); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .rank-btn--app:hover { background: var(--clay-press); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
  .rank-btn--app-secondary:hover { background: color-mix(in srgb, var(--surface-alt) 85%, var(--ink) 15%); transform: translateY(-1px); }
  .rank-btn--map:hover { background: var(--pine-soft); transform: translateY(-1px); }
}

/* Use-case picker — hairline cards with a leading icon + hover lift, kept
   visually distinct from the .summary-tldr tiles above (no gold rule, no
   filled icon badge — just a quiet ink icon) so the two "answer" surfaces
   on the page don't compete. */
.use-case-picker {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.use-case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
  }
}
.use-case-card__icon {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--surface-alt);
  color: var(--ink);
  margin-bottom: 10px;
}
.use-case-card__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--secondary-text);
  margin-bottom: 6px;
}
.use-case-card__pick {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.use-case-card__link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pine);
  text-decoration: none;
}
.use-case-card__link .gp-icon { width: 0.95em; height: 0.95em; transition: transform .18s var(--ease); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .use-case-card__link:hover { color: var(--pine-press); }
  .use-case-card:hover .use-case-card__link .gp-icon { transform: translateX(2px); }
}

/* Interactive map (Leaflet, self-hosted) */
.blog-map {
  margin-top: 4px;
  width: 100%;
  height: 420px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  z-index: 0;
  background: var(--surface-alt);
}
@media (max-width: 640px) {
  .blog-map { height: 300px; }
}
.leaflet-container { font: inherit; }
.leaflet-container a { color: var(--pine); }
.leaflet-popup-content { font-family: var(--font-sans); font-size: 0.9rem; line-height: 1.5; }
.leaflet-control-attribution { font-size: 0.72rem; background: color-mix(in srgb, var(--surface) 85%, transparent) !important; }

/* FAQ list */
.ranking-faq .faq-item {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.ranking-faq .faq-item:first-of-type { margin-top: 16px; padding-top: 0; border-top: none; }
.ranking-faq h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
}
.ranking-faq p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--secondary-text);
}

/* --------------------------------------------------------------------------
   15. Sticky bottom app CTA bar (both guide + ranking posts)
   -------------------------------------------------------------------------- */
.app-sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90; /* below .nav's 100 */
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  /* Subtle branded touch: a thin gold rule sits just inside the hairline
     border rather than replacing it. */
  box-shadow: inset 0 2px 0 var(--gold), 0 -8px 24px -14px rgba(23, 21, 15, .22);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
}
@media (prefers-reduced-motion: no-preference) {
  .app-sticky-bar {
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
}
.app-sticky-bar.is-dismissed { display: none; }

.app-sticky-bar__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-sticky-bar__icon { flex: none; border-radius: 9px; display: block; }
.app-sticky-bar__text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}
.app-sticky-bar__text-short { display: none; }
.app-sticky-bar__cta {
  flex: none;
  padding: 8px 14px 8px 10px;
  box-shadow: none;
}
.app-sticky-bar__cta .appstore-badge__icon { width: 28px; height: 28px; }
.app-sticky-bar__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--secondary-text);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.app-sticky-bar__close:hover { background: var(--surface-alt); color: var(--ink); }
.app-sticky-bar__close .gp-icon { width: 20px; height: 20px; }

@media (max-width: 560px) {
  /* Shorten, don't hide — a dismiss-worthy CTA still needs to say what
     it's offering at a glance. */
  .app-sticky-bar__text-full { display: none; }
  .app-sticky-bar__text-short { display: inline; }
  .app-sticky-bar__inner { gap: 8px; }
}

/* --------------------------------------------------------------------------
   16. Responsive (ranking format)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .rank-card__head { gap: 12px; }
}
