:root {
  --bg: #14070d;
  --bg2: #22101a;
  --rose: #ff6b9a;
  --rose-deep: #c23a68;
  --rose-soft: #ffb8cc;
  --gold: #ecc9a2;
  --cream: #fff4ec;
  --text: #fbe9ef;
  --muted: #c99aab;
  --glass: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 184, 204, .18);
  --script: "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Quicksand", system-ui, sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(194, 58, 104, .35), transparent 60%),
    radial-gradient(900px 600px at 110% 30%, rgba(236, 201, 162, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.script { font-family: var(--script); font-weight: 400; }
img, video { display: block; max-width: 100%; }

/* ---------- uçuşan kalpler ---------- */
.hearts-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hearts-bg span {
  position: absolute; bottom: -40px;
  color: var(--rose);
  opacity: 0;
  animation: rise linear infinite;
  filter: blur(.3px);
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
  10% { opacity: var(--o, .5); }
  50% { transform: translateY(-55vh) translateX(var(--dx, 20px)) rotate(15deg); }
  90% { opacity: var(--o, .5); }
  100% { transform: translateY(-115vh) translateX(0) rotate(-10deg); opacity: 0; }
}

/* ---------- butonlar ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: 600 1rem var(--sans);
  color: #fff;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 10px 30px -10px rgba(255, 107, 154, .7);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 107, 154, .85); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.wide { width: 100%; }

/* ---------- giriş ---------- */
.gate {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 24px 16px;
}
.gate-card {
  width: min(420px, 100%);
  text-align: center;
  padding: 44px 28px 32px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  animation: fadeUp .9s ease both;
}
.gate-card.shake { animation: shake .45s; }
.gate-heart svg { width: 64px; height: 64px; fill: var(--rose); filter: drop-shadow(0 0 18px rgba(255,107,154,.7)); animation: beat 1.4s ease-in-out infinite; }
.gate h1 { font-size: clamp(2.6rem, 9vw, 3.4rem); margin: 10px 0 4px; color: var(--rose-soft); }
.gate-sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; }
.gate form { display: flex; flex-direction: column; gap: 12px; }
.gate input {
  width: 100%;
  padding: .95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font: 500 1.05rem var(--sans);
  text-align: center;
  letter-spacing: .15em;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.gate input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255,107,154,.18); }
.hint-btn { margin-top: 16px; background: none; border: 0; color: var(--muted); font: 500 .9rem var(--sans); cursor: pointer; text-decoration: underline dotted; }
.hint { font-family: var(--serif); font-style: italic; color: var(--gold); margin: 8px 0 0; }
.gate-err { min-height: 1.3em; color: var(--rose-soft); margin: 10px 0 0; font-size: .95rem; }
.gate.leaving { animation: gateOut .9s ease forwards; }

@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes gateOut { to { opacity: 0; transform: scale(1.08); filter: blur(8px); } }

/* ---------- uygulama ---------- */
main { position: relative; z-index: 1; animation: fadeIn 1.2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 20;
  display: flex; align-items: center; gap: 2px;
  max-width: calc(100% - 32px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(20, 7, 13, .55);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--text); text-decoration: none; white-space: nowrap;
  font-size: .9rem; font-weight: 500;
  padding: .5rem .9rem; border-radius: 999px;
  transition: background .2s;
}
.nav a:hover, .nav a.active { background: rgba(255,107,154,.2); }
.lock { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; cursor: pointer; }
.lock svg { width: 16px; height: 16px; fill: var(--muted); }
.lock:hover svg { fill: var(--rose-soft); }

