/* ═══════════════════════════════════════════════════════════
   YiYo — alt sayfalar (meal-plan, photo-calorie, recipes, progress,
   goals, calorie-calculation, your-data, faq)
   landing.css'in üstüne biner: üst çubuk, telefon çerçevesi, plakalar,
   SSS, indir bölümü ve alt çubuk oradan gelir. Burada yalnız alt
   sayfa düzeni var. Ana sayfa kısa; ayrıntı ve arama motoru için
   uzun metin bu sayfalarda.
   ═══════════════════════════════════════════════════════════ */

/* ── Alt sayfa başı ───────────────────────────────────── */

.sub-hero { padding-block: clamp(20px, 4vw, 48px) clamp(40px, 6vw, 80px); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.crumbs a { color: var(--fg-soft); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); font-weight: 600; }

.sub-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; max-width: 13em; }
.sub-hero .lede { margin-top: 20px; }
.sub-hero .store-row { margin-top: 28px; }

/* Başlık görseli: fotoğraf (yuvarlak köşeli) ya da telefon */
.sub-visual { position: relative; margin: 0; display: flex; justify-content: center; }
.sub-visual > img:first-child,
.row-media > img.photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-plate);
  box-shadow: 0 40px 70px -50px var(--shadow);
}
.sub-visual .buddy,
.row-media .buddy {
  position: absolute;
  left: -14px;
  bottom: -24px;
  width: clamp(84px, 11vw, 128px);
  z-index: 2;
}
.sub-visual .phone { --pw: clamp(220px, 50vw, 270px); }
/* Telefonlu başlıkta zemin: renkli yumuşak daire */
.sub-visual--phone::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(100%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--tint-peach);
}
.sub-visual--phone { isolation: isolate; padding-block: 12px; }

/* ── Anlatım satırları (metin + görsel, sırayla yer değiştirir) ── */

.rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row:nth-child(even) > .row-media { order: -1; }
}
.row-media { position: relative; display: flex; justify-content: center; }
.row-media--tint {
  border-radius: var(--radius-plate);
  padding: clamp(24px, 4vw, 44px) 0 0;
  overflow: hidden;
  max-height: 520px;
  align-items: flex-start;
}
.row-media--peach { background: var(--tint-peach); }
.row-media--sky   { background: var(--tint-sky); }
.row-media--leaf  { background: var(--tint-leaf); }
.row-media--sand  { background: var(--tint-sand); }
.row-media .phone { --pw: clamp(220px, 46vw, 270px); }
.row-media--tint .phone { box-shadow: none; }
.row-media > img.mascot-art { width: min(70%, 300px); height: auto; display: block; }

/* ── Düzyazı ──────────────────────────────────────────── */

.prose { max-width: 40em; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); }
.prose h2 + p, .prose h2 + .lede { margin-top: 18px; }
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 17px; line-height: 1.65; }
.prose .lede { font-size: clamp(17px, 1.3vw, 19px); }
.prose ul:not(.tags) { padding-left: 1.2em; display: grid; gap: 8px; }
.prose ul:not(.tags) li::marker { color: var(--accent); }
.prose b, .prose strong { color: var(--fg); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose .more-row { margin-top: 24px; }
.prose .more { color: var(--accent-ink); }

/* Ortalanmış tek sütun bölüm başı */
.sub-head { max-width: 40em; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.sub-head .lede { margin: 16px auto 0; }

/* Plaka içindeki hafta şeridi ve etiketler */
.plate .week { margin-top: 28px; }
.plate .week > li { background: var(--surface); }

/* ── Kutular ──────────────────────────────────────────── */

/* Sayılar / formüller: iki sütunlu tanım listesi */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 32px;
  margin-top: 28px;
}
.facts div { border-top: 1px solid var(--edge); padding-top: 14px; }
.facts dt { font-weight: 700; font-size: 17px; margin-bottom: 6px; color: var(--fg); }
.facts dd { font-size: 15.5px; color: var(--fg-soft); line-height: 1.6; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Sağlık uyarısı */
.caution {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--tint-sand);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
}
.caution b { color: var(--fg); }

/* Kısa madde kartları (3'lü ızgara) */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards > li {
  background: var(--surface);
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius-card);
  padding: 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-soft);
}
.cards > li b, .cards > li h3 { display: block; color: var(--fg); font-size: 17px; margin-bottom: 6px; }
.plate--navy .cards > li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: var(--on-navy-muted); }
.plate--navy .cards > li b, .plate--navy .cards > li h3 { color: var(--on-navy); }

