/* ---------- koleksiyon ---------- */
body {
  background:
    radial-gradient(80% 60% at 50% 0%, #3a0f2c 0%, rgba(58, 15, 44, 0) 70%),
    radial-gradient(70% 50% at 50% 100%, #24091e 0%, rgba(36, 9, 30, 0) 70%),
    var(--plum);
  background-attachment: fixed;
  min-height: 100vh;
  transition: opacity 0.5s ease;
}
body.leaving { opacity: 0; }

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.col {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) clamp(18px, 5vw, 56px) 60px;
}

/* ---------- ust kisim ---------- */
.col-hero { text-align: center; margin-bottom: clamp(48px, 8vh, 84px); }
.mark { width: 40px; height: 40px; color: var(--rose); animation: slowspin 24s linear infinite; }
@keyframes slowspin { to { transform: rotate(360deg); } }
.col-hero h1 {
  font-size: clamp(4.2rem, 13vw, 7.6rem);
  line-height: 0.95;
  margin: 0.12em 0 0.18em;
  color: #fff;
  text-shadow: 0 0 46px rgba(255, 110, 160, 0.5), 0 0 110px rgba(255, 60, 120, 0.28);
}
.col-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  font-weight: 300;
  color: var(--ink);
}
.col-sub {
  margin: 12px auto 0;
  max-width: 36ch;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.since {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 8px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(24, 8, 20, 0.42);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.since .i { color: var(--rose); fill: rgba(255, 147, 182, 0.35); }
.since span { white-space: nowrap; }
.since-date {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-indent: 0.22em;
  color: var(--ink-dim);
}

/* ---------- raf ---------- */
.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--edge);
}
.shelf-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
#count {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Az hediye varken kartlar sola yigilip sag taraf bos kaliyordu; sabit
   genislikli sutunlar ortalaniyor, koleksiyon buyudukce satirlar doluyor. */
.gifts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px));
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}

.gift {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--edge);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.95);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s,
              opacity 1s cubic-bezier(0.22, 1, 0.36, 1), filter 1s ease;
}
.gift.reveal:not(.in) { transform: perspective(900px) translateY(22px); }
/* parlama: imlecin oldugu yere dusen yumusak isik */
a.gift::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 200, 225, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
a.gift:hover { border-color: rgba(255, 184, 208, 0.4); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 50px -24px rgba(255, 110, 165, 0.55); }
a.gift:hover::after { opacity: 1; }

.gift-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1b0a19;
}
.gift-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
a.gift:hover .gift-cover img { transform: scale(1.05); }
.gift-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 6, 18, 0.55));
  pointer-events: none;
}
.gift-no {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 5, 14, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.gift-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.gift-date {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.85;
}
.gift-title { margin: 0 0 6px; font-size: 1.7rem; font-weight: 400; }
.gift-line { margin: 0 0 16px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }
.gift-open {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px solid rgba(255, 147, 182, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 112, 158, 0.26), rgba(255, 70, 125, 0.12));
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
a.gift:hover .gift-open .i { transform: translateX(3px); }
.gift-open .i { transition: transform 0.3s; }
.gift-open.muted { border-color: var(--edge); background: rgba(24, 8, 20, 0.45); color: var(--ink-dim); }

/* ---------- muhurlu sira ---------- */
.gift.sealed { border-style: dashed; border-color: rgba(255, 184, 208, 0.2); }
.seal-cover {
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 55%, rgba(255, 110, 165, 0.14), transparent 70%), #1b0a19;
}
.envelope { width: 62%; height: auto; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- alt ---------- */
.col-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(56px, 9vh, 90px);
  font-style: italic;
  color: var(--ink-dim);
}
.col-foot .i { color: var(--rose); fill: rgba(255, 147, 182, 0.4); }

@media (prefers-reduced-motion: reduce) {
  .mark, .envelope { animation: none; }
  .gift { transition-duration: 0.01s; }
}

/* base.css'teki .reveal.in transform'u siliyor; egilme geri gelsin */
.gift.reveal.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
