/* =========================================================
   JellyBop — Tasarım Sistemi
   Renkli & enerjik · çocuk + aile dostu · 7 dilli (RTL destekli)
   Renkleri değiştirmek için yalnızca :root içindeki değişkenleri düzenle.
   ========================================================= */

/* ---------- 1. Renk & token değişkenleri ---------- */
:root {
  /* Marka renkleri (kendi paletinle değiştirebilirsin) */
  --pink:   #FF4FA3;
  --purple: #9B5DE5;
  --blue:   #4CC9F0;
  --teal:   #2EC4B6;
  --green:  #5BD86B;
  --yellow: #FFD23F;
  --orange: #FF8A3D;
  --red:    #FF5D5D;

  --whatsapp: #25D366;

  /* Yüzeyler & metin */
  --cream:  #FFF7EF;
  --paper:  #FFFFFF;
  --ink:    #2B1B3D;
  --ink-soft: #5b4a6b;
  --line:   rgba(43, 27, 61, 0.10);

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #FF4FA3 0%, #9B5DE5 45%, #4CC9F0 100%);
  --grad-primary: linear-gradient(135deg, #FF4FA3, #9B5DE5);
  --grad-sun: linear-gradient(135deg, #FFD23F, #FF8A3D);
  --grad-mint: linear-gradient(135deg, #5BD86B, #2EC4B6);

  /* Radius */
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* Gölgeler */
  --shadow-sm: 0 4px 14px rgba(43, 27, 61, 0.08);
  --shadow-md: 0 12px 30px rgba(43, 27, 61, 0.12);
  --shadow-lg: 0 24px 60px rgba(43, 27, 61, 0.18);
  --shadow-pink: 0 14px 30px rgba(255, 79, 163, 0.35);

  /* Tipografi */
  --font-display: 'Fredoka', 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;

  --container: 1180px;
  --header-h: 92px;
}

/* Arapça (RTL) için yazı tipi */
[lang="ar"], [dir="rtl"] {
  --font-body: 'Cairo', 'Rubik', system-ui, sans-serif;
  --font-display: 'Cairo', 'Fredoka', system-ui, sans-serif;
}

/* ---------- 2. Reset & temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  scroll-padding-top: var(--header-h);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; color: var(--ink); }

/* ---------- 3. Layout yardımcıları ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; position: relative; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--purple); background: rgba(155, 93, 229, 0.12);
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.section__title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.section__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 620px; margin-inline: auto; }
.grad-text {
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 4. Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: 14px 28px; border-radius: var(--r-pill); color: #fff;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--primary { background: var(--grad-primary); box-shadow: var(--shadow-pink); }
.btn--accent  { background: var(--grad-sun); color: var(--ink); box-shadow: 0 12px 26px rgba(255,138,61,.32); }
.btn--mint    { background: var(--grad-mint); box-shadow: 0 12px 26px rgba(46,196,182,.30); }
.btn--whatsapp{ background: var(--whatsapp); box-shadow: 0 12px 26px rgba(37,211,102,.32); }
.btn--ghost   { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn--lg { padding: 17px 34px; font-size: 1.12rem; }
.btn--block { width: 100%; }

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 247, 239, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.logo__img { height: 72px; width: auto; max-width: 300px; display: block; }
.logo__text { display: none; }
.logo b { color: var(--pink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 500; padding: 10px 14px; border-radius: var(--r-pill); color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: rgba(155, 93, 229, 0.12); color: var(--purple); }
.nav a.is-active { background: var(--ink); color: #fff; }

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

/* Dil seçici */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill);
  background: #fff; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink); font-size: .95rem;
}
.lang__btn:hover { box-shadow: var(--shadow-md); }
.lang__flag { font-size: 1.1rem; }
.lang__caret { width: 14px; transition: transform .2s ease; }
.lang.open .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: 190px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 200;
}
.lang.open .lang__menu { display: flex; }
.lang__menu button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  font-weight: 500; color: var(--ink); text-align: start; width: 100%;
}
.lang__menu button:hover { background: rgba(76, 201, 240, 0.14); }
.lang__menu button.is-active { background: var(--ink); color: #fff; }

/* Hamburger */
.burger { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-sm); position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 3px; border-radius: 3px; background: var(--ink); transition: .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,27,61,.25), rgba(43,27,61,.55)); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding: 60px 0; max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.35); margin-bottom: 18px; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: rgba(255,255,255,.95); margin-bottom: 30px; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge { position: absolute; z-index: 2; background: #fff; border-radius: var(--r-pill); padding: 10px 18px; font-family: var(--font-display); font-weight: 600; box-shadow: var(--shadow-lg); }

/* Placeholder yüzey (gerçek görseller gelene kadar) */
.ph { position: relative; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 600; text-align: center; overflow: hidden; }
.ph::after { content: attr(data-label); position: relative; z-index: 2; font-size: .92rem; padding: 8px 14px; background: rgba(0,0,0,.28); border-radius: var(--r-pill); backdrop-filter: blur(2px); }
.ph--1 { background: var(--grad-primary); }
.ph--2 { background: var(--grad-mint); }
.ph--3 { background: var(--grad-sun); }
.ph--4 { background: linear-gradient(135deg, #4CC9F0, #9B5DE5); }
.ph--5 { background: linear-gradient(135deg, #FF8A3D, #FF4FA3); }
.ph--6 { background: linear-gradient(135deg, #5BD86B, #4CC9F0); }
.ph--video { background: var(--grad-hero); }
.ph__dots { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.55) 2px, transparent 2px); background-size: 22px 22px; }

/* ---------- 7. Marquee şerit ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; width: max-content; animation: scroll-x 26s linear infinite; will-change: transform; }
.marquee span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; display: inline-flex; align-items: center; gap: 12px; padding-inline-end: 40px; white-space: nowrap; }
.marquee span::after { content: "🫧"; }
[dir="rtl"] .marquee__track { animation-direction: reverse; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 8. Kartlar / gridler ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Ürün kartı */
.product__media {
  aspect-ratio: 11 / 15;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product__body { padding: 18px 18px 20px; }
.product__cat { font-size: 1.02rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); }
.product__name { font-size: 1.2rem; margin: 6px 0 6px; }
.product__desc { font-size: .94rem; color: var(--ink-soft); min-height: 2.8em; }
.product__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.product__price { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.product__buy { padding: 11px 16px; font-size: .92rem; }

/* Kategori çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip { padding: 10px 18px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink); transition: .18s; }
.chip:hover { color: var(--purple); }
.chip.is-active { background: var(--ink); color: #fff; }

/* Etkinlik kartı */
.event { display: grid; grid-template-columns: 150px 1fr; gap: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.event:hover { box-shadow: var(--shadow-md); }
.event__date { background: var(--grad-primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.event__day { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 700; }
.event__mon { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.event__yr { opacity: .85; font-size: .85rem; }
.event__body { padding: 20px 22px; }
.event__title { font-size: 1.35rem; margin-bottom: 8px; }
.event__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: .92rem; font-weight: 500; margin-bottom: 10px; }
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event__badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 11px; border-radius: var(--r-pill); }
.badge--soon { background: rgba(91,216,107,.18); color: #2f9e3f; }
.badge--past { background: rgba(43,27,61,.10); color: var(--ink-soft); }

/* Değer kartı */
.value { background: #fff; border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: center; }
.value__icon { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px; }
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: .96rem; }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a, .gallery .tile { aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.gallery a:hover { transform: scale(1.03) rotate(-1deg); }
.gallery .tall { grid-row: span 2; aspect-ratio: 1/2; }

/* Galeri yatay şerit (ana sayfa) */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.strip > * { scroll-snap-align: start; aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- 9. Akordeon (SSS) ---------- */
.accordion { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.acc { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-align: start; color: var(--ink); }
.acc__q .plus { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-size: 1.3rem; transition: transform .25s ease; }
.acc.open .acc__q .plus { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc__a p { padding: 0 22px 22px; color: var(--ink-soft); }

/* ---------- 10. Formlar ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; padding: 14px 16px; border-radius: var(--r-md);
  border: 2px solid var(--line); background: #fff; color: var(--ink); width: 100%; transition: border-color .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--purple); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- 11. İletişim & info kutuları ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 16px 18px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.info-item .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex: 0 0 auto; }
.info-item b { display: block; }
.info-item span { color: var(--ink-soft); font-size: .95rem; }
.map { aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 0; width: 100%; }

/* ---------- 12. Renkli arka plan blokları ---------- */
.band { border-radius: var(--r-xl); padding: 56px; color: #fff; position: relative; overflow: hidden; }
.band--primary { background: var(--grad-primary); }
.band--hero { background: var(--grad-hero); }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.92); }
.band--cta { text-align: center; }
.band--cta .btn--ghost { background: #fff; }

/* Dekoratif blob */
.blob { position: absolute; border-radius: 46% 54% 60% 40% / 55% 48% 52% 45%; filter: blur(2px); opacity: .5; z-index: 0; animation: blobmove 9s ease-in-out infinite; }
@keyframes blobmove { 0%,100%{ transform: translateY(0) scale(1);} 50%{ transform: translateY(-18px) scale(1.06);} }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.78); display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.footer-logo b { color: var(--pink); }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.10); display: grid; place-items: center; font-size: 1.2rem; }
.socials a:hover { background: var(--grad-primary); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.6); font-size: .9rem; }

/* ---------- 14. Yüzen WhatsApp butonu ---------- */
.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45); animation: pulse 2.4s infinite; }
.wa-float svg { width: 32px; height: 32px; }
@keyframes pulse { 0%,100%{ box-shadow: 0 12px 30px rgba(37,211,102,.45);} 50%{ box-shadow: 0 12px 40px rgba(37,211,102,.7);} }

/* ---------- 15. Animasyon yardımcıları ---------- */
.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 16. Mobil menü paneli ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 99; background: var(--cream); padding: calc(var(--header-h) + 20px) 24px 40px; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
body.menu-open .mobile-nav { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; padding: 14px 8px; border-bottom: 1px solid var(--line); }
.mobile-nav a:hover { color: var(--purple); }

/* ---------- 17. Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 76px; }
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav, .lang__btn .lang__label { display: none; }
  .logo__img { height: 56px; max-width: 240px; }
  .burger { display: block; }
  .header-tools .lang { display: none; }
  .mobile-nav .lang { display: block; margin-top: 18px; }
  .mobile-nav .lang__btn { display: inline-flex; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 92px 1fr; }
  .event__day { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .band { padding: 38px 26px; }
  .section__title { font-size: 2rem; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Gerçek ürün görseli */
img.product__img {
  width: 60%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Ürün hacmi (ml) */
.product__vol { font-weight: 600; color: var(--ink-soft); font-size: .96rem; margin: 2px 0 10px; }

/* WhatsApp Number Trick */
.wa-trick {
  display: inline-grid;
}
.wa-trick::before, .wa-trick::after {
  grid-area: 1/1;
  animation: waFade 4s infinite;
}
.wa-trick::before {
  content: "7 54 63";
}
.wa-trick::after {
  content: " SLIME";
  animation-delay: -2s;
}
@keyframes waFade {
  0%, 35% { opacity: 1; transform: translateY(0); }
  45%, 55% { opacity: 0; transform: translateY(-5px); }
  65%, 100% { opacity: 0; transform: translateY(5px); }
}
