/* ═══════════════════════════════════════
   BASE & RESET
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface2: #f2efe9;
  --border: rgba(0,0,0,.08);
  --border-strong: rgba(0,0,0,.14);
  --text: #1c1926;
  --text-muted: #7a7690;
  --accent: #e94560;
  --accent2: #7c6af7;
  --accent3: #0bb8a8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --font: 'Noto Sans KR', sans-serif;
  --font-display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
}
.nav-logo {
  font-weight: 800; font-size: .95rem; letter-spacing: .06em;
  color: var(--accent);
}
.nav-links {
  display: flex; gap: 2.5rem;
}
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s; letter-spacing: .03em;
}
.nav-links a:hover { color: var(--text); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: .3s;
}
.nav-mobile {
  display: none; flex-direction: column;
  background: rgba(250,248,245,.97);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: .75rem 0; font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--border); color: var(--text-muted);
}
.nav-mobile.open { display: flex; }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  position: relative; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 6rem 2rem 4rem;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(233,69,96,.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(124,106,247,.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(11,184,168,.08) 0%, transparent 50%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--text) 20%, var(--accent) 60%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.9;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .8rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.hero-meta-item {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .5rem 1.1rem; border-radius: 100px;
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow);
}
.meta-icon { font-size: 1rem; }

.hero-countdown {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .5rem;
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2.5rem;
  box-shadow: var(--shadow-lg);
}
.countdown-block { text-align: center; min-width: 3.5rem; }
.countdown-block span {
  display: block; font-size: 2.5rem; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
  color: var(--accent);
}
.countdown-block label {
  font-size: .7rem; color: var(--text-muted); letter-spacing: .08em;
  text-transform: uppercase; margin-top: .3rem; display: block;
}
.countdown-sep { font-size: 2rem; color: var(--border-strong); margin-bottom: .8rem; }

@media (max-width: 500px) {
  .hero-countdown { padding: 1rem 1.2rem; gap: .3rem; }
  .countdown-block { min-width: 2.8rem; }
  .countdown-block span { font-size: 2rem; }
  .countdown-sep { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════
   SHARED SECTION
═══════════════════════════════════════ */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .7rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; margin-bottom: 3rem; color: var(--text);
}
.section-desc {
  color: var(--text-muted); margin-top: -.5rem; margin-bottom: 2.5rem; font-size: .95rem;
}

/* ═══════════════════════════════════════
   BUTTON
═══════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff; font-weight: 700;
  padding: .85rem 2.2rem; border-radius: 100px;
  font-size: .95rem; letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 20px rgba(233,69,96,.3);
  border: none; font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233,69,96,.45);
  background: #d63350;
}
.btn-primary:active { transform: translateY(0); }

/* ═══════════════════════════════════════
   SCHEDULE / TIMELINE
═══════════════════════════════════════ */
#schedule { background: var(--surface2); }

.timeline {
  position: relative;
  padding-left: 10rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 7.5rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
  opacity: .35;
}

.tl-item {
  position: relative; display: flex; align-items: flex-start;
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-time {
  position: absolute; left: -9.5rem;
  font-size: .85rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: .04em; padding-top: .15rem;
  width: 3.5rem; text-align: right;
}
.tl-dot {
  position: absolute; left: -2.7rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface2);
  box-shadow: 0 0 0 2px var(--accent);
  top: .4rem;
  transition: transform .2s;
}
.tl-item:hover .tl-dot { transform: scale(1.3); }
.tl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  flex: 1;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tl-item:hover .tl-content {
  border-color: rgba(233,69,96,.3);
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}
.tl-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.tl-content p { font-size: .9rem; color: var(--text-muted); }

@media (max-width: 620px) {
  .timeline { padding-left: 2rem; }
  .timeline::before { left: 0; }
  .tl-time { display: none; }
  .tl-dot { left: -.95rem; }
}

/* ═══════════════════════════════════════
   CARD NEWS SLIDER
═══════════════════════════════════════ */
#cardnews { background: var(--bg); }

