/* =====================================================
   DEĞİŞKENLER (RENKLER / FONTLAR)
   Renk paletini ve fontları BURADAN değiştirebilirsin.
===================================================== */
:root {
  /* Renkler */
  --color-bg: #fdfbf8;          /* kırık beyaz - neredeyse beyaz */
  --color-bg-alt: #faf7f2;      /* çok hafif krem - beyaza yakın */
  --color-text: #3b332c;        /* koyu kahve / antrasit */
  --color-text-light: #8a8074;
  --color-accent: #c2a26e;      /* gold detay - biraz daha yumuşak */
  --color-white: #ffffff;
    /* Buton rengi - aşk kırmızısı */
  --color-btn: #c13a4f;
  --color-btn-hover: #a12f42;

  /* Fontlar */
  --font-romantic: 'Great Vibes', cursive;   /* Font 1: aşk temalı, romantik */
  --font-script: 'Dancing Script', cursive;  /* Font 2: okunaklı el yazısı */
  --font-body: 'Dancing Script', cursive;

  /* Mobil gerçek viewport yüksekliği (JS ile de ayarlanır, fallback) */
  --vh: 1vh;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* yatay scroll'u kesin olarak engelle */
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
}

img, video {
  max-width: 100%;
}

/* =====================================================
   1) LOADING / AÇILIŞ EKRANI
   Arka plan fotoğrafını burada değiştir: assets/background.jpg
===================================================== */
#loading-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  height: 100vh; /* dvh desteklemeyen tarayıcılar için fallback */
  overflow: hidden; /* zoom ve düşen yapraklar taşmasın */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------------------------------------------------
   Arka plan fotoğrafı - yavaş yavaş zoomlanan katman
   Fotoğrafı burada değiştir: assets/background.jpg
--------------------------------------------------- */
.loading-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/open-poster2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bgZoom 12s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes bgZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.18); }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* ---------------------------------------------------
   DÜŞEN PEMBE YAPRAKLAR
   Yaprak sayısını / rengini script.js -> petal ayarlarından
   ve aşağıdaki .petal renklerinden değiştirebilirsin.
