@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap");

/* =========================================================
   Ayşe Şengül — Çocuk Kitapları Yazarı
   Modern tema (2026)
   ========================================================= */
:root {
  --ink: #1f2a44;
  --ink-soft: #4a5672;
  --muted: #7b859c;
  --bg: #fffaf2;
  --bg-alt: #fff1dc;
  --card: #ffffff;
  --line: #f0e3cc;
  --sky: #2f80ed;
  --sky-dark: #1c5fc0;
  --sky-soft: #e6f0ff;
  --sun: #ffc23d;
  --sun-soft: #fff4d1;
  --coral: #ff6b5b;
  --coral-dark: #e9503f;
  --mint: #27b38a;
  --mint-soft: #e2f7ef;
  --grape: #8b5cf6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 68, .08);
  --shadow-lg: 0 24px 60px rgba(31, 42, 68, .14);
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
/* Mobilde sayfanın yana kaymasını engelle (clip, sticky başlığı bozmaz) */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sky-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
form { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--white { background: #fff; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--coral); background: #ffe6e2;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); max-width: 640px; font-size: 18px; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(255, 107, 91, .35); }
.btn--primary:hover { background: var(--coral-dark); color: #fff; box-shadow: 0 14px 30px rgba(255, 107, 91, .45); }
.btn--sky { background: var(--sky); color: #fff; box-shadow: 0 10px 24px rgba(47, 128, 237, .3); }
.btn--sky:hover { background: var(--sky-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--sky); border-color: var(--sky); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--lg { padding: 20px 34px; font-size: 19px; }

/* ---------- Header ---------- */
.topbar { background: linear-gradient(90deg, #ffe3dc 0%, #fff1c9 50%, #dcefff 100%); color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: var(--ink); }
.topbar a:hover { color: var(--coral); }
.topbar__ig {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); font-weight: 700; transition: background .2s, transform .2s;
}
.topbar__ig:hover { background: #fff; transform: translateY(-1px); }
.topbar .topbar__ig svg { width: 18px; height: 18px; opacity: 1; color: #d6249f; }
.topbar__info { display: flex; gap: 22px; align-items: center; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 242, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 42, 68, .08); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.brand { display: block; line-height: 0; }
.logo { height: 58px; width: auto; display: block; overflow: visible; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 33px; fill: var(--ink); letter-spacing: -.3px; }
.logo__name2 { fill: var(--sky); }
.logo__tag { font-family: var(--font-body); font-weight: 800; font-size: 10.4px; letter-spacing: 2.3px; fill: var(--coral); }
.logo__star { transform-origin: 44px 15px; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .logo__star { transform: rotate(72deg) scale(1.15); }
.logo--light .logo__name { fill: #fff; }
.logo--light .logo__name2 { fill: #8ec1ff; }
.logo--light .logo__tag { fill: var(--sun); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__list a {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px;
  color: var(--ink); padding: 10px 16px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__list a:hover { background: var(--sky-soft); color: var(--sky); }
.nav__list a.current { background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--sun); }
.nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 0;
  background: var(--sky-soft); color: var(--sky); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, #d7e7ff 0%, rgba(215, 231, 255, 0) 70%); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -180px; background: radial-gradient(circle, #ffe3b0 0%, rgba(255, 227, 176, 0) 70%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.01em; margin-bottom: 18px; }
.hero h1 .hl { color: var(--sky); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 14px; z-index: -1;
  background: var(--sun); border-radius: 8px; opacity: .55;
}
.hero__lead { font-size: 19px; color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-head); font-size: 34px; line-height: 1; color: var(--ink); }
.stat span { color: var(--muted); font-size: 15px; }

.hero__books { position: relative; height: 520px; }
.hero__book {
  position: absolute; width: 46%; border-radius: 10px 16px 16px 10px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff; transition: transform .4s;
}
.hero__book img { width: 100%; aspect-ratio: 350 / 502; object-fit: cover; }
.hero__book:nth-child(1) { left: 2%; top: 60px; transform: rotate(-8deg); z-index: 1; }
.hero__book:nth-child(2) { left: 27%; top: 0; transform: rotate(0deg); z-index: 3; }
.hero__book:nth-child(3) { right: 2%; top: 70px; transform: rotate(8deg); z-index: 2; }
.hero__books:hover .hero__book:nth-child(1) { transform: rotate(-11deg) translateX(-10px); }
.hero__books:hover .hero__book:nth-child(3) { transform: rotate(11deg) translateX(10px); }
.hero__badge {
  position: absolute; z-index: 4; left: 0; bottom: 30px; background: #fff; border-radius: 18px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-weight: 700;
}
.hero__badge .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: grid; place-items: center; }
.hero__badge .dot svg { width: 24px; height: 24px; }
.hero__badge small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.deco { position: absolute; z-index: 0; pointer-events: none; }
.deco--star { top: 40px; left: 46%; width: 34px; color: var(--sun); }
.deco--cloud { top: 110px; right: 8%; width: 70px; color: #fff; filter: drop-shadow(0 6px 12px rgba(31,42,68,.08)); }

/* ---------- Book cards ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.book-card {
  background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; position: relative;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.book-card__cover {
  display: block; border-radius: 12px; overflow: hidden; background: var(--sky-soft);
  aspect-ratio: 350 / 502; margin-bottom: 16px;
}
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.book-card:hover .book-card__cover img { transform: scale(1.04); }
.book-card h3 { font-size: 21px; margin-bottom: 6px; }
.book-card h3 a { color: var(--ink); }
.book-card h3 a:hover { color: var(--sky); }
.book-card p {
  color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.book-card__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.book-card__actions .btn { padding: 11px 10px; font-size: 14px; }
.book-grid--colors .book-card:nth-child(4n+1) .book-card__cover { background: #ffe8e4; }
.book-grid--colors .book-card:nth-child(4n+2) .book-card__cover { background: #fff4d1; }
.book-grid--colors .book-card:nth-child(4n+3) .book-card__cover { background: #e2f7ef; }

/* ---------- About teaser ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about__photo { position: relative; max-width: 440px; }
.about__photo img { border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; position: relative; z-index: 1; }
.about__photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 200px 200px 28px 28px;
  background: var(--sun); z-index: 0;
}
.about__quote {
  position: absolute; z-index: 2; right: -24px; bottom: 34px; max-width: 230px;
  background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow);
  font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.35;
}
.about__quote::before { content: "“"; display: block; font-size: 50px; line-height: .6; color: var(--coral); }
.checklist { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327b38a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Value cards ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value {
  background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
  border-top: 6px solid var(--sky);
}
.value:nth-child(2) { border-top-color: var(--coral); }
.value:nth-child(3) { border-top-color: var(--mint); }
.value__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; background: var(--sky-soft); color: var(--sky); }
.value:nth-child(2) .value__icon { background: #ffe6e2; color: var(--coral); }
.value:nth-child(3) .value__icon { background: var(--mint-soft); color: var(--mint); }
.value__icon svg { width: 30px; height: 30px; }
.value h3 { font-size: 23px; }
.value p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--sky) 0%, #5a9bf6 55%, var(--grape) 120%);
  border-radius: 32px; color: #fff; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 30px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -80px; top: -120px; background: rgba(255, 255, 255, .12); }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta p { color: #e8f0ff; font-size: 18px; margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta .btn--ghost:hover { background: #fff; color: var(--sky); }
.cta .btn--sun { background: var(--sun); color: var(--ink); }
.cta .btn--sun:hover { background: #ffd469; }

/* ---------- Page header ---------- */
.page-hero { padding: 56px 0 50px; background: var(--bg-alt); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -150px; border-radius: 50%; background: rgba(255, 194, 61, .3); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 8px; }
.page-hero p { color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 680px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; font-size: 15px; color: var(--muted); font-weight: 600; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sky); }

/* ---------- Book detail ---------- */
.detail { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.detail__cover { position: sticky; top: 110px; }
.detail__cover a { display: block; border-radius: 14px 20px 20px 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.detail__cover img { width: 100%; }
.detail__thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.detail__thumbs a { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.detail__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: clamp(32px, 4vw, 48px); }
.detail__lead { font-size: 19px; color: var(--ink-soft); }
.detail__lead:empty { display: none; }
.buy-box {
  background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 26px 0 34px;
  border: 2px dashed #ffd1cb;
}
.buy-box__text strong { display: block; font-family: var(--font-head); font-size: 20px; }
.buy-box__text span { color: var(--muted); font-size: 15px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--sky-soft); color: var(--sky-dark); }
.tag--sun { background: var(--sun-soft); color: #9a6a00; }
.tag--mint { background: var(--mint-soft); color: #137a5c; }
.prose { color: var(--ink-soft); font-size: 17px; overflow-wrap: anywhere; }
.prose h2 { font-size: 26px; color: var(--ink); }
.prose img { border-radius: 16px; max-width: 42%; height: auto !important; margin: 4px 22px 14px 0; float: left; }
.prose p, .prose div { margin-bottom: .6em; }
.prose font { color: inherit !important; }
.prose::after { content: ""; display: table; clear: both; }
.prose-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery { columns: 4 240px; column-gap: 18px; }
.gallery a { display: block; margin-bottom: 18px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); break-inside: avoid; background: #fff; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 22, 40, .92); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb button svg { width: 26px; height: 26px; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start; }
.contact-card__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); }
.contact-card:nth-child(2) .contact-card__icon { background: #ffe6e2; color: var(--coral); }
.contact-card:nth-child(3) .contact-card__icon { background: var(--mint-soft); color: var(--mint); }
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card strong { display: block; font-family: var(--font-head); font-size: 18px; }
.contact-card span, .contact-card a { color: var(--ink-soft); overflow-wrap: anywhere; }
.form-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 14px; padding: 13px 16px; width: 100%;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; height: auto !important; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); background: #fff; }
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-weight: 700; }
.alert--ok { background: var(--mint-soft); color: #137a5c; }
.alert--err { background: #ffe6e2; color: #b33a2c; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 40px; line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Social ---------- */
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--sun); color: var(--ink); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4cde0; padding: 70px 0 0; margin-top: 0; position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px;
  background: var(--ink);
  -webkit-mask: radial-gradient(40px 40px at 40px 40px, #000 98%, transparent) -40px 0 / 80px 40px repeat-x;
  mask: radial-gradient(40px 40px at 40px 40px, #000 98%, transparent) -40px 0 / 80px 40px repeat-x;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.site-footer a { color: #c4cde0; }
.site-footer a:hover { color: var(--sun); }
.footer-logo { display: inline-block; margin-bottom: 16px; line-height: 0; }
.footer-logo .logo { height: 54px; }
.footer-ig { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; }
.social a[aria-label="Instagram"] { background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding: 22px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #fff; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 320px 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .nav {
    position: fixed; top: var(--nav-top, 84px); left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 1;
    flex-direction: column; align-items: stretch; padding: 20px; gap: 14px;
    opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s; overflow-y: auto;
  }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  html.nav-lock { overflow: hidden; }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a { font-size: 22px; padding: 14px 18px; border-radius: 16px; }
  .nav .btn { display: inline-flex; margin: 10px 0 0; }
  .hero { padding: 40px 0 60px; }
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .hero__books { height: 380px; max-width: 460px; width: 100%; margin: 0 auto; }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about__photo { margin: 0 auto; max-width: 360px; }
  .values { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta__actions { justify-content: flex-start; }
  .detail { grid-template-columns: 1fr; }
  .detail__cover { position: static; max-width: 260px; margin: 0 auto; width: 100%; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar__info .hide-sm { display: none; }
  .topbar__ig span { display: none; }
  .topbar__ig { padding: 5px; }
  .site-header .container { min-height: 72px; }
  .nav { top: var(--nav-top, 72px); }
  .logo { height: 48px; }
  .hero__books { height: 300px; }
  .hero__badge { bottom: 0; padding: 10px 14px; font-size: 14px; }
  .hero__badge .dot { width: 36px; height: 36px; }
  .hero__stats { gap: 22px; }
  .stat strong { font-size: 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .book-card { padding: 10px; border-radius: 16px; }
  .book-card__cover { margin-bottom: 10px; }
  .book-card h3 { font-size: 17px; }
  .book-card p { display: none; }
  .book-card__actions { grid-template-columns: 1fr; }
  .book-card__actions .btn { padding: 10px 6px; font-size: 13px; }
  .about__quote { right: 0; bottom: 14px; max-width: 200px; font-size: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .prose-card { padding: 22px; }
  .prose img { float: none; max-width: 100%; margin: 0 0 16px; }
  .buy-box { flex-direction: column; align-items: stretch; text-align: center; }
  .buy-box .btn { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { columns: 2; column-gap: 12px; }
  .gallery a { margin-bottom: 12px; }
  .lb { padding: 60px 10px; }
  .lb__prev, .lb__next { top: auto; bottom: 14px; transform: none; }
  .map iframe { height: 300px; }
}

/* Hakkımda: veritabanındaki eski (kırık) fotoğraf etiketi gizlenir, büyük fotoğraf yanda gösteriliyor */
.prose--bio img { display: none !important; }

/* =========================================================
   Öğretici oyun: Kitap Kurdu Bilgi Avında
   ========================================================= */
.game-section { background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%); }
.game { max-width: 980px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 16px; box-shadow: var(--shadow-lg); border: 3px solid var(--sky-soft); }
.game__hud { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: stretch; padding: 4px 4px 14px; }
.hud-item { background: var(--bg); border-radius: 16px; padding: 8px 14px; text-align: center; min-width: 84px; display: flex; flex-direction: column; justify-content: center; }
.hud-item span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.hud-item strong { font-family: var(--font-head); font-size: 26px; line-height: 1.15; color: var(--ink); }
.hud-item--star strong { color: #e09a00; }
.hud-item--star strong::before { content: "\2605  "; font-size: .8em; }
.hud-q { background: linear-gradient(135deg, #fff7de, #eaf4ff); border: 2px solid #f4e3b0; border-radius: 18px; padding: 8px 16px; text-align: center; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hud-q__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); line-height: 1.3; }
.hud-q__text { font-family: var(--font-head); font-weight: 800; font-size: clamp(18px, 2.4vw, 25px); line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.hud-q__text .blank { display: inline-block; min-width: 1.1em; border-bottom: 3px solid var(--coral); color: var(--coral); margin: 0 1px; }
.hud-q__text .big { font-size: 1.15em; color: var(--sky-dark); }
.hud-q__text .spell { letter-spacing: .16em; color: var(--ink); }
.game__sound {
  width: 48px; height: auto; min-height: 48px; border-radius: 14px; border: 0; cursor: pointer; background: var(--sun-soft); color: #9a6a00;
  display: grid; place-items: center; transition: background .2s; padding: 0;
}
.game__sound:hover { background: #ffe8a3; }
.game__sound svg { width: 24px; height: 24px; }
.game__sound .i-off { display: none; }
.game__sound.is-off { background: #eef1f6; color: var(--muted); }
.game__sound.is-off .i-on { display: none; }
.game__sound.is-off .i-off { display: block; }
.game__stage { position: relative; border-radius: 20px; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.game__stage.is-playing { touch-action: none; cursor: grab; }
.game__stage canvas { display: block; width: 100%; height: 400px; }
.game__toast {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 2; max-width: calc(100% - 28px);
  background: #fff; border-radius: 999px; padding: 8px 18px; box-shadow: var(--shadow); font-weight: 800; font-size: 16px; line-height: 1.35;
  text-align: center; color: var(--ink); animation: toastIn .3s cubic-bezier(.34, 1.56, .64, 1);
}
.game__toast[hidden] { display: none; }
.game__toast.is-ok { background: #e3f8ee; color: #137a5a; }
.game__toast.is-no { background: #fff1e6; color: #b4531a; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px) scale(.9); } }
.game__overlay {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 20px; background: rgba(255, 250, 242, .86); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); overflow-y: auto;
}
.game__overlay[hidden] { display: none; }
.game__overlay h3 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 6px; }
.game__overlay p { max-width: 540px; color: var(--ink-soft); margin: 0 auto 16px; font-size: 16px; line-height: 1.55; }
.game__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.game__topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; width: 100%; max-width: 620px; margin: 4px auto 0; }
.topic-btn {
  border: 0; cursor: pointer; border-radius: 16px; padding: 12px 10px; font: inherit; font-weight: 800; font-size: 15px; line-height: 1.25; color: var(--ink);
  background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .15s, box-shadow .15s;
}
.topic-btn:hover, .topic-btn:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); outline: none; }
.topic-btn i { font-style: normal; font-size: 26px; line-height: 1.1; }
.topic-btn small { font-weight: 700; font-size: 12px; color: var(--muted); }
.topic-btn--all { background: var(--coral); color: #fff; }
.topic-btn--all small { color: rgba(255, 255, 255, .85); }
.game__stars { font-size: 40px; letter-spacing: 4px; line-height: 1; margin-bottom: 8px; color: #e5e7eb; }
.game__stars b { color: #ffc23d; font-weight: inherit; }
.game__read { background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto 14px; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.game__tips { list-style: none; margin: 0; padding: 14px 4px 2px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.game__tips li { display: inline-flex; align-items: center; gap: 7px; }
.game__tips b { width: 22px; height: 22px; border-radius: 50%; background: var(--sky-soft); color: var(--sky-dark); display: inline-grid; place-items: center; font-size: 12px; }
.game__tips .best { color: var(--grape); }

@media (max-width: 640px) {
  .game { padding: 10px; border-radius: 22px; }
  .game__hud { grid-template-columns: 1fr 1fr auto; gap: 8px; }
  .hud-q { grid-column: 1 / -1; order: -1; padding: 8px 12px; }
  .hud-q__text { font-size: 19px; }
  .hud-item { padding: 6px 10px; min-width: 0; flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
  .hud-item strong { font-size: 22px; }
  .game__sound { min-height: 44px; width: 44px; }
  .game__overlay { padding: 14px; justify-content: flex-start; }
  .game__overlay h3 { font-size: 23px; }
  .game__overlay p { font-size: 14.5px; margin-bottom: 10px; }
  .game__topics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topic-btn { padding: 8px 6px; font-size: 14px; }
  .topic-btn i { font-size: 22px; }
  .topic-btn small { display: none; }
  .topic-btn--all { grid-column: 1 / -1; }
  .game__toast { font-size: 14px; padding: 6px 14px; top: 10px; }
  .game__tips { justify-content: flex-start; padding-left: 6px; }
}
.section { scroll-margin-top: 90px; }

/* ---------- Başlıktaki oyun bağlantısı ---------- */
.nav__list .nav__game a {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #fff4d1, #e8f5ff); box-shadow: inset 0 0 0 2px #ffe08a;
}
.nav__list .nav__game a:hover { background: linear-gradient(135deg, #ffe9a8, #d6ecff); color: var(--ink); }
.nav__list .nav__game a.current { background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun); }
.nav__game svg { width: 18px; height: 18px; flex: none; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.nav__game a:hover svg { transform: rotate(72deg) scale(1.15); }
.nav__badge {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  background: var(--coral); color: #fff; border-radius: 999px; padding: 4px 7px; margin-left: 2px;
}
@media (max-width: 1180px) and (min-width: 901px) {
  .nav__list a { padding-left: 11px; padding-right: 11px; }
  .nav__badge { display: none; }
}
@media (max-width: 900px) {
  .nav__list .nav__game a { display: flex; gap: 10px; }
  .nav__game svg { width: 24px; height: 24px; }
  .nav__badge { font-size: 12px; }
}

/* ---------- Oyun sayfası ---------- */
.page-hero--game { background: linear-gradient(135deg, #fff4d1 0%, #eaf4ff 60%, #e3f8ee 100%); }
.game-section--page { padding-top: 40px; }
.game-more { text-align: center; margin: 18px 0 0; font-weight: 800; }
.game-more a { display: inline-block; padding: 8px 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.values--4 { grid-template-columns: repeat(4, 1fr); }
.values--4 .value__icon { font-size: 28px; }
.value:nth-child(4) .value__icon { background: #f1e9ff; color: var(--grape); }
@media (max-width: 1080px) { .values--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .values--4 { grid-template-columns: 1fr; } }

/* ---------- İletişim formu: robot doğrulaması ---------- */
.human-check { background: linear-gradient(135deg, #fff7de, #eef6ff); border: 2px dashed #f4d27a; border-radius: 18px; padding: 14px 16px; }
.human-check label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.human-check label strong { color: var(--coral); }
.human-check__badge { font-size: 20px; }
.field .human-check__input { max-width: 220px; font-weight: 800; font-size: 18px; letter-spacing: .04em; background: #fff; }
.field__hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
