:root {
  --cream-bg: #fdfaf5;
  --paper: #ffffff;
  --paper-deep: #f1e5d4;
  --gold: #b3934d;
  --gold-light: #e0ca9a;
  --gold-deep: #7a5d2a;
  --text-dark: #2c241c;
  --text-soft: #5c4d3c;
  --glass: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.5);
}

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--cream-bg);
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
}

.experience {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream-bg);
  box-shadow: 0 0 100px rgba(0,0,0,0.05);
}

.stage {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
}

/* Video Stage */
.stage-video {
  z-index: 100;
  background: var(--cream-bg);
  overflow: hidden;
}

.stage-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Bulutlu, vinyet efekti: Orta net, kenarlar bulanık ve krem rengi */
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(253, 250, 245, 0.4) 50%,
    rgba(253, 250, 245, 0.95) 90%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: radial-gradient(
    circle,
    transparent 30%,
    black 80%
  );
  -webkit-mask-image: radial-gradient(
    circle,
    transparent 30%,
    black 80%
  );
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* Hafif zoom ile daha iyi odak */
}

body.video-finished .stage-video {
  opacity: 0;
  pointer-events: none;
}

/* Invitation Stage */
.stage-invitation {
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: 
    radial-gradient(circle at 0% 0%, rgba(179, 147, 77, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(179, 147, 77, 0.05) 0%, transparent 50%),
    var(--cream-bg);
  padding: 20px;
}

/* Decorative Elements */
.invitation-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.corner-bloom {
  position: absolute;
  width: 250px;
  height: 250px;
  opacity: 0.15;
  filter: blur(40px);
  background: var(--gold-light);
  border-radius: 50%;
}

.corner-bloom-top { top: -100px; right: -100px; }
.corner-bloom-bottom { bottom: -100px; left: -100px; }

/* Main Card */
.invitation-content {
  position: relative;
  width: 100%;
  height: 85vh;
  background: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 40px 15px 30px; /* Üst boşluk artırıldı */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  align-items: center;
  text-align: center; /* Tüm içeriği ortala */
  overflow-y: auto; 
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.05),
    inset 0 0 0 1px rgba(255,255,255,0.4);
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.video-finished .invitation-content {
  opacity: 1;
  transform: translateY(0);
}

.invitation-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari için scrollbar gizle */
}

/* Footer Layout - Save vertical space */
.footer-layout {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Childhood Photo Styling - PNG Integration */
.childhood-photo {
  width: 100%;
  max-width: 290px; 
  margin-top: 5px; /* Yukarıdan nefes alması için pozitif marjin */
  margin-bottom: 0.8rem;
  border-radius: 20px; 
  overflow: visible; 
  transition: all 0.5s ease-out;
  border: none;
  background: transparent;
  box-shadow: none;
  transform: none; 
}

.childhood-photo:hover {
  transform: scale(1.02);
}

.childhood-photo img {
  width: 100%;
  height: auto; 
  display: block;
  filter: none; /* PNG'nin orijinal kalitesini koru */
}
/* mobilde cocuk görsel boyutu */
@media (max-width: 480px) {
  .childhood-photo {
    max-width: 280px; /* iPhone için optimize edildi */
    margin-bottom: 0.8rem;
  }
}

.eyebrow {
  font-size: 0.65rem; /* Daha küçük font */
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 5px 0 0;
  opacity: 0.8;
}

.names {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 7vw, 2.5rem); /* Biraz daha küçültüldü */
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  color: var(--text-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.ampersand {
  display: inline-block;
  font-family: "Great Vibes", cursive;
  font-size: 0.8em;
  font-weight: 400;
  color: var(--gold);
  margin: 0;
}

.groom-name, .bride-name {
  display: inline-block;
}

.message-block {
  margin: 0.6rem 0; 
  max-width: 320px;
  width: 100%;
}

.message-block p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.9rem, 3.8vw, 1.1rem);
  line-height: 1.25;
  color: var(--text-soft);
  font-style: italic;
  margin: 0;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0.8rem;
}

