/* ============================================================
   SEVGİ ALBÜMÜ — Sıcak & Romantik tema
   Palet: pembe #DB2777 · yumuşak pembe #F472B6 · altın #A16207
   Tipografi: Great Vibes (başlık) + Cormorant Infant (metin)
   ============================================================ */

:root {
  --primary:      #DB2777;
  --secondary:    #F472B6;
  --accent:       #A16207;   /* zarif altın */
  --bg:           #FDF2F8;   /* krem-pembe */
  --bg-2:         #FFF7FB;   /* daha açık */
  --fg:           #831843;   /* koyu bordo-pembe (yüksek kontrast) */
  --muted:        #B45577;   /* yumuşatılmış metin */
  --border:       #FBCFE8;
  --white:        #FFFFFF;

  --shadow-sm: 0 2px 10px rgba(131, 24, 67, .08);
  --shadow-md: 0 14px 40px -12px rgba(219, 39, 119, .28);
  --shadow-lg: 0 30px 70px -20px rgba(219, 39, 119, .40);

  --serif: "Cormorant Infant", "Georgia", serif;
  --script: "Great Vibes", "Cormorant Infant", cursive;

  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg);
  background:
    radial-gradient(1200px 700px at 80% -10%, #FFE4F1 0%, transparent 55%),
    radial-gradient(900px 600px at -10% 20%, #FDE7CF 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--secondary); color: var(--white); }

/* ---------- Açılış perdesi ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background:
    radial-gradient(800px 500px at 50% 40%, #FFE9F3 0%, transparent 60%),
    linear-gradient(160deg, #FFF7FB, #FCE7F3);
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.curtain.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.curtain__inner { text-align: center; padding: 24px; transform: translateY(8px); }
.curtain__mono {
  display: block; font-size: clamp(.8rem, 2.6vw, 1rem);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); opacity: 0;
  animation: fadeUp 1s var(--ease) .15s forwards;
}
.curtain__names {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3rem, 13vw, 7rem); line-height: 1.05;
  color: var(--primary); margin: .12em 0 .25em;
  opacity: 0; animation: fadeUp 1.1s var(--ease) .45s forwards;
}
.curtain__heart {
  color: var(--secondary); display: inline-flex;
  opacity: 0; animation: fadeUp .9s var(--ease) .9s forwards, beat 1.6s ease-in-out 1.8s infinite;
}

/* ---------- Petals canvas ---------- */
.petals {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; width: 100%; height: 100%;
}

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: grid; place-items: center;
  text-align: center; padding: clamp(24px, 6vw, 64px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 360px at 50% 30%, rgba(255,255,255,.55), transparent 70%);
  will-change: transform;
}
.hero__content { max-width: 760px; }
.hero__eyebrow {
  font-size: clamp(.85rem, 2.4vw, 1.05rem);
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .4em;
}
.hero__title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 15vw, 8.5rem); line-height: 1;
  color: var(--primary); margin: 0;
  text-shadow: 0 6px 30px rgba(219, 39, 119, .18);
}
.hero__subtitle {
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  font-style: italic; color: var(--muted);
  margin: .6em auto 2.2em; max-width: 30ch;
}
.hero__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: .5em;
  font-size: 1rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.hero__scroll:hover { color: var(--accent); transform: translateY(2px); }
.hero__scroll svg { animation: bob 2.2s ease-in-out infinite; }

/* ---------- ALBÜM ---------- */
.album { position: relative; z-index: 2; max-width: var(--maxw);
  margin: 0 auto; padding: clamp(48px, 9vw, 110px) clamp(18px, 5vw, 40px); }
.album__head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
.album__eyebrow {
  font-size: .9rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .3em;
}
.album__title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.05;
  color: var(--primary); margin: 0 0 .25em;
}
.album__intro {
  font-size: clamp(1.05rem, 2.8vw, 1.3rem); font-style: italic;
  color: var(--muted); max-width: 46ch; margin: 0 auto;
}

/* Masonry — CSS grid (soldan sağa okuma sırası, kırpmasız değişken yükseklik) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
  grid-auto-rows: 8px;        /* ince satırlar; her foto JS ile span alır */
  align-items: start;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.photo {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 10px 4px;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  cursor: pointer;
}
.photo:hover, .photo:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  outline: none;
}
.photo__frame {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
}
.photo__img {
  width: 100%; height: auto; display: block;
  transition: transform .7s var(--ease), filter .7s var(--ease);
}
.photo:hover .photo__img { transform: scale(1.05); }

