/* =========================================================
   Mert & Elif · Nişan Davetiyesi
   Tema: krem · rose gold · bordo
   ========================================================= */

:root {
  --bg: #fbf6f1;
  --bg-soft: #f3e9df;
  --cream: #f8efe4;
  --rose: #c9a17a;
  --rose-deep: #b08456;
  --bordo: #6b1f2a;
  --bordo-soft: #8a2b3a;
  --ink: #2a1a1d;
  --muted: #8a7a73;
  --line: rgba(107, 31, 42, 0.18);

  --serif: "Playfair Display", "Cormorant Garamond", serif;
  --serif-soft: "Cormorant Garamond", serif;
  --script: "Great Vibes", cursive;
  --sans: "Poppins", system-ui, sans-serif;

  --radius: 18px;
  --shadow-soft: 0 20px 60px -30px rgba(107, 31, 42, 0.35);
  --shadow-card: 0 10px 30px -15px rgba(42, 26, 29, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 161, 122, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(107, 31, 42, 0.12), transparent 60%);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }

/* ========== Loader ========== */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-monogram {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 96px);
  color: var(--bordo);
  display: flex; gap: 14px;
  letter-spacing: 4px;
}
.loader-monogram span { animation: fadeUp 1.2s ease both; }
.loader-monogram .amp {
  font-family: var(--script);
  color: var(--rose-deep);
  animation-delay: 0.25s;
  font-size: 1.1em;
}
.loader-monogram span:last-child { animation-delay: 0.5s; }
.loader-text {
  margin-top: 18px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  animation: fadeIn 1.2s ease 0.8s both;
}

/* ========== Müzik düğmesi ========== */
.music-toggle {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 50;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.music-toggle:hover { transform: scale(1.06); }
.music-icon {
  display: flex; align-items: flex-end; gap: 3px;
  height: 18px;
}
.music-icon span {
  width: 3px; height: 100%;
  background: var(--bordo);
  border-radius: 2px;
  transform-origin: bottom;
  animation: bars 1.1s ease-in-out infinite;
  animation-play-state: paused;
}
.music-icon span:nth-child(2) { animation-delay: 0.2s; }
.music-icon span:nth-child(3) { animation-delay: 0.4s; }
.music-icon span:nth-child(4) { animation-delay: 0.6s; }
.music-toggle.playing .music-icon span { animation-play-state: running; }
.music-toggle:not(.playing) .music-icon span { transform: scaleY(0.4); }

@keyframes bars {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

/* ========== Uçuşan yapraklar ========== */
.petals {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -40px;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, #e8c2a5, var(--rose));
  border-radius: 150% 0 150% 0;
  opacity: 0.55;
  animation: fall linear infinite;
  filter: blur(0.3px);
}
.petal:nth-child(1)  { left:  5%; animation-duration: 14s; animation-delay:  0s;  transform: rotate(20deg); }
.petal:nth-child(2)  { left: 12%; animation-duration: 18s; animation-delay:  3s;  transform: rotate(-10deg); width: 10px; height: 10px;}
.petal:nth-child(3)  { left: 22%; animation-duration: 16s; animation-delay:  6s;  }
.petal:nth-child(4)  { left: 33%; animation-duration: 20s; animation-delay:  1s;  width: 16px; height: 16px;}
.petal:nth-child(5)  { left: 44%; animation-duration: 15s; animation-delay:  9s;  }
.petal:nth-child(6)  { left: 55%; animation-duration: 19s; animation-delay:  4s;  width: 12px; height: 12px;}
.petal:nth-child(7)  { left: 65%; animation-duration: 17s; animation-delay:  7s;  }
.petal:nth-child(8)  { left: 74%; animation-duration: 13s; animation-delay:  2s;  width: 10px; height: 10px;}
.petal:nth-child(9)  { left: 83%; animation-duration: 21s; animation-delay:  5s;  }
.petal:nth-child(10) { left: 90%; animation-duration: 16s; animation-delay:  8s;  width: 14px; height: 14px;}
.petal:nth-child(11) { left: 95%; animation-duration: 18s; animation-delay: 10s;  }
.petal:nth-child(12) { left: 50%; animation-duration: 22s; animation-delay: 11s;  }

@keyframes fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.6; }
  100% { transform: translate3d(40px, 110vh, 0) rotate(540deg); opacity: 0; }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px;
  z-index: 2;
}
.hero-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  text-align: center;
  padding: 70px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
}
.ornament {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 140px; color: var(--rose);
}
.ornament-top    { top: -20px; }
.ornament-bottom { bottom: -20px; }
.ornament svg { width: 100%; height: auto; }
.ornament path { fill: none; stroke: currentColor; stroke-width: 1.5; }

.hero-eyebrow {
  font-family: var(--script);
  color: var(--rose-deep);
  font-size: clamp(22px, 3.5vw, 28px);
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}
.hero-names {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 4vw, 36px);
  font-size: clamp(54px, 11vw, 110px);
  color: var(--bordo);
  line-height: 1;
}
.hero-names .and {
  font-family: var(--script);
  color: var(--rose-deep);
  font-weight: 400;
  font-size: 0.85em;
  transform: translateY(8px);
}
.hero-sub {
  font-family: var(--serif-soft);
  font-style: italic;
  margin: 18px 0 30px;
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--ink);
  letter-spacing: 0.5px;
}
.hero-date {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--bordo);
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-date-mid {
  display: flex; flex-direction: column;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  font-style: normal;
}
.hero-date-mid em { font-style: normal; }

