/* ==========================================================================
   MELISA & ERAY - YENİ MODERN VINTAGE TEMA (8K AI MASTERPIECE)
   Kristal netliğinde yağlı boya tuval, dantel çerçeve ve canlı tipografi
   ========================================================================== */

:root {
  --theme-dark-green: #253122;
  --theme-deep-forest: #192216;
  --theme-olive: #4d5e44;
  --theme-gold-accent: #c5a059;
  --theme-parchment: #fbf9f4;
  --theme-text-dark: #2c2f28;
  --theme-text-muted: #5e6358;
  --theme-border-lace: #d8cdba;
  --safe-top: env(safe-area-inset-top, 25px);
  --safe-bottom: env(safe-area-inset-bottom, 25px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #121710;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--theme-text-dark);
  overflow: hidden;
  user-select: none;
}

/* Ana Telefon Görünümü */
#invitation-app {
  width: 100%;
  max-width: 440px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  background-color: #1a2218;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
}

/* Yüzen Müzik Butonu */
.floating-music-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--theme-border-lace);
  color: var(--theme-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: transform 0.3s ease;
}

.floating-music-btn.is-playing {
  animation: rotateVinyl 6s linear infinite;
  color: var(--theme-gold-accent);
}

@keyframes rotateVinyl {
  100% { transform: rotate(360deg); }
}

/* Düşen Zarif Beyaz/Pastel Çiçek Yaprakları */
#petals-canvas-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  overflow: hidden;
}

.falling-petal {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, #ffffff, #fcf9f2 70%, #ebdcc8);
  border-radius: 50% 0 50% 50%;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: petalFallAnim linear forwards;
}

@keyframes petalFallAnim {
  0% { transform: translate(0, -25px) rotate(0deg) scale(0.75); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.9; }
  100% { transform: translate(var(--dest-x), 105vh) rotate(var(--dest-rot)) scale(1.15); opacity: 0; }
}

/* ==========================================================================
   1 & 2: AÇILIŞ ZARFI VE MÜHÜR (8K AI ENVELOPE & OLIVE SPRIG)
   ========================================================================== */
#envelope-layer {
  position: fixed;
  inset: 0;
  max-width: 440px;
  margin: 0 auto;
  z-index: 6000;
  background: 
    linear-gradient(180deg, rgba(20, 26, 18, 0.75) 0%, rgba(25, 34, 22, 0.45) 45%, rgba(15, 20, 13, 0.9) 100%),
    url('../assets/envelope_olive_luxury.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 55px 22px 35px 22px;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  touch-action: pan-y;
  cursor: grab;
}

#envelope-layer.unveiled {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.envelope-intro-quote {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  letter-spacing: 2.6px;
  line-height: 1.85;
  color: #f7f4ec;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

/* M&E Mühürlü ve Zeytin Dallı Lüks Zarf Kartı */
.envelope-interactive-card {
  position: relative;
  width: 320px;
  height: 225px;
  border-radius: 12px;
  background: url('../assets/envelope_olive_luxury.jpg') center center / cover no-repeat;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 8px 25px rgba(0,0,0,0.35);
  border: 1px solid rgba(220, 205, 175, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.envelope-interactive-card:active {
  transform: scale(0.97);
}

.seal-pulse-glow {
  position: absolute;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 2px solid rgba(220, 190, 120, 0.8);
  animation: sealGlow 2s infinite ease-out;
}

@keyframes sealGlow {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

.envelope-touch-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: #f7f4ec;
  font-weight: 600;
  animation: bounceHint 2s infinite;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.envelope-touch-indicator .sub-hint {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  opacity: 0.85;
  font-weight: 400;
  text-transform: none;
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-7px); }
  60% { transform: translateY(-3px); }
}

/* ==========================================================================
   SAYFALAR (SNAP SCROLLING MOBILE SCREENS)
   ========================================================================== */
.invitation-screen {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--safe-top) 20px var(--safe-bottom) 20px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   SCREEN 1: KRİSTAL NETLİĞİNDE ANA DAVETİYE (8K AI LACE MASTERPIECE)
   -------------------------------------------------------------------------- */
#screen-hero {
  background: url('../assets/theme_lace_masterpiece.jpg') center center / cover no-repeat;
  justify-content: center;
  padding: 0 20px;
}

/* Dantel Oval Çerçevenin Merkezine Kusursuz Oturan Canlı Tipografi */
.hero-typography-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 230px;
  margin-top: 5px; /* Dantel çerçevenin tam aydınlık merkezine yerleşim */
}

