/* Hareket katmanı: renk lekeleri, parallax, bildirim kartları, kalpler, harf düşüşü, slogan, rozet parıltısı, hazırlık yazısı, etiketler, pati izi, gece renkleri */
/* =========================================================
   YENİ KATMAN: hareket, derinlik ve etkileşim
   ========================================================= */
:root { --px: 0; --py: 0; }

/* Üst şerit (kayan yazı) */
.ribbon {
  position: relative; z-index: 4; overflow: hidden;
  background: #8a4a24; color: #FBEBD3;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 9px 0; padding-top: max(9px, env(safe-area-inset-top));
}
.ribbon .track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.ribbon .track > span { display: inline-flex; align-items: center; }
.ribbon .item { display: inline-flex; align-items: center; gap: 14px; padding-right: 18px; white-space: nowrap; }
.ribbon svg { width: 13px; height: 13px; color: #F3D9B8; transform: rotate(18deg); }
@keyframes marquee { to { transform: translateX(-50%) } }

/* Arka planda süzülen renk lekeleri */
.aurora { position: absolute; border-radius: 50%; pointer-events: none; }
.aurora.a1 { width: 560px; height: 560px; left: -180px; top: -200px; background: radial-gradient(circle, rgba(246,201,168,.55), transparent 65%); animation: blob1 22s ease-in-out infinite alternate; }
.aurora.a2 { width: 480px; height: 480px; right: -140px; top: 28%; background: radial-gradient(circle, rgba(200,214,160,.5), transparent 65%); animation: blob2 26s ease-in-out infinite alternate; }
.aurora.a3 { width: 420px; height: 420px; left: 28%; top: 40%; background: radial-gradient(circle, rgba(243,196,204,.35), transparent 65%); animation: blob1 30s ease-in-out -8s infinite alternate-reverse; }
@keyframes blob1 { from { transform: translate(0,0) scale(1) } to { transform: translate(140px,90px) scale(1.2) } }
@keyframes blob2 { from { transform: translate(0,0) scale(1.1) } to { transform: translate(-160px,-70px) scale(.9) } }
.night .aurora.a1 { background: radial-gradient(circle, rgba(88,72,150,.45), transparent 65%); }
.night .aurora.a2 { background: radial-gradient(circle, rgba(46,100,100,.4), transparent 65%); }
.night .aurora.a3 { background: radial-gradient(circle, rgba(110,60,105,.35), transparent 65%); }

/* Fareyle derinlik (parallax) */
.sun, .moon { translate: calc(var(--px) * -26px) calc(var(--py) * -18px); }
.cloud.c1 { translate: calc(var(--px) * -14px) calc(var(--py) * -8px); }
.cloud.c3 { translate: calc(var(--px) * -8px) calc(var(--py) * -5px); }
.hero-wrap { translate: calc(var(--px) * 10px) calc(var(--py) * 8px); }
.horizon { translate: calc(var(--px) * -14px) 0; }
.tree1, .tree2 { translate: calc(var(--px) * 8px) 0; }

/* Kahraman köpek ve etrafındaki bildirim kartları */
.hero-wrap { position: relative; display: grid; place-items: center; }
.heart { position: absolute; z-index: 2; width: 16px; height: 16px; color: #E6788A; opacity: 0; pointer-events: none; animation: heartUp 5s ease-out infinite; }
.heart.h1 { left: 20%; top: 30%; animation-delay: 1.8s; }
.heart.h2 { left: 74%; top: 22%; width: 12px; height: 12px; animation-delay: 3.4s; }
.heart.h3 { left: 60%; top: 10%; width: 14px; height: 14px; animation-delay: 4.6s; }
@keyframes heartUp {
  0%   { opacity: 0; transform: translateY(10px) scale(.4) }
  12%  { opacity: .95; transform: translateY(0) scale(1) }
  60%  { opacity: .6 }
  100% { opacity: 0; transform: translate(12px,-80px) scale(.8) rotate(12deg) }
}

.notif {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; text-align: left; white-space: nowrap;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(138,74,36,.10); border-radius: 18px;
  box-shadow: 0 12px 32px rgba(60,40,25,.12);
  animation: notifIn .7s cubic-bezier(.34,1.56,.64,1) both, float 5.5s ease-in-out infinite;
}
@keyframes notifIn { from { opacity: 0; scale: .5 } to { opacity: 1; scale: 1 } }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(var(--rot,0deg)) }
  50%     { transform: translateY(-11px) rotate(calc(var(--rot,0deg) * -1)) }
}
.notif .av { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.notif .av svg { width: 18px; height: 18px; color: #fff; }
.notif .av::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: #7FB069; border: 2px solid #fff; animation: livePing 2s ease-out infinite;
}
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(127,176,105,.6) } 80%,100% { box-shadow: 0 0 0 7px rgba(127,176,105,0) } }
.notif b { display: block; font-size: 13px; font-weight: 600; color: #2c1e14; }
.notif small { display: block; font-size: 11.5px; color: rgba(60,40,25,.55); margin-top: 2px; }
.notif.n1 { right: calc(100% - 18px); top: 16%; --rot: -3deg; animation-delay: 1.1s, 0s; translate: calc(var(--px) * -22px) calc(var(--py) * -14px); }
.notif.n2 { left: calc(100% - 22px); top: 4%;  --rot: 3deg;  animation-delay: 1.4s, -1.8s; translate: calc(var(--px) * 18px) calc(var(--py) * -18px); }
.notif.n3 { left: calc(100% - 6px); bottom: 12%; --rot: -2deg; animation-delay: 1.7s, -3.2s; translate: calc(var(--px) * 26px) calc(var(--py) * 12px); }
.notif.n1 .av { background: #D9A441; }
.notif.n2 .av { background: #8a4a24; }
.notif.n3 .av { background: #E6788A; }

/* Başlık: harfler tek tek düşer, altına çizgi çizilir */
h1 { animation: none; }
@keyframes drop {
  0%   { opacity: 0; transform: translateY(-70px) rotate(-14deg) }
  60%  { opacity: 1; transform: translateY(8px) rotate(3deg) }
  80%  { transform: translateY(-3px) }
  100% { opacity: 1; transform: none }
}
h1 span { animation: drop .8s cubic-bezier(.34,1.3,.64,1) both; animation-delay: calc(.3s + var(--i, 0) * 70ms); transition: color .3s; }
h1.ready span { animation: none; }
h1.ready span.wave { animation: letterwave .5s ease-in-out; }
h1 span:hover { color: #B0643A; }
.night h1 span:hover { color: #F0CB95; }

.squiggle { display: block; width: min(250px, 62vw); height: 20px; margin: 2px auto 0; overflow: visible; }
.squiggle path { fill: none; stroke: #D9A441; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.3s ease-in-out 1.05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }
.night .squiggle path { stroke: #C9985F; }

/* Değişen slogan */
.tagline { animation-delay: .75s; }
.tagline .lead { display: block; }
.rotator {
  display: inline-grid; margin-top: 2px;
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
  font-size: 1.6em; line-height: 1.2; color: #8a4a24;
}
.rotator span {
  grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(16px); filter: blur(5px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.34,1.56,.64,1), filter .5s ease;
}
.rotator span.on  { opacity: 1; transform: none; filter: none; }
.rotator span.out { opacity: 0; transform: translateY(-16px); filter: blur(5px); }
.night .rotator { color: #F0CB95; }

/* "Yakında" rozeti: parıltı geçer */
.status { position: relative; overflow: hidden; animation-delay: .9s; }
.status::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.8s ease-in-out 2s infinite;
}
@keyframes shine { 0% { transform: translateX(-120%) } 45%,100% { transform: translateX(120%) } }

/* Hazırlık çubuğu: tarih vermeden "üzerinde çalışıyoruz" hissi */
.prep { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 9px; animation: rise .6s ease-out 1s both; }
.prep-bar { position: relative; width: 220px; height: 8px; border-radius: 99px; background: rgba(138,74,36,.12); }
.prep-bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit;
  background: linear-gradient(90deg, #E3B23C, #C9985F 50%, #B0643A);
  animation: fillup 4.2s cubic-bezier(.65,.05,.3,1) infinite;
}
.prep-bar .knob {
  position: absolute; right: -8px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(60,40,25,.22); display: grid; place-items: center;
}
.prep-bar .knob svg { width: 11px; height: 11px; color: #B0643A; }
@keyframes fillup { 0% { width: 0; opacity: 1 } 78% { width: 100%; opacity: 1 } 92% { width: 100%; opacity: 0 } 100% { width: 0; opacity: 0 } }
.prep-text { margin: 0; font-size: 13px; font-weight: 500; color: rgba(60,40,25,.55); }
.prep-text span { display: inline-block; transition: opacity .25s, transform .25s; }
.prep-text span.swap { opacity: 0; transform: translateY(5px); }
.night .prep-bar { background: rgba(243,217,184,.14); }
.night .prep-text { color: rgba(237,227,214,.58); }

/* Özellik etiketleri: ikonlu, sırayla belirir, hafifçe süzülür */
.features { animation-delay: 1.05s; }
.features li {
  display: inline-flex; align-items: center; gap: 6px; cursor: default;
  animation: chipIn .55s cubic-bezier(.34,1.56,.64,1) both, chipFloat 4s ease-in-out infinite;
  animation-delay: calc(1.15s + var(--i, 0) * .09s), calc(var(--i, 0) * -.9s);
  transition: background .25s, color .25s, box-shadow .25s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.features li svg { width: 15px; height: 15px; flex: none; }
.features li:hover { background: #8a4a24; color: #fff; box-shadow: 0 8px 18px rgba(138,74,36,.25); transform: translateY(-3px) rotate(-2deg); }
@keyframes chipIn { from { opacity: 0; scale: .6 } to { opacity: 1; scale: 1 } }
@keyframes chipFloat { 0%,100% { translate: 0 0 } 50% { translate: 0 -3px } }
.night .features li:hover { background: #F0CB95; color: #1E1A2B; }

/* Paylaş butonu */
main { padding-bottom: 140px; }
.share {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font: 600 14px 'Work Sans', system-ui, sans-serif; color: #8a4a24;
  background: transparent; border: 1.5px solid rgba(138,74,36,.35);
  transition: background .25s, color .25s, border-color .25s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  animation: rise .6s ease-out 1.3s both;
}
.share svg { width: 16px; height: 16px; transition: transform .3s; }
.share:hover { background: #8a4a24; color: #fff; border-color: #8a4a24; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(138,74,36,.28); }
.share:hover svg { transform: translateY(-2px); }
.share:active { transform: scale(.96); }
.share:focus-visible { outline: 2px dashed #8a4a24; outline-offset: 4px; }
.night .share { color: #F0CB95; border-color: rgba(243,217,184,.35); }
.night .share:hover { background: #F0CB95; color: #1E1A2B; border-color: #F0CB95; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #2c1e14; color: #FBEBD3; font-size: 14px; font-weight: 500;
  padding: 11px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: opacity .3s, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* İmleç pati izi ve dokunma kalpleri */
.trail { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.trail svg { position: absolute; width: 18px; height: 18px; color: #8a4a24; opacity: 0; animation: pawfade 1.4s ease-out forwards; }
@keyframes pawfade { 0% { opacity: 0; scale: .4 } 15% { opacity: .32; scale: 1 } 100% { opacity: 0; scale: .9 } }
.night .trail svg { color: #F3D9B8; }
.pop-heart {
  position: fixed; z-index: 61; width: 22px; height: 22px; color: #E6788A; pointer-events: none;
  transform: translate(-50%,-50%); opacity: 0;
  animation: heartPop 1.1s ease-out forwards;
}
@keyframes heartPop {
  0%   { opacity: 0; scale: .3; translate: 0 0 }
  20%  { opacity: 1; scale: 1.15 }
  100% { opacity: 0; scale: .8; translate: var(--dx, 0px) -60px }
}

/* Gece: yeni öğeler */
.night .ribbon { background: #2E2742; color: #F0CB95; }
.night .notif { background: rgba(40,34,58,.82); border-color: rgba(243,217,184,.12); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.night .notif b { color: #F7EDDE; }
.night .notif small { color: rgba(237,227,214,.55); }
.night .notif .av::after { border-color: #28223A; }

@media (max-width: 600px) {
  .prep-bar { width: 180px; }
  .share { font-size: 13.5px; padding: 9px 16px; margin-top: 18px; }
  .ribbon { font-size: 11px; }
}