/* Notlar */
.note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--fg-muted);
  max-width: 62ch;
}

/* ── Tarif: üç ekran yan yana ─────────────────────────── */

.trio {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding-top: 20px;
}
.trio .phone { --pw: clamp(150px, 20vw, 200px); }
.trio .phone:nth-child(1) { transform: translate(14%, 6%) rotate(-5deg); z-index: 1; }
.trio .phone:nth-child(2) { --pw: clamp(180px, 24vw, 240px); z-index: 2; }
.trio .phone:nth-child(3) { transform: translate(-14%, 6%) rotate(5deg); z-index: 1; }
.trio .buddy {
  position: absolute;
  right: -4%;
  bottom: -16px;
  width: clamp(90px, 12vw, 120px);
  z-index: 3;
}

@media (max-width: 599px) {
  .trio { display: grid; grid-template-columns: 1fr; justify-items: center; }
  .trio .phone:not(:nth-child(2)) { display: none; }
  .trio .phone:nth-child(2) { --pw: 62vw; }
  .trio .buddy { width: 84px; right: 0; bottom: -14px; }
}

/* ── İlgili sayfalar ──────────────────────────────────── */

.related h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.related-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.6vw, 20px);
}
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--edge-soft);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.related-grid a:hover, .related-grid a:focus-visible { transform: translateY(-3px); box-shadow: 0 30px 50px -36px var(--shadow); }
.related-grid .art {
  aspect-ratio: 16 / 10;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.related-grid .art img { display: block; }
.related-grid .art--photo img { width: 100%; height: 100%; object-fit: cover; }
.related-grid .art:not(.art--photo) img { width: 46%; height: auto; }
.related-grid .art--peach { background: var(--tint-peach); }
.related-grid .art--sky   { background: var(--tint-sky); }
.related-grid .art--leaf  { background: var(--tint-leaf); }
.related-grid .art--sand  { background: var(--tint-sand); }
.related-grid .txt { padding: 18px 20px 22px; }
.related-grid .txt b { display: block; font-size: 18px; color: var(--fg); line-height: 1.25; }
.related-grid .txt span { display: block; margin-top: 6px; font-size: 15px; color: var(--fg-soft); line-height: 1.5; }

/* Mevcut sayfanın üst menüdeki bağlantısı */
.topbar .link[aria-current="page"] { color: var(--fg); background: var(--edge-soft); }

@media (prefers-reduced-motion: reduce) {
  .related-grid a { transition: none; }
}

/* Dar ekranda başlıktaki maskot/kutu küçük kalsın: içerik ekranın
   üstünden başlasın (özellikle /faq'ta ilk soru katlamanın üstünde). */
@media (max-width: 899px) {
  .sub-hero .row-media { max-width: 260px; margin-inline: auto; padding-top: 16px; }
  .sub-hero .mascot-art { width: min(52%, 200px); }
  .sub-hero .sub-visual--phone::before { width: min(86%, 340px); }
}

/* ── Kalite denetimi düzeltmeleri ─────────────────────── */

/* Tarif üçlüsü metin sütununu sıkıştırmasın (telefonların en küçük
   genişliği sütunu ~140px'e indiriyordu) */
.split--flip:has(> .trio) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.trio { min-width: 0; }
.split--flip:has(> .trio) .trio .phone { --pw: clamp(120px, 13vw, 180px); }
.split--flip:has(> .trio) .trio .phone:nth-child(2) { --pw: clamp(150px, 16vw, 215px); }
@media (max-width: 1199px) {
  .split--flip:has(> .trio) { grid-template-columns: 1fr; }
  .split--flip:has(> .trio) > .copy { order: 0; max-width: 40em; }
}

/* /progress başı: "Hafta tamam" kartı istatistikleri örtmesin */
.sub-visual .chip-2 { top: 18%; }
@media (max-width: 899px) {
  .sub-visual .chip-2 { display: none; }
  .sub-hero .split { row-gap: 40px; }
}

.prose ol { padding-left: 1.4em; display: grid; gap: 8px; }
.prose ol li::marker { color: var(--accent); font-weight: 600; }

.sub-head + .rows { margin-top: clamp(24px, 3vw, 40px); }

/* /faq: konu bağlantıları gezinme gibi görünsün; mobilde soru grupları
   arasındaki büyük görseller kaydırmayı uzatmasın */
.topics .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.topics .tags li::after { content: none; }
.topics .tags a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--edge-soft);
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.topics .tags a:hover { border-color: var(--fg); }
@media (max-width: 899px) {
  .row[id] > .row-media { display: none; }
}
