/* ============================================================
   İlayda & İlker — Düğün Davetiyesi
   Renk paleti: krem, altın, koyu kahve
   ============================================================ */

:root {
  --cream: #faf6f0;
  --cream-dark: #f3ece1;
  --gold: #b9975b;
  --gold-light: #d4bc8b;
  --ink: #4a3f35;
  --ink-soft: #7d6f61;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Ortak ---------- */
.script-line {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0.8rem auto 0;
}

.amp {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.8em;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  margin: 1.2rem 0;
}

.divider::before,
.divider::after {
  content: "";
  width: 70px;
  height: 1px;
  background: var(--gold-light);
}

.btn {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

section {
  padding: 4.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Açılış ekranı ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(185, 151, 91, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(185, 151, 91, 0.12), transparent 50%),
    var(--cream);
  transition: opacity 0.9s ease, visibility 0.9s;
}

.intro-hide {
  opacity: 0;
  visibility: hidden;
}

.intro-inner {
  padding: 3rem 2rem;
  border: 1px solid var(--gold-light);
  outline: 1px solid var(--gold-light);
  outline-offset: 6px;
  max-width: 90%;
  animation: fadeUp 1.2s ease both;
}

.intro-ornament {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.intro-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.intro-date {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}

/* ---------- Müzik butonu ---------- */
.music-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--white);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(74, 63, 53, 0.15);
  transition: all 0.3s;
}

.music-toggle.playing .music-icon {
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}

.music-toggle:not(.playing) {
  opacity: 0.55;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-photo {
  width: min(340px, 78vw);
  height: min(440px, 100vw);
  margin: 0 auto 2.2rem;
  border-radius: 170px 170px 6px 6px; /* kemer formu */
  overflow: hidden;
  border: 1px solid var(--gold-light);
  outline: 1px solid var(--gold-light);
  outline-offset: 8px;
  background: var(--cream-dark);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo.no-photo img {
  display: none;
}

.hero-photo.no-photo {
  display: none;
}

.hero-names {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-top: 0.6rem;
}

.hero-date {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.hero-place {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.4rem;
}

/* ---------- Geri sayım ---------- */
.countdown-section {
  text-align: center;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 1.5rem);
  flex-wrap: wrap;
}

.count-box {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  padding: 1.1rem 0.5rem;
  min-width: clamp(70px, 18vw, 100px);
  box-shadow: 0 6px 20px rgba(74, 63, 53, 0.06);
}

.count-box span {
  display: block;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}

.count-box small {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown-done {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--gold);
}

/* ---------- Davet metni ---------- */
.invite-text {
  text-align: center;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 8px 30px rgba(74, 63, 53, 0.05);
  max-width: 760px;
}

.ornament-top {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.invite-body {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 1.2rem 0 2.5rem;
}

.families {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 5vw, 3rem);
  flex-wrap: wrap;
}

.family-names {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.family-child {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.family-child strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
}

.family-amp {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
}

/* Mobilde aileler alt alta, & işareti tam ortada */
@media (max-width: 640px) {
  .families {
    flex-direction: column;
    gap: 0.6rem;
  }

  .family-amp {
    font-size: 1.6rem;
    line-height: 1;
  }
}

/* ---------- Tarih & Mekan ---------- */
.detail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(74, 63, 53, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.detail-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.detail-card p {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.detail-card .btn {
  margin-top: 1.4rem;
}

.detail-note {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 5.5rem;
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--ink) !important;
  background: rgba(185, 151, 91, 0.12);
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin-top: auto;
}

.detail-note:empty {
  display: none;
}

/* ---------- Harita ---------- */
.map-section {
  padding-top: 0;
}

.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold-light);
  height: 340px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Galeri ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--gold-light);
  color: var(--gold-light);
  font-size: 2rem;
}

/* ---------- LCV ---------- */
.rsvp {
  text-align: center;
}

.rsvp-text {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.rsvp-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(185, 151, 91, 0.12), transparent 60%),
    var(--cream-dark);
}

.footer-names {
  font-size: 2.4rem;
}

.footer-date {
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.footer-note {
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Animasyonlar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
