@import url('https://fonts.googleapis.com/css2?family=Moul&family=Kantumruy+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Great+Vibes&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  --primary-gold: #c59b27;
  --secondary-gold: #e5c158;
  --deep-gold: #916e16;
  --gold-gradient: linear-gradient(135deg, #e5c158 0%, #c59b27 50%, #916e16 100%);
  --rose-gold-gradient: linear-gradient(135deg, #f7d5ba 0%, #e0a96d 50%, #b87333 100%);
  --bg-cream: #faf7f2;
  --bg-card: rgba(255, 255, 255, 0.92);
  --text-dark: #2d241e;
  --text-muted: #6e6259;
  --border-gold: rgba(197, 155, 39, 0.35);
  --shadow-luxury: 0 16px 40px rgba(145, 110, 22, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

body {
  font-family: 'Kantumruy Pro', sans-serif;
  background-color: var(--bg-cream);
  background-image: radial-gradient(rgba(197, 155, 39, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Classes */
.font-moul {
  font-family: 'Moul', cursive;
  letter-spacing: 0.5px;
}

.font-script {
  font-family: 'Great Vibes', cursive;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Floating Audio Player Widget */
.floating-music-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-music-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(197, 155, 39, 0.45);
}

.disc-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(#2d241e, #6e6259, #2d241e, #6e6259, #2d241e);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-icon::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-gold);
  border: 2px solid white;
}

.spinning {
  animation: spinRecord 4s linear infinite;
}

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

/* ENVELOPE OPENING OVERLAY SCREEN */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #181513;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.envelope-overlay.opened {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  pointer-events: none;
}

.envelope-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, #fdfbf7, #f7f1e6);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: floatUp 1s ease-out;
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.wax-seal-btn {
  width: 90px;
  height: 90px;
  margin: 28px auto 0;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  box-shadow: 0 10px 30px rgba(197, 155, 39, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  position: relative;
}

.wax-seal-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 40px rgba(197, 155, 39, 0.7);
}

.wax-seal-btn svg {
  width: 32px;
  height: 32px;
}

.wax-seal-btn span {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

/* MAIN CONTAINER */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* LUXURY CARDS */
.luxury-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-luxury);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

/* HERO SECTION */
.hero-header {
  text-align: center;
  padding: 40px 16px 24px;
}

.hero-subtitle {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--deep-gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 26px;
  color: var(--primary-gold);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-cover-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
}

.hero-cover-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 460px;
  transition: transform 0.6s ease;
}

.hero-cover-container:hover .hero-cover-img {
  transform: scale(1.03);
}

/* COUPLE PROFILE SECTION */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
  text-align: center;
}

.couple-box {
  background: rgba(255, 255, 255, 0.6);
  padding: 20px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 155, 39, 0.2);
}

.couple-label {
  font-size: 13px;
  color: var(--deep-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.couple-name {
  font-size: 20px;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.parents-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  color: var(--primary-gold);
  gap: 12px;
}

.heart-divider::before,
.heart-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}

/* LIVE COUNTDOWN */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 12px;
}

.countdown-item {
  background: linear-gradient(145deg, #ffffff, #faf5eb);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.08);
}

.countdown-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* TIMELINE / AGENDA */
.agenda-day-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
}

.timeline-list {
  position: relative;
  padding-left: 28px;
  margin-bottom: 28px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: var(--border-gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary-gold);
}

.timeline-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--deep-gold);
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

/* LOCATION & MAP */
.map-preview-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 16px 0;
  border: 1px solid var(--border-gold);
}

.btn-gold-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(197, 155, 39, 0.35);
  transition: all 0.3s ease;
  width: 100%;
}

.btn-gold-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(197, 155, 39, 0.5);
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.gallery-thumb-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid white;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-thumb-container:hover .gallery-thumb {
  transform: scale(1.08);
}

/* QR CHONG DAI */
.qr-card {
  background: white;
  border: 2px dashed var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  margin: 20px 0;
}

.qr-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin: 12px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.acc-copy-box {
  background: #f7f3ec;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.acc-copy-box:hover {
  background: #ede6d8;
}

/* WISHES GUESTBOOK */
.wishes-form input,
.wishes-form textarea,
.wishes-form select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: white;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.3s;
}

.wishes-form input:focus,
.wishes-form textarea:focus,
.wishes-form select:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

.wishes-list {
  margin-top: 24px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
}

.wish-item {
  background: white;
  border-left: 3px solid var(--primary-gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wish-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.wish-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-gold);
}

.wish-date {
  font-size: 11px;
  color: #999;
}

.wish-text {
  font-size: 13px;
  color: var(--text-dark);
}

/* TOAST NOTIFICATION */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(45, 36, 30, 0.95);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hero-title { font-size: 22px; }
  .couple-grid { grid-template-columns: 1fr; }
  .countdown-num { font-size: 20px; }
}
