/* ═══════════════════════════════════════════
   Sude 🎀 doğum günü — pastel scrapbook teması
   ═══════════════════════════════════════════ */

:root {
  --krem: #fdf6ee;
  --kagit: #fffdf8;
  --pembe: #f4a7b9;
  --pembe-acik: #fbdde6;
  --pembe-koyu: #d96a85;
  --kahve: #6f554a;
  --kahve-acik: #a08476;
  --sari: #f9d5a7;
  --mint: #bfe3d0;
  --lila: #d9c7ee;
  --golge: 0 10px 24px rgba(217, 106, 133, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--kahve);
  background-color: var(--krem);
  background-image: radial-gradient(circle, rgba(217, 106, 133, 0.07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  text-align: center;
}

/* ── konfeti tuvali ── */
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ── genel bölüm düzeni ── */
.section {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 22px;
}

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.15;
}

.marker {
  background: linear-gradient(transparent 62%, var(--pembe-acik) 62%);
  padding: 0 6px;
  border-radius: 4px;
}

.lead { font-size: 1.02rem; line-height: 1.6; color: var(--kahve-acik); }

.tiny { font-size: 0.8rem; color: var(--kahve-acik); margin-top: 10px; }

.btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pembe), var(--pembe-koyu));
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  margin-top: 26px;
  cursor: pointer;
  box-shadow: var(--golge);
  transition: transform 0.15s ease;
}
.btn:active { transform: scale(0.94); }

/* ── washi bantlar ── */
.tape {
  position: absolute;
  width: 130px;
  height: 30px;
  left: 50%;
  margin-left: -65px;
  background: repeating-linear-gradient(
    45deg,
    rgba(244, 167, 185, 0.8) 0 12px,
    rgba(249, 213, 167, 0.8) 12px 24px
  );
  opacity: 0.9;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(111, 85, 74, 0.12);
}
.tape-hero { top: 26px; transform: rotate(-4deg); }
.tape-small { top: 34px; transform: rotate(3deg); width: 100px; margin-left: -50px; height: 24px; }
.tape-letter { top: -14px; transform: rotate(-3deg); }

/* ── çıkartmalar ── */
.sticker {
  position: absolute;
  font-size: 1.7rem;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(111, 85, 74, 0.15));
}
.st1 { top: 70px; left: 8%; transform: rotate(-16deg); }
.st2 { top: 32%; right: 7%; transform: rotate(12deg); }
.st3 { top: 14%; right: 14%; transform: rotate(-6deg); font-size: 2rem; }
.st4 { bottom: 26%; left: 7%; transform: rotate(10deg); }
.st5 { bottom: 12%; right: 10%; transform: rotate(-14deg); }
.st6 { top: 46%; left: 12%; transform: rotate(20deg); }
.st7 { top: 60px; right: 8%; transform: rotate(14deg); }
.st8 { top: 70px; left: 8%; transform: rotate(-12deg); }
.st9 { bottom: 80px; right: 8%; transform: rotate(10deg); }

/* ── pati ayraç ── */
.paw-divider {
  font-size: 1.1rem;
  opacity: 0.45;
  letter-spacing: 8px;
  padding: 6px 0;
}

/* ═══════════ GİRİŞ ═══════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.script-line {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  color: var(--kahve-acik);
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 16vw, 5.5rem);
  letter-spacing: 0.06em;
  color: var(--pembe-koyu);
  text-shadow: 3px 3px 0 var(--pembe-acik);
  line-height: 1;
  margin: 6px 0 2px;
}
.hero-title .bow {
  font-size: 0.45em;
  display: inline-block;
  transform: rotate(14deg) translateY(-0.6em);
  text-shadow: none;
}

.hero-sub {
  font-family: 'Caveat', cursive;
  font-size: 2.1rem;
  color: var(--kahve);
  margin-top: 4px;
}

.hero-date {
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: #fff;
  background: var(--pembe);
  border-radius: 999px;
  padding: 6px 18px 6px 22px;
  margin-top: 14px;
  box-shadow: var(--golge);
}

.hero-cat {
  width: min(200px, 52vw);
  margin-top: 26px;
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--kahve-acik);
}
.paw-bounce { display: inline-block; animation: bounce 1.4s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════════ PASTA ═══════════ */
.cake {
  position: relative;
  width: 290px;
  height: 315px;
  margin: 30px auto 0;
}

.plate {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 272px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(111, 85, 74, 0.15);
}

.layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}
.layer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 14px;
  background-image: radial-gradient(circle 9px at 9px 0, #fff7ef 97%, transparent 100%);
  background-size: 18px 14px;
  background-repeat: repeat-x;
}
.layer-1 {
  bottom: 24px;
  width: 240px;
  height: 72px;
  background: #f6b8c6;
}
.layer-2 {
  bottom: 94px;
  width: 200px;
  height: 62px;
  background: #fbd8e0;
  background-image:
    radial-gradient(circle, #d96a85 2px, transparent 2.6px),
    radial-gradient(circle, #f2c94c 2px, transparent 2.6px),
    radial-gradient(circle, #7fbfa0 2px, transparent 2.6px);
  background-size: 46px 34px, 38px 28px, 52px 40px;
  background-position: 8px 18px, 24px 26px, 14px 30px;
}
.layer-3 {
  bottom: 154px;
  width: 160px;
  height: 54px;
  background: #f6b8c6;
}

.candles {
  position: absolute;
  bottom: 205px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 2;
}

.candle {
  position: relative;
  width: 10px;
  height: 44px;
  background: repeating-linear-gradient(45deg, #fff 0 4px, var(--pembe) 4px 8px);
  border-radius: 3px;
  cursor: pointer;
}
.candle::after {
  /* fitil */
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 5px;
  background: #8a6a5c;
}

.flame {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 18px;
  background: radial-gradient(circle at 50% 65%, #fff6bf 15%, #ffc94d 55%, #ff9d3c 90%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  box-shadow: 0 0 16px 5px rgba(255, 190, 80, 0.55);
  animation: flicker 0.32s ease-in-out infinite alternate;
  transition: opacity 0.3s, transform 0.3s;
}
@keyframes flicker {
  from { transform: translateX(-50%) scale(1) rotate(-2deg); }
  to   { transform: translateX(-52%) scale(0.88) rotate(3deg); }
}

.candle.out .flame {
  animation: none;
  opacity: 0;
  transform: translateX(-50%) scale(0.15);
  box-shadow: none;
}
.candle.out::before {
  /* duman */
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(150, 150, 150, 0.55);
  animation: puff 1.1s ease-out forwards;
}
@keyframes puff {
  from { transform: translate(-50%, 0) scale(0.6); opacity: 0.7; }
  to   { transform: translate(-50%, -30px) scale(2.8); opacity: 0; }
}

.cake-msg {
  display: none;
  margin-top: 26px;
  font-size: 1.15rem;
  line-height: 1.6;
}
.cake-msg.show { display: block; animation: pop-in 0.6s ease both; }
.cake-msg strong {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  color: var(--pembe-koyu);
}
@keyframes pop-in {
  from { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); }
  to   { transform: scale(1); opacity: 1; }
}

/* ═══════════ 7 ŞEY KARTLARI ═══════════ */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.card {
  width: 150px;
  aspect-ratio: 3 / 4;
  perspective: 900px;
  cursor: pointer;
}
.card:nth-child(odd)  { transform: rotate(-2.2deg); }
.card:nth-child(even) { transform: rotate(2deg); }

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 1.4, 0.6, 1);
}
.card.flipped .card-inner { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: var(--golge);
}

.card-front {
  background: var(--kagit);
  border: 2px dashed var(--pembe);
}
.card-front .card-no {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  font-weight: 700;
  color: var(--pembe-koyu);
  line-height: 1;
}
.card-front .card-emoji { font-size: 1.5rem; margin-top: 8px; }

.card-back {
  background: linear-gradient(160deg, var(--pembe-acik), var(--kagit) 70%);
  transform: rotateY(180deg);
}
.card-back h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--pembe-koyu);
  margin-bottom: 6px;
}
.card-back p { font-size: 0.78rem; line-height: 1.45; color: var(--kahve); }

/* ═══════════ KEDİLİ KÖŞE ═══════════ */
.pet-wrap {
  position: relative;
  width: min(280px, 74vw);
  margin: 26px auto 0;
}

#petCat {
  width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
#petCat .tail {
  transform-origin: 192px 168px;
  animation: wag 2.4s ease-in-out infinite;
}
@keyframes wag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}
#petCat .eyes-happy { display: none; }
#petCat.happy .eyes-open { display: none; }
#petCat.happy .eyes-happy { display: block; }
#petCat.happy { transform: scale(1.04); }