.date-time-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; /* Küçük ekranlarda otomatik alt satıra geçebilsin */
}

.date-large {
  font-size: 1.1rem !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-deep) !important;
  margin: 0 !important;
}

.time-large {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  margin: 0 !important;
}

.time-large span {
  margin-right: 4px;
  opacity: 0.5;
  color: var(--gold);
}

.footer-ornament {
  display: none; /* Eski yapı kaldırıldı */
}

.ring-ornament {
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.date-large {
  font-size: 1.2rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-deep) !important;
}

.address {
  font-size: 0.8rem !important;
  max-width: 260px;
  margin-top: 8px !important;
  opacity: 0.8;
}

/* QR Code */
.qr-code-wrapper {
  margin: 0;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease 2s;
  z-index: 10;
  animation: qr-pulse 2s infinite ease-in-out;
}

@keyframes qr-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

body.video-finished .qr-code-wrapper {
  opacity: 1;
}

.qr-code-wrapper img {
  width: 80px; /* Belirgin bir şekilde büyütüldü */
  height: 80px;
  padding: 6px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border: 1px solid rgba(179, 147, 77, 0.2);
  transition: transform 0.3s ease;
}

.qr-code-wrapper:active img {
  transform: scale(0.9);
}

.qr-code-wrapper span {
  display: block;
  font-size: 0.5rem;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Video Play Hint & Ripple */
.play-hint {
  position: absolute;
  top: 54.5%; /* Hafif yukarı (57'den 54.5'e) */
  left: 51%;   /* Hafif sağa (50'den 51'e) */
  transform: translate(-50%, -50%);
  z-index: 110;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s ease;
}

body.video-playing .play-hint {
  opacity: 0;
}

.ripple {
  position: absolute;
  width: 60px; /* Mühür boyutuyla uyumlu */
  height: 60px;
  background: transparent; /* Dolgu rengi kaldırıldı */
  border: 1px solid rgba(179, 147, 77, 0.4); /* Sadece naif altın çizgiler */
  border-radius: 50%;
  animation: ripple 4s infinite ease-out;
}

.ripple:nth-child(2) { animation-delay: 1.3s; }
.ripple:nth-child(3) { animation-delay: 2.6s; }

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Rings Ornament */
.ring-ornament {
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.ring-icon {
  width: 40px;
  height: 25px;
  fill: var(--gold);
}

/* Responsive */
@media (max-width: 480px) {
  .invitation-content {
    height: 75vh;
    height: 75dvh; 
    padding: 25px 10px 15px; /* Mobilde üst boşluk artırıldı */
  }
  
  .childhood-photo {
    max-width: 190px; 
    margin-bottom: 0.4rem;
    margin-top: 0; /* Negatif marjin kaldırıldı */
  }

  .names {
    font-size: 1.5rem !important;
  }

  .message-block {
    margin: 0.3rem 0;
  }

  .message-block p {
    font-size: 0.85rem !important;
  }

  .details {
    gap: 3px;
    margin-bottom: 0.5rem;
  }

  .details p {
    font-size: 0.7rem;
    width: 100%;
    max-width: none;
    text-align: center;
  }
  
  .date-time-row {
    gap: 4px;
    margin-bottom: 2px;
    justify-content: center;
  }

  .date-large {
    font-size: 0.85rem !important;
  }
  
  .time-large {
    font-size: 0.75rem;
  }
  
  .address {
    font-size: 0.7rem !important;
    line-height: 1.2;
    padding: 0 10px;
  }

  .footer-layout {
    gap: 4px;
    margin-top: auto;
  }

  .qr-code-wrapper img {
    width: 55px;
    height: 55px;
  }

  .qr-code-wrapper span {
    font-size: 8px;
  }
}