/* Yer-tutucu (fotoğraf yoksa) */
.photo__placeholder {
  display: grid; place-items: center;
  aspect-ratio: 4 / 5; color: var(--secondary);
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(135deg, #FCE7F3, #FBCFE8 60%, #FDE7CF);
}
.photo__placeholder span {
  position: absolute; bottom: 12px; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.photo__placeholder svg { opacity: .85; animation: beat 2.4s ease-in-out infinite; }

.photo__cap {
  padding: 12px 8px 10px; text-align: center;
}
.photo__cap-text { display: block; font-size: 1.18rem; color: var(--fg); }
.photo__cap-date {
  display: block; font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-top: 4px;
}

/* ---------- İTHAF ---------- */
.dedication {
  position: relative; z-index: 2;
  padding: clamp(40px, 8vw, 90px) clamp(18px, 5vw, 40px);
  display: grid; place-items: center;
}
.dedication__card {
  max-width: 640px; text-align: center;
  background: rgba(255,255,255,.66);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(32px, 6vw, 56px); box-shadow: var(--shadow-md);
}
.dedication__heart { color: var(--secondary); animation: beat 2s ease-in-out infinite; }
.dedication__text {
  font-family: var(--script);
  font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1.3;
  color: var(--primary); margin: .3em 0 .4em;
}
.dedication__sign { font-style: italic; color: var(--muted); margin: 0; }

/* ---------- SEVGİ SÖZLEŞMESİ ---------- */
.contract {
  position: relative; z-index: 2;
  padding: clamp(20px, 5vw, 60px) clamp(18px, 5vw, 40px) clamp(40px, 7vw, 80px);
  display: grid; place-items: center;
}
.contract__card {
  max-width: 760px; width: 100%;
  background: rgba(255, 252, 248, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(28px, 6vw, 60px);
  box-shadow: var(--shadow-md);
  position: relative;
}
/* ince altın iç çerçeve */
.contract__card::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(161, 98, 7, .28); border-radius: 16px;
  pointer-events: none;
}
.contract__head { text-align: center; margin-bottom: 32px; position: relative; }
.contract__seal {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  color: var(--secondary);
  background: radial-gradient(circle at 50% 40%, #FFF, #FCE7F3);
  border: 1.5px solid rgba(161, 98, 7, .35);
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.contract__title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1.05;
  color: var(--primary); margin: 0;
}
.contract__sub { font-style: italic; color: var(--muted); margin: .3em 0 0; font-size: clamp(1rem, 2.6vw, 1.2rem); }

.contract__body { position: relative; }
.contract__article {
  margin-bottom: 22px; padding-left: 18px;
  border-left: 2px solid var(--border);
}
.contract__article:last-child { margin-bottom: 0; }
.contract__art-title {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 1.2rem; letter-spacing: .01em; color: var(--accent); margin-bottom: 4px;
}
.contract__article p { margin: 0; font-size: 1.08rem; line-height: 1.7; color: var(--fg); }

.contract__signs {
  display: flex; justify-content: space-around; gap: 24px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.contract__sign { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contract__role { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contract__imza { height: 64px; width: auto; object-fit: contain; margin-bottom: 4px; }
.contract__line { display: block; width: 80%; border-top: 1px solid rgba(131, 24, 67, .35); margin: 0 auto 8px; }
.contract__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--primary); }
.contract__foot { text-align: center; margin: 30px 0 0; font-style: italic; font-size: .92rem; color: var(--muted); }

@media (max-width: 560px) {
  .contract__signs { flex-direction: column; gap: 28px; }
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative; z-index: 2; text-align: center;
  padding: 40px 20px 60px; color: var(--muted);
}
.footer p { margin: .2em 0; }
.footer p:first-child {
  font-family: var(--script); font-size: 2rem; color: var(--primary);
}
.footer__small { font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(75, 12, 40, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  margin: 0; max-width: min(92vw, 1000px); max-height: 90dvh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px;
  transform: scale(.96); transition: transform .4s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
  max-width: 100%; max-height: 62dvh; width: auto; height: auto;
  border-radius: 12px; box-shadow: var(--shadow-lg);
  background: #fff; flex-shrink: 0;
}
.lightbox__caption { text-align: center; color: #FFE9F3; max-width: 62ch; }
.lightbox__cap-text {
  display: block; font-family: var(--script);
  font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; color: #FFF;
}
.lightbox__cap-date {
  display: block; font-size: .76rem; letter-spacing: .24em;
  text-transform: uppercase; color: #FBCFE8; margin-top: 6px;
}
.lightbox__note {
  font-size: clamp(1rem, 2.6vw, 1.18rem); line-height: 1.6;
  color: #FCE7F3; margin: 12px auto 4px; max-width: 56ch;
  font-style: italic;
}
.lightbox__note:empty { display: none; }
.lightbox__btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 560px) {
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
  .lightbox__btn { width: 46px; height: 46px; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Animasyonlar ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
}

/* ---------- Hareketi azalt (erişilebilirlik) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .petals { display: none; }
}