.scroll-down {
  position: absolute;
  left: 50%; bottom: -60px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--rose);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 6px;
}
.scroll-down span {
  width: 3px; height: 8px;
  background: var(--rose);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ========== Genel Section ========== */
.section {
  position: relative;
  padding: 100px 24px;
  max-width: 960px;
  margin: 0 auto;
  z-index: 2;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  text-align: center;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--bordo);
  margin: 0 0 18px;
  letter-spacing: 1px;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  background: var(--rose);
  margin: 18px auto 0;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif-soft);
  font-size: 18px;
  margin: 0 0 40px;
}

/* ========== Geri sayım ========== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}
.cd-item {
  text-align: center;
  padding: 26px 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}
.cd-item:hover { transform: translateY(-4px); }
.cd-item span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 44px);
  color: var(--bordo);
  font-weight: 600;
}
.cd-item em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== Hikaye ========== */
.story-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif-soft);
  font-size: clamp(18px, 2.4vw, 21px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.85;
}
.story-divider {
  text-align: center;
  margin-top: 30px;
  color: var(--rose);
  font-size: 22px;
  position: relative;
}
.story-divider::before,
.story-divider::after {
  content: "";
  display: inline-block;
  width: 60px; height: 1px;
  background: var(--rose);
  vertical-align: middle;
  margin: 0 14px;
}

/* ========== Bilgi kartları ========== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.info-card {
  text-align: center;
  padding: 36px 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(107, 31, 42, 0.4);
}
.info-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f6e1cf, #e7c4a7);
  color: var(--bordo);
}
.info-icon svg { width: 26px; height: 26px; }
.info-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--bordo);
  margin: 0 0 8px;
  letter-spacing: 1px;
  font-size: 20px;
}
.info-card p { margin: 0; color: var(--ink); font-size: 15px; }

.info-actions {
  margin-top: 40px;
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: 1px solid transparent;
  font-weight: 500;
}
.btn-primary {
  background: linear-gradient(135deg, var(--bordo), var(--bordo-soft));
  color: var(--cream);
  box-shadow: 0 14px 30px -14px rgba(107, 31, 42, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(107, 31, 42, 0.85);
}
.btn-ghost {
  background: transparent;
  color: var(--bordo);
  border-color: var(--bordo);
}
.btn-ghost:hover { background: var(--bordo); color: var(--cream); }
.btn-large { padding: 16px 40px; font-size: 14px; }

/* ========== Harita ========== */
.map-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}
.map-wrapper iframe {
  width: 100%; height: 100%;
  border: 0;
}

/* ========== Galeri & Yükleme ========== */
.upload-card {
  max-width: 720px;
  margin: 0 auto 60px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.upload-zone {
  display: block;
  text-align: center;
  padding: 36px 20px;
  border: 1.5px dashed var(--rose);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  color: var(--bordo);
}
.upload-zone:hover, .upload-zone.dragover {
  background: rgba(201,161,122,0.12);
  border-color: var(--bordo);
}
.upload-zone strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  margin: 12px 0 4px;
  font-weight: 600;
}
.upload-zone span {
  color: var(--muted);
  font-size: 13px;
}
.upload-illustration svg { width: 48px; height: 48px; }

.upload-meta {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.upload-meta input,
.upload-meta textarea,
.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.upload-meta input:focus,
.upload-meta textarea:focus,
.rsvp-form input:focus {
  border-color: var(--bordo);
  box-shadow: 0 0 0 3px rgba(107,31,42,0.12);
}
.upload-info {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-item {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  color: var(--rose);
  background: linear-gradient(135deg, #f6e7d7, #ead2b8);
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}

/* ========== RSVP ========== */
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rsvp-options {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin: 8px 0;
}
.radio {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.radio input { accent-color: var(--bordo); }
.radio:has(input:checked) {
  background: var(--bordo);
  color: var(--cream);
  border-color: var(--bordo);
}
.rsvp-form button { justify-self: center; margin-top: 6px; }

/* ========== Closing ========== */
.closing { text-align: center; padding-bottom: 120px; }
.closing-monogram {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif);
  font-size: clamp(50px, 8vw, 80px);
  color: var(--bordo);
  margin-bottom: 18px;
}
.closing-monogram em {
  font-family: var(--script);
  color: var(--rose-deep);
  font-style: normal;
  font-size: 0.8em;
  transform: translateY(6px);
}
.closing-text {
  font-family: var(--serif-soft);
  font-style: italic;
  color: var(--ink);
  font-size: clamp(17px, 2.2vw, 20px);
  margin: 0 0 16px;
}
.closing-sign {
  font-family: var(--script);
  font-size: clamp(34px, 5vw, 48px);
  color: var(--rose-deep);
  margin: 0;
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ========== Reveal animasyonu ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ========== Responsive ========== */
@media (max-width: 720px) {
  .info-grid { grid-template-columns: 1fr; }
  .countdown-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cd-item { padding: 18px 4px; }
  .form-row.two { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }
  .hero { padding: 60px 18px; }
  .hero-frame { padding: 50px 22px; }
  .hero-date { gap: 12px; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .petal, .scroll-down span, .music-icon span { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
