/* Minipek — uygulamayla aynı editoryal tasarım dili
   Renkler: lib/core/constants/app_colors.dart
   Yazı tipleri: Fraunces (başlık) + DM Sans (metin) */

:root {
  --primary: #D95F45;
  --primary-light: #F7E4DC;
  --primary-dark: #B04A34;
  --secondary: #6F8F7B;
  --secondary-light: #E5ECE6;
  --accent: #E6B655;
  --bg: #F6F1EA;
  --surface: #FFFCF8;
  --muted: #EDE6DC;
  --border: #E4DBCF;
  --ink: #1F1A17;
  --on-ink: #F6F1EA;
  --text: #1F1A17;
  --text-2: #6B625A;
  --text-3: #A39A90;
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--primary-light); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Tipografi ─────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 14px;
}
.display {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em;
  line-height: 1.04; margin: 0;
}
.display em { font-style: italic; font-weight: 400; color: var(--primary); }
h1.display { font-size: clamp(44px, 7.2vw, 88px); }
h2.display { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -.01em; margin: 0 0 8px; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 34em; margin: 20px 0 0; }
.muted { color: var(--text-2); }

/* ── Butonlar ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.2px solid var(--ink); transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn svg { width: 20px; height: 20px; flex: none; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-btn { min-width: 190px; justify-content: flex-start; padding: 0 22px; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; margin-bottom: 3px; }
.store-btn span { text-align: left; line-height: 1.1; }
.store-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ── Üst bar ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.03em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { min-height: 42px; padding: 0 18px; font-size: 14px; color: var(--on-ink); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ── Hero ──────────────────────────────────── */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* Telefon maketi — uygulamanın vitrin ekranı */
.phone {
  width: min(340px, 86vw); margin: 0 auto; aspect-ratio: 9 / 19;
  background: var(--ink); border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(31, 26, 23, .45), 0 0 0 1px rgba(0,0,0,.04);
  transform: rotate(2deg);
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg);
  padding: 34px 16px 0; display: flex; flex-direction: column;
}
.screen .s-top { display: flex; justify-content: space-between; align-items: center; }
.screen .s-word { font-family: var(--serif); font-size: 18px; letter-spacing: -.03em; }
.screen .s-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--muted); }
.screen .s-eyebrow { font-size: 8px; letter-spacing: .14em; color: var(--primary); font-weight: 600; margin-top: 16px; }
.screen .s-title { font-family: var(--serif); font-size: 24px; line-height: 1.05; margin-top: 4px; }
.screen .s-title em { color: var(--primary); font-weight: 400; }
.screen .s-search { margin-top: 12px; height: 32px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 9.5px; color: var(--text-3); display: flex; align-items: center; padding: 0 12px; }
.screen .s-tabs { display: flex; gap: 12px; font-size: 10px; color: var(--text-3); margin: 12px 0 10px; }
.screen .s-tabs b { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--primary); padding-bottom: 3px; }
.masonry { columns: 2; column-gap: 9px; flex: 1; overflow: hidden; }
.card { break-inside: avoid; margin-bottom: 11px; }
.card .ph { border-radius: 11px; position: relative; overflow: hidden; }
.card .ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.35), transparent 60%); }
.card .meta { font-size: 6.5px; letter-spacing: .12em; color: var(--text-2); margin-top: 5px; font-weight: 600; }
.card .t { font-size: 8.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .p { font-family: var(--serif); font-size: 12px; }
.ph-1 { height: 128px; background: linear-gradient(160deg, #E9C9B8, #D9A48E); }
.ph-2 { height: 98px; background: linear-gradient(160deg, #CFDCCF, #9EB7A5); }
.ph-3 { height: 110px; background: linear-gradient(160deg, #F2DDA9, #E6B655); }
.ph-4 { height: 132px; background: linear-gradient(160deg, #E4DBCF, #C7B8A6); }
.ph-5 { height: 104px; background: linear-gradient(160deg, #F7E4DC, #E6A994); }
.ph-6 { height: 120px; background: linear-gradient(160deg, #DCE3EA, #A9B8C6); }
.s-bar { margin: 0 -16px; height: 46px; background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.s-bar span { background: var(--ink); color: var(--on-ink); font-size: 10px; font-weight: 600; padding: 7px 14px; border-radius: 99px; }

/* ── Bölümler ──────────────────────────────── */
section { padding: 88px 0; }
.rule { border-top: 1px solid var(--border); }
.section-head { max-width: 40em; margin-bottom: 48px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--primary); line-height: 1; margin-bottom: 18px;
}
.step p { margin: 0; color: var(--text-2); }

.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 500;
}
.cat:first-child { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.spec { border-top: 1px solid var(--border); }
.spec-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.spec-row svg { width: 26px; height: 26px; color: var(--ink); margin-top: 2px; }
.spec-row h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.spec-row p { margin: 0; color: var(--text-2); font-size: 15px; }

.quote { background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: clamp(36px, 6vw, 72px); }
.quote .display { font-size: clamp(30px, 4vw, 48px); }
.quote .display em { color: #F2A48F; }
.quote .eyebrow { color: #F2A48F; }
.quote p { color: rgba(246, 241, 234, .72); max-width: 36em; margin: 22px 0 0; }

.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--text-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 12px 0 0; max-width: 46em; }

.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .store-row { justify-content: center; }

/* ── Alt bilgi ─────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── Metin sayfaları (gizlilik, koşullar) ──── */
.doc { max-width: 760px; padding: 56px 20px 96px; margin: 0 auto; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 52px); letter-spacing: -.02em; line-height: 1.08; margin: 0 0 12px; }
.doc .updated { color: var(--text-3); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 44px 0 10px; letter-spacing: -.01em; }
.doc p, .doc li { color: #3A332E; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }

/* ── İlan önizleme sayfası ─────────────────── */
.listing { max-width: 520px; margin: 0 auto; padding: 32px 20px 72px; }
.listing .photo { aspect-ratio: 4 / 5; border-radius: 22px; background: var(--muted) center / cover no-repeat; }
.listing .meta { font-size: 12px; letter-spacing: .14em; color: var(--primary); font-weight: 600; text-transform: uppercase; margin: 22px 0 8px; }
.listing h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.listing .price { font-family: var(--serif); font-size: 30px; margin: 12px 0 0; }
.listing .status { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 99px; background: var(--secondary-light); font-size: 13px; font-weight: 600; color: var(--secondary); }
.listing .status[hidden] { display: none; }
.listing .actions { display: grid; gap: 10px; margin-top: 28px; }
.skeleton { background: linear-gradient(90deg, var(--muted), #F3EDE5, var(--muted)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── Giriş animasyonu ──────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .phone { transform: none; }
}