.card-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.card-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.card-slide {
  flex: 0 0 100%;
  background: var(--card-bg, #1a1a2e);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2.5rem 3rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.card-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
}
.card-slide::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--card-accent, #e94560);
  opacity: .15;
}
.card-num {
  font-size: 5rem; font-weight: 900; line-height: 1;
  color: var(--card-accent, #e94560); opacity: .2;
  font-family: var(--font-display);
}
.card-body { position: relative; z-index: 1; }
.card-body h3 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem;
  color: #fff;
}
.card-body p, .card-body li {
  font-size: 1rem; color: rgba(255,255,255,.78); line-height: 1.8;
}
.card-body ul { display: flex; flex-direction: column; gap: .3rem; }
.card-body li::before { content: '→  '; color: var(--card-accent, #e94560); }
.card-big {
  font-size: 3rem !important; font-weight: 900 !important;
  color: #fff !important; line-height: 1.2; margin: .5rem 0;
}
.card-note { font-size: .8rem !important; opacity: .5; margin-top: .8rem; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 10;
}
.slider-btn:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-dots {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 1.2rem;
}
.slider-dots .dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: var(--border-strong);
  transition: width .3s, background .3s; cursor: pointer;
}
.slider-dots .dot.active {
  width: 24px; background: var(--accent);
}

@media (max-width: 600px) {
  .card-slide { padding: 1.8rem 1.5rem; min-height: 300px; }
  .card-num { font-size: 3.5rem; }
  .card-body h3 { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════
   RSVP
═══════════════════════════════════════ */
#rsvp { background: var(--surface2); }

.rsvp-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
@media (max-width: 780px) {
  .rsvp-wrap { grid-template-columns: 1fr; }
}

.rsvp-form {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: .06em; text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: .7rem 1rem;
  color: var(--text); font-family: inherit; font-size: .95rem;
  outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(124,106,247,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb8cc; }

.radio-group { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .2rem; }
.radio-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-custom {
  display: block; padding: .5rem 1rem; border-radius: 100px;
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all .2s;
  color: var(--text-muted); background: var(--bg);
}
.radio-label input:checked + .radio-custom.yes   { background: #edfaf8; border-color: var(--accent3); color: #089c8e; }
.radio-label input:checked + .radio-custom.maybe { background: #fffaf3; border-color: #f0a855; color: #c47c10; }
.radio-label input:checked + .radio-custom.no    { background: #fef2f4; border-color: var(--accent); color: var(--accent); }
.radio-custom:hover { border-color: var(--border-strong); color: var(--text); }

/* RSVP board */
.rsvp-board {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow);
}
.board-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .7rem;
}
.count-badge {
  background: var(--accent); color: #fff;
  font-size: .75rem; padding: .2rem .6rem; border-radius: 100px;
  font-weight: 700;
}
.attend-bars { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.5rem; }
.bar-row { display: flex; align-items: center; gap: .7rem; }
.bar-label { font-size: .8rem; width: 4.5rem; color: var(--text-muted); text-align: right; }
.bar-track {
  flex: 1; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 4px; width: 0; transition: width .6s ease; }
.yes-fill   { background: var(--accent3); }
.maybe-fill { background: #f0a855; }
.no-fill    { background: var(--accent); }
.bar-num { font-size: .8rem; font-weight: 700; min-width: 1.5rem; color: var(--text); }

.responses-list {
  display: flex; flex-direction: column; gap: .6rem;
  max-height: 320px; overflow-y: auto;
}
.responses-list::-webkit-scrollbar { width: 4px; }
.responses-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.response-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: .875rem;
  animation: fadeIn .3s ease;
}
.response-card .rc-header {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem;
}
.rc-name { font-weight: 700; }
.rc-year { font-size: .75rem; color: var(--text-muted); }
.rc-badge {
  margin-left: auto; font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 100px;
}
.rc-badge.yes   { background: #edfaf8; color: #089c8e; }
.rc-badge.maybe { background: #fffaf3; color: #c47c10; }
.rc-badge.no    { background: #fef2f4; color: var(--accent); }
.rc-msg { color: var(--text-muted); font-size: .82rem; }

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

/* ═══════════════════════════════════════
   GALLERY
═══════════════════════════════════════ */
#gallery { background: var(--bg); }

.upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius); padding: 2.5rem;
  cursor: pointer; transition: border-color .2s, background .2s;
  margin-bottom: 2.5rem; text-align: center;
  background: var(--surface);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent2);
  background: rgba(124,106,247,.04);
}
.upload-icon { font-size: 2.5rem; }
.upload-text { font-weight: 600; font-size: 1rem; color: var(--text); }
.upload-hint { font-size: .8rem; color: var(--text-muted); }

.gallery-grid {
  columns: 3 240px; column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  border-radius: var(--radius-sm); overflow: hidden;
  position: relative; cursor: zoom-in;
  animation: fadeIn .4s ease;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform .35s, filter .35s;
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery-item .delete-btn {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(255,255,255,.85); color: var(--text);
  border-radius: 50%; width: 28px; height: 28px;
  font-size: .8rem; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.gallery-item:hover .delete-btn { opacity: 1; }
.gallery-item .delete-btn:hover { background: var(--accent); color: #fff; }

.gallery-empty {
  text-align: center; padding: 3rem; color: var(--text-muted);
  font-size: .95rem;
}

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(28,25,38,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img {
  max-width: min(90vw, 1000px); max-height: 85vh;
  border-radius: var(--radius-sm); object-fit: contain;
  box-shadow: 0 16px 64px rgba(0,0,0,.5);
}
.lb-close {
  position: fixed; top: 1.5rem; right: 1.5rem;
  color: #fff; font-size: 1.3rem; padding: .5rem;
  background: rgba(255,255,255,.15); border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: var(--accent); }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 1.5rem; padding: 1rem;
  background: rgba(255,255,255,.12); border-radius: 50%;
  transition: background .2s;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-caption {
  position: fixed; bottom: 1.5rem;
  color: rgba(255,255,255,.55); font-size: .875rem;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--text);
  border-top: 1px solid var(--border);
  text-align: center; padding: 3rem 2rem;
  color: rgba(255,255,255,.5); font-size: .875rem;
  line-height: 2;
}
footer p:first-child { color: rgba(255,255,255,.85); font-weight: 600; }
.footer-sub { font-size: .8rem; }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