.hero-quote-script {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 11.5px;
  line-height: 1.45;
  color: #555b4e;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
  max-width: 215px;
}

.hero-bride-name {
  font-family: 'Alex Brush', cursive;
  font-size: 52px;
  color: #242720;
  line-height: 1;
  font-weight: normal;
  letter-spacing: 1px;
}

.hero-names-connector {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: #727a6c;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 45%;
  justify-content: center;
}

.hero-names-connector::before, .hero-names-connector::after {
  content: "";
  height: 1px;
  background: #cfcaa5;
  flex: 1;
}

.hero-groom-name {
  font-family: 'Alex Brush', cursive;
  font-size: 52px;
  color: #242720;
  line-height: 1;
  font-weight: normal;
  letter-spacing: 1px;
}

.hero-wedding-date-text {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #2b3026;
  margin-top: 18px;
}

.hero-wedding-venue-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: #555b4e;
  margin-top: 6px;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-wedding-time-text {
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #2b3026;
  margin-top: 3px;
}

/* "Devamı İçin Kaydırın" Kapsülü */
.hero-scroll-bottom-wrap {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 20;
}

.scroll-continue-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(25, 34, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 205, 175, 0.5);
  color: #f7f4ec;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  animation: bounceHint 2.2s infinite;
  transition: all 0.25s ease;
}

.scroll-continue-pill i {
  font-size: 13px;
  color: var(--theme-gold-accent);
}

.scroll-continue-pill:active {
  transform: scale(0.95);
  background: rgba(25, 34, 22, 0.95);
}

/* --------------------------------------------------------------------------
   SCREEN 2: DETAYLAR & KONUM (8K Yağlı Boya Temalı)
   -------------------------------------------------------------------------- */
#screen-details {
  background: 
    linear-gradient(180deg, rgba(25, 34, 22, 0.85) 0%, rgba(30, 40, 26, 0.75) 50%, rgba(18, 24, 15, 0.92) 100%),
    url('../assets/theme_lace_masterpiece.jpg') center center / cover no-repeat;
}

.details-card-theme {
  width: 100%;
  background: rgba(251, 249, 244, 0.97);
  border-radius: 20px;
  border: 1px solid var(--theme-border-lace);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 34px 22px 28px 22px;
  margin: auto 0;
  text-align: center;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-poem-quote {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1.8px;
  line-height: 1.75;
  color: #38352e;
  font-weight: 500;
}

.botanical-ornament-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px auto;
  color: var(--theme-olive);
  font-size: 14px;
}

.botanical-ornament-theme::before, .botanical-ornament-theme::after {
  content: "";
  width: 45px;
  height: 1px;
  background: #cfbea4;
}

.details-triplet-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 6px;
  margin: 10px 0;
}

.triplet-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  position: relative;
}

.triplet-box:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e2d5c1;
}

.triplet-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d4c2a8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5c43;
  font-size: 17px;
  margin-bottom: 8px;
  background: #faf6ee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.triplet-title-text {
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #2b2823;
  line-height: 1.4;
}

.triplet-sub-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  color: #6d675b;
  margin-top: 3px;
}

/* Modern & Prestijli Konum Butonu (Kartın Altında Entegre ve Dikkat Çekici) */
.btn-open-location-modern {
  width: 100%;
  padding: 16px 24px;
  margin-top: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #374631 0%, #253120 100%);
  color: #fcf9f2;
  border: 1px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 8px 24px rgba(35, 47, 30, 0.38);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 2.2px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-open-location-modern:hover, .btn-open-location-modern:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 28px rgba(35, 47, 30, 0.48);
  background: linear-gradient(135deg, #42553b 0%, #2c3b27 100%);
}

.btn-open-location-modern i {
  color: var(--theme-gold-accent);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   SCREEN 3: GERİ SAYIM & TAKVİM
   -------------------------------------------------------------------------- */
#screen-timer {
  background: 
    linear-gradient(180deg, rgba(25, 34, 22, 0.88) 0%, rgba(30, 40, 26, 0.8) 50%, rgba(18, 24, 15, 0.94) 100%),
    url('../assets/theme_lace_masterpiece.jpg') center center / cover no-repeat;
}

.timer-card-wrapper-theme {
  width: 100%;
  background: rgba(251, 249, 244, 0.96);
  border-radius: 18px;
  border: 1px solid var(--theme-border-lace);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  padding: 34px 18px 28px 18px;
  margin: auto 0;
  text-align: center;
  backdrop-filter: blur(6px);
}

.timer-top-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 2.2px;
  color: #454037;
  font-weight: 600;
  text-transform: uppercase;
}