.purr {
  position: absolute;
  top: -8px;
  right: -14px;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--pembe-koyu);
  opacity: 0;
  pointer-events: none;
}
.purr.show { animation: purr-float 1.1s ease-out forwards; }
@keyframes purr-float {
  from { opacity: 0; transform: translateY(8px); }
  25%  { opacity: 1; }
  to   { opacity: 0; transform: translateY(-22px); }
}

.pet-count {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--kahve-acik);
}
.pet-count strong { color: var(--pembe-koyu); }

.floatie {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 900;
  animation: float-up 1.2s ease-out forwards;
}
@keyframes float-up {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  to   { opacity: 0; transform: translate(-50%, -170%) scale(1.3) rotate(12deg); }
}

.pawprint {
  position: fixed;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 900;
  opacity: 0.85;
  animation: paw-fade 1.4s ease-out forwards;
}
@keyframes paw-fade {
  to { opacity: 0; transform: scale(1.25); }
}

/* ═══════════ MEKTUP ═══════════ */
.envelope {
  position: relative;
  width: min(310px, 84vw);
  height: 200px;
  margin: 30px auto 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 12px 20px rgba(217, 106, 133, 0.25));
  transition: transform 0.2s ease;
}
.envelope:not(.open):hover { transform: scale(1.03); }

.env-back {
  position: absolute;
  inset: 0;
  background: #f0a8ba;
  border-radius: 10px;
}
.env-paper {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 155px;
  background: var(--kagit);
  border-radius: 6px;
  transition: transform 0.7s ease 0.45s;
}
.env-front {
  position: absolute;
  inset: 0;
  background: #f7c3d0;
  border-radius: 10px;
  clip-path: polygon(0 100%, 100% 100%, 100% 24%, 50% 64%, 0 24%);
  z-index: 3;
}
.env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 54%;
  background: #ef9fb4;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 10px 10px 0 0;
  transform-origin: top center;
  transition: transform 0.55s ease;
  z-index: 4;
}
.env-seal {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 34px;
  z-index: 5;
  transition: 0.45s ease;
  animation: seal-pulse 1.6s ease-in-out infinite;
}
@keyframes seal-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .env-seal {
  animation: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.8) rotate(24deg);
}
.envelope.open .env-paper { transform: translateY(-58px); }

.letter {
  display: none;
  position: relative;
  margin: 44px auto 0;
  max-width: 480px;
  background: var(--kagit);
  background-image: repeating-linear-gradient(
    transparent 0 30px,
    rgba(217, 106, 133, 0.16) 30px 31px
  );
  border-radius: 8px;
  box-shadow: var(--golge);
  padding: 34px 26px 26px;
  text-align: left;
}
.letter.show { display: block; animation: letter-in 0.8s ease both; }
@keyframes letter-in {
  from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

.letter, .letter p {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  line-height: 31px;
  color: var(--kahve);
}
.letter-greet { font-weight: 700; color: var(--pembe-koyu); }
#letterBody p { margin-top: 31px; }
.letter-sign {
  margin-top: 31px;
  text-align: right;
  font-weight: 700;
  color: var(--pembe-koyu);
}

/* ═══════════ KAPANIŞ ═══════════ */
.footer { padding-bottom: 110px; }
.footer-big {
  font-family: 'Caveat', cursive;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pembe-koyu);
}
.footer-sign { margin-top: 16px; font-size: 1.35rem; }

/* ── gezinen kedi ── */
.walking-cat {
  position: fixed;
  bottom: 4px;
  left: 0;
  font-size: 32px;
  z-index: 50;
  pointer-events: none;
  animation: stroll 36s linear infinite;
  animation-delay: 3s;
  transform: translateX(-60px);
}
@keyframes stroll {
  0%    { transform: translateX(-60px) scaleX(-1); }
  46%   { transform: translateX(calc(100vw + 60px)) scaleX(-1); }
  50%   { transform: translateX(calc(100vw + 60px)) scaleX(1); }
  96%   { transform: translateX(-60px) scaleX(1); }
  100%  { transform: translateX(-60px) scaleX(-1); }
}

/* ═══════════ GENİŞ EKRAN ═══════════ */
@media (min-width: 600px) {
  h2 { font-size: 2.8rem; }
  .lead { font-size: 1.1rem; }
  .card { width: 165px; }
  .cake { transform: scale(1.12); transform-origin: top center; margin-bottom: 40px; }
  .sticker { font-size: 2.1rem; }
}
