/* Akşama Ne Pişirsem — web
   Sıcak, mutfak hissi veren bir palet; mobil uygulamayla aynı marka rengi. */

:root {
  --bg: #fff6ef;
  --bg-2: #ffe9db;
  --surface: #fffbf8;
  --surface-2: #fdf0e7;
  --ink: #2e1710;
  --ink-soft: #5a3527;
  --muted: #8a6250;
  --brand: #d2481e;
  --brand-deep: #a8300f;
  --accent: #f2a03d;
  --line: rgba(138, 98, 80, 0.16);
  --line-strong: rgba(138, 98, 80, 0.3);
  --shadow-sm: 0 2px 8px rgba(122, 47, 18, 0.06);
  --shadow: 0 14px 34px -12px rgba(122, 47, 18, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(122, 47, 18, 0.4);
  --radius: 20px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --glow-a: rgba(242, 160, 61, 0.5);
  --glow-b: rgba(210, 72, 30, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150d0a;
    --bg-2: #1d1210;
    --surface: #241611;
    --surface-2: #2e1c15;
    --ink: #f8ece4;
    --ink-soft: #e2c9ba;
    --muted: #b58d78;
    --brand: #ff8354;
    --brand-deep: #ff6a35;
    --accent: #f7b443;
    --line: rgba(248, 236, 228, 0.12);
    --line-strong: rgba(248, 236, 228, 0.22);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    --glow-a: rgba(247, 180, 67, 0.16);
    --glow-b: rgba(255, 131, 84, 0.14);
  }
}

:root[data-theme="light"] {
  --bg: #fff6ef; --bg-2: #ffe9db; --surface: #fffbf8; --surface-2: #fdf0e7;
  --ink: #2e1710; --ink-soft: #5a3527; --muted: #8a6250;
  --brand: #d2481e; --brand-deep: #a8300f; --accent: #f2a03d;
  --line: rgba(138, 98, 80, 0.16); --line-strong: rgba(138, 98, 80, 0.3);
  --shadow-sm: 0 2px 8px rgba(122, 47, 18, 0.06);
  --shadow: 0 14px 34px -12px rgba(122, 47, 18, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(122, 47, 18, 0.4);
  --glow-a: rgba(242, 160, 61, 0.5); --glow-b: rgba(210, 72, 30, 0.28);
}

:root[data-theme="dark"] {
  --bg: #150d0a; --bg-2: #1d1210; --surface: #241611; --surface-2: #2e1c15;
  --ink: #f8ece4; --ink-soft: #e2c9ba; --muted: #b58d78;
  --brand: #ff8354; --brand-deep: #ff6a35; --accent: #f7b443;
  --line: rgba(248, 236, 228, 0.12); --line-strong: rgba(248, 236, 228, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  --glow-a: rgba(247, 180, 67, 0.16); --glow-b: rgba(255, 131, 84, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Zemindeki sıcak ışık lekeleri — düz degradeye göre çok daha canlı. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  background:
    radial-gradient(48vw 46vw at 12% -6%, var(--glow-a), transparent 62%),
    radial-gradient(42vw 40vw at 92% 8%, var(--glow-b), transparent 60%),
    radial-gradient(60vw 44vw at 50% 108%, var(--bg-2), transparent 68%);
  pointer-events: none;
}

a { color: var(--brand); text-underline-offset: 3px; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* --- Başlık ---------------------------------------------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

header.site .row { display: flex; align-items: center; gap: 10px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  margin-right: auto;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px; height: 38px; display: block;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
}

nav.site a:hover { color: var(--brand); background: var(--surface-2); }

.hbtn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s, color .15s, transform .1s;
}

.hbtn:hover { border-color: var(--brand); color: var(--brand); }
.hbtn:active { transform: scale(.94); }

/* --- Ana ekran: iki sütun -------------------------------------------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 60px) 0 40px;
}

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
  .panel { text-align: center; }
  .chips { justify-content: center; }
  .season { margin-inline: auto; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.panel h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  margin: 18px 0 10px;
  font-weight: 800;
}

.panel h1 em {
  font-style: normal;
  color: var(--brand);
}

.panel .lede {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  margin: 0 0 22px;
  max-width: 44ch;
}

@media (max-width: 900px) { .panel .lede { margin-inline: auto; } }

.season {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 15px;
  margin: 0 0 22px;
  max-width: 460px;
  font-size: 14px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.fgroup { margin-bottom: 16px; }

.fgroup h2 {
  font-size: 12.5px;
  margin: 0 0 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .16s, color .16s, border-color .16s, transform .1s;
}

.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip:active { transform: scale(.96); }

.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px -6px var(--brand);
}

/* --- Çark ------------------------------------------------------------- */

.wheel-area { display: grid; justify-items: center; }

.wheel-box {
  position: relative;
  width: min(520px, 88vw);
  aspect-ratio: 1;
  filter: drop-shadow(0 26px 44px rgba(90, 34, 12, .28));
}

#wheel { width: 100%; height: 100%; display: block; }

.pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 42px;
  z-index: 3;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35));
}

.hub {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  /* Dilimler her temada renkli olduğu için göbek de sabit krem kalıyor;
     değişkene bağlansaydı koyu temada metalik bir küreye dönüşüyordu. */
  background: #fff8f4;
  color: var(--brand-deep);
  font: inherit;
  font-weight: 900;
  font-size: clamp(13px, 2.4vw, 19px);
  letter-spacing: .06em;
  cursor: pointer;
  z-index: 3;
  box-shadow:
    0 8px 20px rgba(90, 34, 12, .32),
    inset 0 0 0 1px rgba(255, 255, 255, .7);
  transition: transform .12s;
}

.hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.05); }
.hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.96); }
.hub:disabled { color: var(--muted); cursor: default; }

