/* ═══════════════════════════════════════════════
   Wedding Invitation — Exact Clone Styles
   Extracted from original computed styles
   ═══════════════════════════════════════════════ */

:root {
  --bg-app:        #faf9f8;   /* oklch(0.98 0.001 286.375) */
  --bg-section:    #f8f8f7;   /* oklch(0.985 0.002 247.839) */
  --bg-card:       #ffffff;
  --text-primary:  #1a1a19;   /* oklch(0.235 0.015 65) */
  --text-secondary:#8a8a88;   /* oklch(0.707 0.022 261.325) */
  --text-muted:    #a0a0a0;
  --accent-title:  #334155;   /* oklch(0.278 0.033 256.848) */
  --btn-map:       #2dd4bf;   /* oklch(0.723 0.219 149.579) — emerald/teal */
  --btn-copy:      #334155;   /* oklch(0.278 0.033 256.848) — slate */
  --heart:         #ef4444;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.10), 0 1px 2px -1px rgba(0,0,0,0.10);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: 'Gowun Batang', 'Noto Serif KR', serif;
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-app);
  position: relative;
}
.container { padding: 0 24px; }

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Section Headers ─── */
.section-header { text-align: center; margin-bottom: 36px; }
.section-label {
  font-family: 'Gowun Batang', serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Gowun Batang', serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--accent-title);
  letter-spacing: 0.6px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 300;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-main.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,0)    40%,
    rgba(0,0,0,0.50) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px; /* scroll-indicator 공간 */
}
.hero-subtitle {
  font-family: 'Gowun Batang', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.95;
}
.hero-date {
  font-family: 'Gowun Batang', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.hero-date .dot { margin: 0 4px; opacity: 0.7; }
.hero-time {
  font-family: 'Gowun Batang', serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 28px;
  opacity: 0.9;
}
.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.hero-names .name {
  font-family: 'Gowun Batang', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
}
.hero-names .ampersand {
  font-family: 'Gowun Batang', serif;
  font-size: 20px;
  font-weight: 300;
  opacity: 0.85;
}
.hero-venue {
  font-family: 'Gowun Batang', serif;
  font-size: 13px;
  font-weight: 300;
  opacity: 0.85;
  letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator span {
  font-family: 'Gowun Batang', serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  width: 1px;
  height: 12px;
  background: #fff;
  position: absolute;
  top: -12px;
  left: 0;
  animation: scrollBounce 2s infinite ease-in-out;
}
@keyframes scrollBounce {
  0%   { top: -12px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 40px;  opacity: 0; }
}

/* ─── GREETING ─── */
.greeting {
  background: var(--bg-section);
  padding: 96px 0 64px;
}
.greeting-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin-bottom: 40px;
}
.greeting-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
  font-weight: 400;
}
.couple-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: center;
}
.person { padding: 16px; }
.person .role {
  font-family: 'Gowun Batang', serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.person .parent {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 300;
}
.person .person-name {
  font-family: 'Gowun Batang', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-primary);
}

/* ─── GALLERY ─── */
.gallery {
  background: var(--bg-card);
  padding: 96px 0 64px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ─── LOCATION ─── */
.location {
  background: var(--bg-section);
  padding: 96px 0 64px;
}
.venue-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.venue-name {
  font-family: 'Gowun Batang', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.venue-floor {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.venue-address {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Map */
.map-wrap { margin-bottom: 8px; }
.map-container {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e8e6e3;
  touch-action: pan-y;
}
.map-container .leaflet-container {
  touch-action: pan-y;
}
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  font-family: 'Gowun Batang', serif;
}
.leaflet-popup-content {
  margin: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
}

/* Transport */
.transport-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.transport-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 7px 0;
}
.transport-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-sym {
  font-family: 'Gowun Batang', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1;
}
.transport-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.transport-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.transport-text span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Map Buttons */
.map-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.map-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.map-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.map-btn.naver { background: #03c75a; }
.map-btn.kakao { background: #fee500; color: #3c1e1e; }

.event-date {
  text-align: center;
  font-family: 'Gowun Batang', serif;
  font-size: 16px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: 300;
}

/* ─── IMAGE PROTECTION ─── */
img, .hero-bg, .gallery-item, .lightbox-img {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-touch-callout: none !important;
  pointer-events: auto;
}

/* ─── TRANSPORT TABS ─── */
.transport-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.transport-tab {
  flex: 1;
  padding: 12px 4px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow-sm);
}
.transport-tab.active {
  background: var(--text-primary);
  color: #fff;
}
.transport-panel {
  display: none;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-height: 150px;
}
.transport-panel.active { display: block; }
.transport-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 7px 0;
}

/* ─── GIFT ACCORDION ─── */
.gift-accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.accordion-icon {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}
.accordion-item.open .accordion-body {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* ─── GIFT ─── */
.gift {
  background: var(--bg-card);
  padding: 96px 0 64px;
}
.gift-message {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
}
.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-section);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.account-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
}
.account-relation {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 60px;
}
.account-bank {
  color: var(--text-muted);
  font-size: 13px;
}
.account-number {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.account-holder {
  color: var(--text-muted);
  font-size: 13px;
}
.copy-btn {
  background: var(--btn-copy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { background: #1e293b; transform: scale(1.03); }
.copy-btn:active { transform: scale(0.97); }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-section);
  color: var(--text-primary);
  text-align: center;
  padding: 48px 24px 32px;
}
.footer-thanks {
  font-family: 'Gowun Batang', serif;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.footer-names {
  font-family: 'Gowun Batang', serif;
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 6px;
  opacity: 0.9;
}
.footer-amp {
  font-style: italic;
  margin: 0 6px;
  opacity: 0.7;
}
.footer-date {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 20px;
  font-weight: 300;
}
.footer-heart {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--heart);
  transition: transform 0.2s;
  display: inline-flex;
}
.footer-heart:hover { transform: scale(1.15); }
.footer-heart:active { transform: scale(0.9); }
.footer-heart svg {
  width: 28px;
  height: 28px;
  fill: var(--heart);
  transition: fill 0.3s;
}
.footer-heart.burst svg {
  animation: heartBurst 0.5s ease;
}
@keyframes heartBurst {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.footer-easter-hint {
  font-size: 11px;
  opacity: 0.35;
  margin-top: 8px;
  font-weight: 300;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lightbox-close:hover { opacity: 1; background: rgba(0,0,0,0.6); }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  border-radius: 50%;
  color: #fff;
  width: 48px;
  height: 48px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-arrow:hover { opacity: 1; background: rgba(0,0,0,0.55); }
.lightbox-arrow:active { transform: translateY(-50%) scale(0.92); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-arrow.hidden { display: none; }

.lightbox-img {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.swipe-left { transform: translateX(-40px); opacity: 0.3; }
.lightbox-img.swipe-right { transform: translateX(40px); opacity: 0.3; }

.lightbox-caption {
  color: #fff;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 300;
  opacity: 0.8;
}

/* ─── EASTER EGG MODAL ─── */
.easter-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.easter-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.easter-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px 32px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.easter-modal.active .easter-content { transform: scale(1); }
.easter-hearts {
  font-size: 32px;
  margin-bottom: 16px;
  animation: heartsFloat 2s infinite ease-in-out;
}
@keyframes heartsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.easter-title {
  font-family: 'Gowun Batang', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--heart);
  margin-bottom: 12px;
}
.easter-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}
.easter-close-btn {
  background: var(--btn-copy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.easter-close-btn:hover { background: #1e293b; transform: scale(1.03); }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26,26,25,0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─── */
@media (min-width: 481px) {
  #app { border-radius: 0; }
}