/* ---------- kapak ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
}
.hero-slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
.hero-slide.placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,107,154,.5), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(236,201,162,.35), transparent 50%),
    linear-gradient(135deg, #3a1225, #14070d);
}
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,7,13,.35), rgba(20,7,13,.55) 60%, var(--bg)),
    radial-gradient(ellipse at center, transparent 30%, rgba(20,7,13,.6));
}
.hero-content { position: relative; padding: 0 16px; animation: fadeUp 1.4s .3s ease both; }
.eyebrow { font-size: .78rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.hero-title { font-size: clamp(4rem, 16vw, 8.5rem); line-height: 1; margin: 0; color: var(--cream); text-shadow: 0 0 40px rgba(255,107,154,.55); }
.typer { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 4vw, 1.7rem); min-height: 2.6em; margin: 14px auto 26px; max-width: 640px; color: var(--rose-soft); }
.caret { animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.counter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.counter div {
  min-width: 74px;
  padding: 12px 10px 8px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.counter b { display: block; font: 600 1.9rem var(--serif); color: var(--cream); font-variant-numeric: tabular-nums; }
.counter span { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.counter-cap { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 12px 0 0; }
.scroll-down { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--rose-soft); border-radius: 14px; opacity: .8; }
.scroll-down span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rose-soft); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- bölümler ---------- */
.section { padding: 96px 0 40px; }
.sec-head { text-align: center; padding: 0 16px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(3rem, 11vw, 4.6rem); margin: 0; line-height: 1.05; color: var(--rose-soft); }
.sec-sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 6px 0 0; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- kaydırıcı ---------- */
.slider { position: relative; }
.track {
  display: flex; gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px max(16px, calc(50% - 160px)) 40px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.card {
  flex: none;
  width: 320px; max-width: calc(100vw - 64px);
  scroll-snap-align: center;
  padding: 12px 12px 18px;
  border-radius: 6px;
  background: var(--cream);
  color: #3a1a26;
  box-shadow: 0 25px 50px -20px rgba(0,0,0,.8);
  transform: rotate(var(--rot, 0deg)) scale(.92);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
  cursor: pointer;
  border: 0; text-align: left; font: inherit;
}
.card.center { transform: rotate(0deg) scale(1); box-shadow: 0 35px 70px -25px rgba(255,107,154,.55); }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: #2a0f1b; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph, .ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,107,154,.55), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(236,201,162,.45), transparent 55%),
    linear-gradient(160deg, #4a1630, #1d0911);
  color: var(--cream);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  padding: 16px;
}
.ph::before { content: "♥"; display: block; font-size: 2.4rem; font-style: normal; color: var(--rose-soft); margin-bottom: 6px; }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.note { padding: 28px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.note::before { font-size: 2rem; margin-bottom: 10px; }
.note-text {
  margin: 0;
  font-size: 1.3rem; line-height: 1.45;
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden;
}
.lb-media .note { overflow-y: auto; }
.lb-media .note-text { font-size: 1.45rem; -webkit-line-clamp: unset; display: block; overflow: visible; }
.card-media .card-logo {
  position: absolute; top: 10px; right: 10px;
  width: 52px; height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.play { transition: opacity .4s; }
.card-media.playing .play { opacity: 0; }
.play::after { content: ""; margin-left: 4px; border-left: 18px solid var(--rose-deep); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.card-cap { font-family: var(--script); font-size: 1.75rem; line-height: 1.15; margin: 12px 4px 0; }
.card-date { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #9c6a7c; margin: 4px 4px 0; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 48px; height: 48px; margin-top: -34px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: rgba(20,7,13,.6);
  color: var(--cream);
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s;
}
.slider-arrow:hover { background: var(--rose-deep); }
.slider-arrow.prev { left: max(12px, calc(50% - 260px)); }
.slider-arrow.next { right: max(12px, calc(50% - 260px)); }
.slider-count { text-align: center; color: var(--muted); font-size: .9rem; letter-spacing: .2em; margin: 0; }

/* ---------- tarihler ---------- */
.next-day {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto 50px;
  text-align: center;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,107,154,.18), rgba(236,201,162,.08));
  border: 1px solid var(--glass-line);
}
.next-day .label { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.next-day .title { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 2px; color: var(--cream); }
.next-day .left { font-family: var(--serif); font-style: italic; color: var(--rose-soft); font-size: 1.15rem; }

.timeline { list-style: none; margin: 0 auto; padding: 0 16px; width: min(760px, 100%); position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 31px; width: 2px; background: linear-gradient(var(--rose), transparent); }
.tl-item { position: relative; padding-left: 52px; margin-bottom: 40px; }
.tl-dot { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 6px rgba(255,107,154,.2), 0 0 20px var(--rose); }
.tl-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.tl-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.tl-card:hover .tl-photo img { transform: scale(1.06); }
.tl-body { padding: 18px 20px 22px; }
.tl-date { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tl-body h3 { font-family: var(--script); font-weight: 400; font-size: 2.3rem; margin: 4px 0 6px; color: var(--rose-soft); }
.tl-body p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; margin: 0; color: var(--text); }
.tl-since { margin-top: 10px !important; font-style: italic; color: var(--muted) !important; font-size: 1rem !important; }

/* ---------- anı ekle ---------- */
.add-form {
  width: min(620px, calc(100% - 32px));
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 16px;
  border: 2px dashed rgba(255,184,204,.4);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.drop:hover, .drop.over { background: rgba(255,107,154,.1); border-color: var(--rose); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { font-size: 2.2rem; color: var(--rose); line-height: 1; }
.drop-text { color: var(--text); }
.drop-text small { color: var(--muted); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.previews:empty { display: none; }
.pv { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #2a0f1b; }
.pv img, .pv video { width: 100%; height: 100%; object-fit: cover; }
.pv button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.pv .vid-tag { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 6px; }
.drop-text em { color: var(--muted); font-size: .85em; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.field textarea {
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font: 400 1.15rem/1.45 var(--serif);
  resize: vertical;
  min-height: 110px;
  outline: none;
}
.field textarea:focus { border-color: var(--rose); }
.add-row { display: grid; grid-template-columns: 1fr 170px; gap: 12px; }
.add-row label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.add-row input {
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font: 500 1rem var(--sans);
  outline: none;
  color-scheme: dark;
}
.add-row input:focus { border-color: var(--rose); }

/* ---------- alt bilgi ---------- */
.footer { text-align: center; padding: 70px 16px 60px; color: var(--muted); font-family: var(--serif); font-style: italic; }
.footer .script { font-size: 3rem; color: var(--rose); margin: 0; font-style: normal; }
.footer p { margin: 0; }

/* ---------- büyük görünüm ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 3, 7, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .3s ease;
  padding: 16px;
}
.lb-figure { margin: 0; max-width: min(1000px, 100%); display: flex; flex-direction: column; align-items: center; }
.lb-media img, .lb-media video { max-height: 76vh; max-height: 76dvh; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.lb-media .ph { width: min(420px, 85vw); aspect-ratio: 4 / 5; border-radius: 10px; }
.lb-figure figcaption { text-align: center; margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lb-cap { font-family: var(--script); font-size: 2.2rem; color: var(--rose-soft); }
.lb-date { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lb-desc { max-width: 560px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--text); white-space: pre-line; margin-top: 6px; }
.lb-desc:empty { display: none; }
.lb-del { margin-top: 10px; background: none; border: 1px solid rgba(255,184,204,.3); color: var(--muted); border-radius: 999px; padding: .4rem 1rem; cursor: pointer; font: 500 .8rem var(--sans); }
.lb-del:hover { color: #fff; border-color: var(--rose); }
.lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-nav:hover, .lb-close:hover { background: var(--rose-deep); }

/* ---------- bildirim ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 120px);
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(255,107,154,.8);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- mobil ---------- */
@media (max-width: 640px) {
  .slider-arrow { display: none; }
  .add-row { grid-template-columns: 1fr; }
  .counter div { min-width: 64px; }
  .counter b { font-size: 1.5rem; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .nav a { padding: .45rem .7rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