--------------------------------------------------- */
.petals-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.petal {
  position: absolute;
  top: -5%;
  width: 14px;
  height: 10px;
  background: linear-gradient(135deg, #ffd9e6, #f2a3c2);
  border-radius: 0% 100% 0% 100%;
  opacity: 0.85;
  animation-name: petalFall, petalSway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: 1, infinite;
}

@keyframes petalFall {
  0%   { top: -5%; }
  100% { top: 105%; }
}

@keyframes petalSway {
  0%, 100% { margin-left: 0; }
  50%      { margin-left: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-bg {
    animation: none;
  }
  .petals-container {
    display: none;
  }
}

.loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 24px;
}

.loading-subtitle {
  font-family: var(--font-script);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.loading-names-simple {
  font-family: var(--font-romantic);
  font-size: clamp(2.5rem, 12vw, 5rem);
  margin: 0;
  line-height: 1.1;
}

.loading-names-simple .amp {
  font-size: 0.7em;
  opacity: 0.85;
}

.loading-date {
  font-family: var(--font-script);
  font-size: 1.3rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.btn-open-invite {
  font-family: var(--font-script);
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: 40px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 48px; /* parmakla kolay dokunulabilir */
  border: 1.5px solid var(--color-btn);
  background: transparent;
  color: var(--color-white);
}

.btn-open-invite:hover,
.btn-open-invite:active {
  background: var(--color-btn);
  color: var(--color-white);
  border-color: var(--color-btn);
}

/* =====================================================
   2) HERO / FULLSCREEN VIDEO
   Video dosyasını burada değiştir: assets/wedding-video.mp4
===================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}

.hero-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  width: 90%;
}

/* İsimler alt alta - referans tasarımdaki gibi */
.hero-names {
  font-family: var(--font-romantic);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.hero-name-line {
  display: block;
  font-size: clamp(2.6rem, 13vw, 5.5rem);
}

/* İkinci isim satırı ilkinin altına hafifçe yaklaşsın (script fontların
   doğal boşluğunu telafi etmek için negatif margin) */
.hero-name-line + .hero-name-line {
  margin-top: -0.35em;
}

/* "EVLENİYORUZ" - harf aralıklı, ince stil */
.hero-married-text {
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  letter-spacing: 6px;
  margin: 0 0 1.8rem;
  opacity: 0.95;
}

/* Ay / gün numarası / yıl satırı */
.hero-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0.4rem;
}

.hero-date-month,
.hero-date-year {
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  letter-spacing: 3px;
  opacity: 0.9;
}

.hero-date-line {
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-date-day-number {
  font-family: 'Georgia', serif;
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
}

/* Haftanın günü */
.hero-weekday {
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  letter-spacing: 4px;
  margin: 0;
  opacity: 0.95;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* =====================================================
   GENEL SECTION STİLLERİ
===================================================== */
.section-block {
  padding: 64px 16px;
  width: 100%;
}

.alt-bg {
  background-color:#FFF;
}

.section-title {
  font-family: var(--font-romantic);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Ekrana girince görünen reveal animasyonu */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-hint {
    animation: none;
  }
}

/* =====================================================
   3) GERİ SAYIM
===================================================== */
.countdown-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.countdown-box {
  background: var(--color-white);
  border: 1px solid rgba(184,150,95,0.35);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 76px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.countdown-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: Georgia, serif;
}

.countdown-label {
  display: block;
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--color-text-light);
}

.countdown-finished {
  margin-top: 1.5rem;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--color-accent);
}

/* =====================================================
   4) HİKAYE
===================================================== */
.story-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* =====================================================
   5) TIMELINE
===================================================== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 2px solid var(--color-accent);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-time {
  display: inline-block;
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-script);
  font-size: 1.4rem;
  margin: 4px 0;
}

.timeline-desc {
  color: var(--color-text-light);
  margin: 0;
}

/* Masaüstünde ortadan bölünmüş timeline (opsiyonel geliştirme alanı) */
@media (min-width: 768px) {
  .timeline {
    padding-left: 40px;
  }
}

/* =====================================================
   6) ANILAR / UPLOAD
===================================================== */
.btn-invite,
.btn-invite-outline {
  font-family: var(--font-script);
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 40px;
  border: 1.5px solid var(--color-accent);
  cursor: pointer;
  min-height: 48px;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

.btn-invite-outline {
  background: transparent;
  color: var(--color-btn);
  border: 1.5px solid var(--color-btn);
}

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

.selected-files-list {
  margin: 16px auto 0;
  max-width: 500px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.selected-files-list div {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.upload-progress-wrapper {
  max-width: 500px;
  margin: 20px auto 0;
}

.upload-message {
  margin-top: 16px;
  font-family: var(--font-script);
  font-size: 1.2rem;
  min-height: 1.5em;
}

.upload-message.success { color: #4c7a4c; }
.upload-message.error { color: #a13d3d; }

/* =====================================================
   7) RSVP FORM
===================================================== */
.rsvp-form {
  max-width: 520px;
}

.rsvp-response-msg {
  max-width: 520px;
  margin: 20px auto 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.2rem;
}

.rsvp-response-msg.success { color: #4c7a4c; }
.rsvp-response-msg.error { color: #a13d3d; }

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  padding: 28px 16px;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-script);
  font-size: 1.1rem;
}

/* =====================================================
   GENEL RESPONSIVE GÜVENLİK ÖNLEMLERİ
===================================================== */
.container {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 992px) {
  .container {
    max-width: 900px;
    margin: 0 auto;
  }
}
/* =====================================================
   DÜĞÜN SALONU BİLGİ KARTI
===================================================== */
.venue-card-section {
  padding: 48px 16px;
  width: 100%;
}

.venue-card-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.venue-card-image {
  width: 100%;
  height: auto;
  display: block;
}

.venue-card-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;          /* çerçevenin ortasındaki boş alana sığması için */
  text-align: center;
  color: var(--color-text);
}

.venue-date {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  margin: 0 0 0.6rem;
  color: var(--color-accent);
}

.venue-address {
  font-family: 'Georgia', serif;
  font-size: clamp(0.65rem, 2.2vw, 0.95rem);
  line-height: 1.5;
  letter-spacing: 0.5px;
  margin: 0;
  opacity: 0.9;
}

/* Küçük ekranlarda metin alanı biraz daralsın, taşma olmasın */
@media (max-width: 480px) {
  .venue-card-text {
    width: 58%;
  }
}
.directions-btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.voice-note-recorder {
  max-width: 420px;
  margin: 0 auto;
}

.recording-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  color: var(--color-btn);
}

.recording-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-btn);
  animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.voice-preview-wrapper {
  margin-top: 20px;
}

.voice-preview-wrapper audio {
  width: 100%;
}

.voice-preview-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.voice-note-message {
  margin-top: 16px;
  font-family: var(--font-script);
  font-size: 1.2rem;
  min-height: 1.5em;
}

.voice-note-message.success { color: #4c7a4c; }
.voice-note-message.error { color: #a13d3d; }

@media (prefers-reduced-motion: reduce) {
  .recording-dot { animation: none; }
}
.gky-show { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; text-align:center; }
.gky-show div { padding: 20px 12px; border-radius: 16px; background: rgb(255, 255, 255); border: 1px solid rgba(139, 136, 137, 0.125); box-shadow: rgba(31, 58, 66, 0.28) 0px 12px 28px -20px; }
.gky-show p { margin: 0px 0px 12px; color: rgb(139, 136, 137); font-family: &quot;Great Vibes&quot;, cursive; font-size: clamp(22px, 5.8vw, 28px); letter-spacing: 0.04em; text-transform: none; font-style: italic; font-weight: 400; }
.gky-show .firstp { font-size:14px; }
.music-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-btn);
  color: var(--color-white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.music-toggle-btn.visible {
  opacity: 1;
  visibility: visible;
}

.music-toggle-btn.muted {
  background: var(--color-text-light);
}

/* Müzik çalarken hafif dönen ikon animasyonu */
.music-toggle-btn:not(.muted) i {
  animation: musicSpin 4s linear infinite;
}

@keyframes musicSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle-btn:not(.muted) i {
    animation: none;
  }
}