/* Elif Yonat Toğay — playful children's-book author site
   Matches original: pink hero, periwinkle books section, playful rounded fonts,
   yellow name, fanned foreign covers, "Keşfet" pill buttons. */

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

:root {
  --pink: #f6d4da;
  --pink-soft: #f9e3e7;
  --blue: #c7d0f0;
  --blue-soft: #d9e0f6;
  --green: #93a86e;
  --yellow: #FED301;
  --red: #ED1C24;
  --teal: #2b7a9e;
  --ink: #3a3a3a;
  --muted: #6e6e6e;
  --play: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --bubble: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { flex: 0 0 auto; display: inline-flex; }
.logo svg { width: 48px; height: 48px; }
.nav { display: flex; align-items: center; gap: 34px; margin: 0 auto; flex-wrap: wrap; }
.nav a { font-family: var(--play); color: #4a4a4a; font-size: 1.28rem; letter-spacing: .3px; }
.nav a:hover, .nav a.active { color: var(--red); text-decoration: none; }
.lang { flex: 0 0 auto; font-family: var(--play); border: 1px solid #cfcfcf; border-radius: 8px; padding: 6px 12px; background: #fafafa; white-space: nowrap; }
.lang a { color: #888; font-size: 1rem; }
.lang a:hover { text-decoration: none; color: var(--red); }
.lang a.cur { color: #333; font-weight: 700; }
.lang .sep { color: #ccc; margin: 0 6px; }

/* ---------- Green banner strip ---------- */
.green-strip {
  background: var(--green);
  background-image: linear-gradient(0deg, rgba(0,0,0,.06), rgba(255,255,255,.06));
  color: #fff; text-align: center; padding: 16px 20px; overflow: hidden;
}
.green-strip .txt { font-family: var(--bubble); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.2rem); text-shadow: 1px 2px 0 rgba(0,0,0,.15); letter-spacing: 1px; }

/* ---------- Pink hero ---------- */
.hero { background: var(--pink); padding: 30px 0 44px; }
.hero-heading { font-family: var(--bubble); font-weight: 700; text-align: center; color: #5b5b5b; font-size: clamp(1.7rem, 4.5vw, 2.6rem); text-shadow: 1px 2px 0 rgba(255,255,255,.5); margin: 6px 0 22px; line-height: 1.2; }

/* fanned foreign covers */
.fan { display: flex; justify-content: center; align-items: flex-end; padding: 8px 0 6px; }
.fan img {
  width: clamp(96px, 15vw, 168px); border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  margin: 0 -14px; background: #fff;
}
.fan img:nth-child(1) { transform: rotate(-11deg); z-index: 1; }
.fan img:nth-child(2) { transform: rotate(-5deg) translateY(-6px); z-index: 2; }
.fan img:nth-child(3) { transform: rotate(0deg) translateY(-10px); z-index: 3; }
.fan img:nth-child(4) { transform: rotate(5deg) translateY(-6px); z-index: 2; }
.fan img:nth-child(5) { transform: rotate(11deg); z-index: 1; }

/* big yellow name */
.author-name { font-family: var(--bubble); font-weight: 700; text-align: center; font-size: clamp(2.6rem, 8vw, 5rem); color: var(--yellow); margin: 18px 0 26px; line-height: 1;
  text-shadow: 2px 2px 0 #e5a900, -1px -1px 0 rgba(255,255,255,.4); letter-spacing: 1px; }

/* author + bio row */
.author-row { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: center; max-width: 900px; margin: 0 auto; }
.author-row .photo img { width: 100%; border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,0.22); transform: rotate(-2deg); }
.author-row .photo .ph { aspect-ratio: 3/4; background: #fff8; border: 2px dashed #d68a97; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #b06; font-family: var(--play); text-align: center; padding: 14px; transform: rotate(-2deg); }
.author-row .bio p { font-family: var(--serif); font-size: 1.05rem; color: #444; margin: 0; }

/* ---------- Blue books section ---------- */
.books { background: var(--blue); padding: 20px 0 56px; }
.books-heading { font-family: var(--bubble); font-weight: 700; text-align: center; color: #fff; font-size: clamp(2rem, 6vw, 3.2rem); text-shadow: 1px 3px 0 rgba(0,0,0,.12); margin: 30px 0 26px; }
.book-grid { display: grid; gap: 40px 26px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.book-card { text-align: center; scroll-margin-top: 96px; }
.book-card .cover-wrap { display: block; }
.book-cover { width: 100%; max-width: 260px; margin: 0 auto; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,0.20); background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.book-card a:hover .book-cover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,0.28); }
.book-cover.placeholder { aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; font-family: var(--play); color: var(--muted); padding: 16px; }
.kesfet { display: inline-block; margin-top: 16px; font-family: var(--play); background: #fff; border: 1px solid #b9b9b9; border-radius: 6px; padding: 9px 20px; color: #444; font-size: 1.05rem; }
.kesfet:hover { text-decoration: none; border-color: var(--red); color: var(--red); }

/* ---------- Book detail ---------- */
.book-detail { display: grid; grid-template-columns: 340px 1fr; gap: 46px; padding: 46px 0; align-items: start; }
.book-detail .cover-col img { width: 100%; border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.book-detail .cover-col .editions { display: flex; flex-direction: column; gap: 22px; }
.book-detail .cover-col .edition { margin: 0; }
.book-detail .cover-col .edition figcaption { margin-top: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.book-detail .cover-col .edition .ed-lang { font-family: var(--play); color: #444; font-size: 1.05rem; font-weight: 700; }
.book-detail .cover-col .edition .ed-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.book-detail .cover-col .edition .ed-meta a {
  display: inline-block; background: var(--red); color: #fff; font-family: var(--play);
  font-size: .92rem; padding: 7px 15px; border-radius: 999px; white-space: nowrap; }
.book-detail .cover-col .edition .ed-meta a:hover { background: #c41219; text-decoration: none; }
.book-detail .cover-col .edition .ed-meta a.preview { background: var(--teal); }
.book-detail .cover-col .edition .ed-meta a.preview:hover { background: #21617e; }
.book-detail .cover-col .placeholder { aspect-ratio: 3/4; background: var(--pink-soft); border-radius: 8px; display:flex; align-items:center; justify-content:center; color: var(--muted); font-family: var(--play); padding: 20px; text-align:center; }
.book-detail h1 { font-family: var(--serif); font-style: italic; font-size: 2rem; margin: 0 0 18px; color: #2f2f2f; }
.book-detail .desc p { font-family: var(--serif); margin: 0 0 14px; color: #444; }
.book-detail .teaser p { font-style: italic; color: #555; }
.publisher-row { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.publisher-row .label { font-family: var(--serif); border: 1px solid #cfcfcf; border-radius: 6px; padding: 8px 16px; color: #777; }
.publisher-row .name { font-family: var(--serif); font-weight: 700; font-style: italic; color: #2f2f2f; text-decoration: underline; }
.excerpt-row { margin-top: 16px; }
.excerpt-link { font-family: var(--play); color: var(--teal); font-weight: 600; }
.buy-block { margin-top: 22px; }
.buy-label { font-family: var(--play); color: var(--muted); margin-bottom: 8px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; background: var(--red); color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-family: var(--play); font-size: .95rem; }
.btn:hover { background: #c41219; text-decoration: none; }
.back-link { display: inline-block; margin-top: 28px; color: var(--muted); font-family: var(--play); }

/* ---------- Press clipping gallery (masonry) ---------- */
.clip-gallery { columns: 3 260px; column-gap: 22px; }
.clip { display: inline-block; width: 100%; margin: 0 0 22px; break-inside: avoid; }
.clip img { width: 100%; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.14); background: #fff; }
.clip:hover img { box-shadow: 0 12px 26px rgba(0,0,0,0.22); }
.clip:hover { text-decoration: none; }

/* ---------- Events photo gallery ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 34px; align-items: start; }
.ev-card { margin: 0; }
.ev-photos img { width: 100%; border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); display: block; }
.ev-photos.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ev-photos.collage img { border-radius: 2px; box-shadow: none; aspect-ratio: 1/1; object-fit: cover; }
.ev-photos.collage { border-radius: 4px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.ev-noimg { aspect-ratio: 4/3; background: #f4c9d1; border-radius: 4px; }
.ev-cap { background: #fbeff2; margin: -18px auto 0; width: 86%; position: relative; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.10); padding: 12px 14px; text-align: center; }
.ev-cap .ev-name { display: block; font-family: var(--serif); color: #333; font-size: 1.05rem; line-height: 1.25; }
.ev-cap .ev-date { display: block; font-family: var(--play); color: var(--red); font-size: .92rem; margin-top: 2px; }

/* ---------- Simple content pages ---------- */
.page { background: var(--pink); padding: 10px 0 44px; }
.page-heading { font-family: var(--bubble); font-weight: 700; text-align: center; color: #5b5b5b; font-size: clamp(1.8rem, 5vw, 2.6rem); text-shadow: 1px 2px 0 rgba(255,255,255,.5); margin: 30px 0 22px; }
.page-body { max-width: 780px; margin: 0 auto; }
.page-body p { font-family: var(--serif); margin: 0 0 16px; color: #444; }

/* ---------- Footer ---------- */
.site-footer { background: #2f2f2f; color: #eaeaea; padding: 34px 20px; text-align: center; font-family: var(--sans); }
.site-footer a { color: var(--yellow); }
.site-footer .socials { margin-bottom: 12px; }
.site-footer .copyright { color: #b7b7b7; font-size: .9rem; margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header .wrap { min-height: 64px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; gap: 18px; justify-content: center; }
  .nav a { font-size: 1.12rem; }
  .author-row { grid-template-columns: 1fr; gap: 20px; }
  .author-row .photo { max-width: 220px; margin: 0 auto; }
  .book-detail { grid-template-columns: 1fr; gap: 26px; }
  .book-detail .cover-col { max-width: 300px; margin: 0 auto; }
  .fan img { margin: 0 -10px; }
  body { font-size: 16px; }
}