.spin {
  margin-top: 26px;
  width: min(430px, 88vw);
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 17px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px var(--brand);
  transition: transform .1s, box-shadow .2s;
}

.spin:hover:not(:disabled) { box-shadow: 0 18px 34px -12px var(--brand); }
.spin:active:not(:disabled) { transform: translateY(2px); }
.spin:disabled { opacity: .55; cursor: default; }

.count { color: var(--muted); font-size: 13.5px; margin-top: 12px; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  max-width: 440px;
  margin: 0 auto;
}

.empty h2 { color: var(--ink); font-size: 21px; margin: 0 0 8px; }

/* --- Sonuç penceresi -------------------------------------------------- */

dialog.result {
  border: none;
  border-radius: 26px;
  padding: 0;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

dialog.result::backdrop {
  background: rgba(30, 12, 6, .62);
  backdrop-filter: blur(3px);
}

dialog.result[open] { animation: pop .28s cubic-bezier(.2, .9, .3, 1.2); }

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.result-media { position: relative; }

.result-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}

.result-kicker {
  position: absolute;
  left: 18px; top: 16px;
  margin: 0;
  background: rgba(20, 8, 4, .55);
  color: #fff;
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.heart {
  position: absolute;
  right: 14px; top: 12px;
  border: none;
  background: rgba(20, 8, 4, .5);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 44px; height: 44px;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  color: #fff;
  transition: transform .12s;
}

.heart:active { transform: scale(.9); }
.heart[aria-pressed="true"] { color: #ff5a5a; }

.result-inner { padding: 20px 22px 22px; }

.result-inner h2 { font-size: 26px; margin: 0; }

.badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }

.badge {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.actions { display: grid; gap: 9px; margin-top: 20px; }

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s, background .15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 12px 26px -14px var(--brand);
}

.btn-ghost { background: var(--surface-2); border-color: var(--line); color: var(--brand); }
.btn-quiet { background: transparent; border: none; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.btn-quiet:hover { color: var(--brand); }

/* --- Kartlar ---------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 46px 0 4px;
}

.section-head h2 { font-size: 24px; margin: 0; }
.section-head .n { color: var(--muted); font-size: 15px; font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 20px;
  margin: 20px 0 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.1), box-shadow .18s, border-color .18s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}

.card .body { padding: 14px 16px 17px; }
.card h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.28; }
.card .meta { color: var(--muted); font-size: 13px; margin: 0; }

/* --- Tarif sayfası ---------------------------------------------------- */

article.recipe { max-width: 760px; margin: 0 auto; padding: 30px 0 70px; }

.crumb { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.crumb:hover { color: var(--brand); }

article.recipe h1 { font-size: clamp(30px, 5vw, 46px); margin: 14px 0 14px; }

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Ekranın tamamını kaplamasın; tarif hemen altında görünsün. */
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin: 20px 0 0;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.recipe h2 { font-size: 23px; margin: 40px 0 14px; }

ul.ing { list-style: none; padding: 0; margin: 0; }

ul.ing li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color .15s;
}

ul.ing li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  transition: background .15s, border-color .15s;
}

ul.ing li.done { color: var(--muted); text-decoration: line-through; }

ul.ing li.done::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 3px var(--surface);
}

ol.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 0; }

ol.steps li {
  counter-increment: s;
  display: flex;
  gap: 15px;
  margin-bottom: 17px;
}

ol.steps li::before {
  content: counter(s);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--brand);
  font-weight: 800;
  font-size: 13.5px;
  display: grid;
  place-items: center;
}

.tip {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  padding: 17px 20px;
  margin-top: 30px;
}

.tip strong {
  display: block;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 5px;
}

/* --- Alt bilgi -------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 14.5px;
}

footer.site .row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; font-weight: 700; }
footer.site a:hover { color: var(--brand); }

.social { display: flex; gap: 10px; margin-left: auto; }

.social a {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, color .15s, border-color .15s;
}

.social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 620px) {
  .brand span { display: none; }
  nav.site a { padding: 8px; font-size: 14px; }
  .social { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