.timer-calligraphy-subtitle {
  font-family: 'Alex Brush', cursive;
  font-size: 44px;
  color: #3b4535;
  margin: 2px 0 10px 0;
}

.timer-countdown-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 22px 0 26px 0;
}

.countdown-digit-block {
  background: #faf6ee;
  border: 1px solid #e2d5c1;
  border-radius: 9px;
  padding: 12px 2px 8px 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.digit-numeric {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 600;
  color: #343028;
  display: block;
  line-height: 1;
}

.digit-legend {
  font-family: 'Montserrat', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #787060;
  margin-top: 6px;
  display: block;
  text-transform: uppercase;
}

.calendar-action-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ebdcc7;
}

.cal-header-title {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #3e3930;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.cal-header-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: #726c5e;
  margin-bottom: 16px;
}

.calendar-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-add-calendar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: #faf6ee;
  border: 1px solid #d9ccb7;
  color: #3e3930;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-add-calendar:active {
  background: #f1ebd8;
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   SCREEN 4: KATILIM (RSVP) & DİLEK KUTUSU
   -------------------------------------------------------------------------- */
#screen-rsvp {
  background: 
    linear-gradient(180deg, rgba(25, 34, 22, 0.9) 0%, rgba(30, 40, 26, 0.82) 50%, rgba(18, 24, 15, 0.95) 100%),
    url('../assets/envelope_olive_luxury.jpg') center center / cover no-repeat;
}

.rsvp-card-wrapper-theme {
  width: 100%;
  background: rgba(251, 249, 244, 0.96);
  border-radius: 18px;
  border: 1px solid var(--theme-border-lace);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  padding: 34px 20px 25px 20px;
  margin: auto 0;
  text-align: center;
  backdrop-filter: blur(6px);
}

.rsvp-cursive-title {
  font-family: 'Alex Brush', cursive;
  font-size: 42px;
  color: #35402f;
  line-height: 1.25;
  margin-bottom: 4px;
}

.rsvp-choices-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 20px 0 25px 0;
}

.btn-rsvp-action {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-rsvp-action.positive {
  background: #4f6345;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 99, 69, 0.35);
}

.btn-rsvp-action.positive.selected {
  background: #374730;
  transform: scale(1.02);
}

.btn-rsvp-action.negative {
  background: #faf6ee;
  color: #554f43;
  border: 1px solid #d7c9b5;
}

.btn-rsvp-action.negative.selected {
  background: #ebe0cf;
}

.guest-attendance-form {
  display: none;
  margin-bottom: 18px;
  animation: fadeInForm 0.4s ease;
}

@keyframes fadeInForm {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.guest-input-vintage {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #d5c6af;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  margin-top: 8px;
  outline: none;
  color: #3b372f;
}

.message-box-container {
  position: relative;
  margin-top: 10px;
}

.message-textarea-field {
  width: 100%;
  height: 90px;
  padding: 12px 42px 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7c9b5;
  background: #faf6ee;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: #363229;
  resize: none;
  outline: none;
}

.message-textarea-field:focus {
  background: #fff;
  border-color: var(--theme-olive);
}

.btn-send-message-action {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #4f6345;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.btn-send-message-action:active {
  transform: scale(0.92);
}

.ending-love-quote {
  margin-top: 24px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #797161;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ending-love-quote i {
  font-size: 10px;
  color: #a49783;
}

/* ==========================================================================
   POPUP MODAL & TOAST
   ========================================================================== */
.modal-map-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-map-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 390px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.modal-header-bar {
  padding: 16px;
  background: #faf6ee;
  border-bottom: 1px solid #e7dcce;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-bar h4 {
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: #38342c;
}

.modal-close-trigger {
  background: none;
  border: none;
  font-size: 20px;
  color: #726c60;
  cursor: pointer;
}

.modal-content-body {
  padding: 14px;
}

.map-iframe-wrapper {
  width: 100%;
  height: 220px;
  border: 1px solid #ebdcc9;
  border-radius: 10px;
  overflow: hidden;
}

.map-navigation-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-external-nav {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  background: #4f6345;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-apple-maps {
  background: #2a3525;
}

.toast-notification-pill {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #222d1e;
  color: #fff;
  padding: 13px 26px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  z-index: 12000;
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.toast-notification-pill.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
