/* ============================================================
 *  모바일 행사 초대장 — 섹션 · 테마 스타일
 *  (공통 스타일은 invite-base.css)
 * ============================================================ */

/* ---------- 메인 ---------- */
.cover__title { font-family: var(--font-title); font-size: 26px; line-height: 1.45; white-space: pre-line; font-weight: 700; }
.cover__sub { margin-top: 8px; font-size: 15px; color: var(--accent); font-weight: 600; }
.cover__when { margin-top: 14px; }

/* ---------- 인사말 ---------- */
.greeting__sign { margin-top: 28px; font-size: 15px; color: var(--text-soft); }

/* ---------- 소개 ---------- */
.profile__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; }
.profile__photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.profile__list { padding: 8px 22px 14px; }
.profile__list div { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile__list div:last-child { border-bottom: 0; }
.profile__list dt { color: var(--accent); font-weight: 700; font-size: 14px; }
.profile__list dd { font-size: 15px; }

/* ---------- 사진 타임라인 ---------- */
.timeline--photo li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding-left: 36px; }
.timeline__photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 3px solid var(--card); box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.timeline__photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline--photo li::before { top: 50%; margin-top: -7px; }

/* ---------- 가족 ---------- */
.family-list { list-style: none; display: grid; gap: 2px; max-width: 360px; margin: 0 auto; }
.family-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.family-list span { color: var(--text-soft); font-size: 15px; flex: none; }
.family-list b { text-align: right; }

/* ---------- 안내 카드 ---------- */
.info__list { list-style: none; display: grid; gap: 10px; text-align: left; }
.info__list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.info__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); }
.info__list b { display: block; font-size: 16px; }
.info__list p { font-size: 14px; color: var(--text-soft); margin-top: 2px; }

/* ---------- 투표 ---------- */
.vote__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote__opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 6px 14px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  transition: transform .15s, border-color .15s; font-family: "Pretendard Variable", sans-serif;
}
.vote__opt:not(.is-done):hover { border-color: var(--accent); transform: translateY(-2px); }
.vote__opt.is-done { cursor: default; }
.vote__opt.is-mine { border-color: var(--accent); background: var(--accent-soft); }
.vote__icon { font-size: 30px; line-height: 1.2; }
.vote__opt b { font-size: 15px; }
.vote__opt small { font-size: 11px; color: var(--text-soft); line-height: 1.4; }
.vote__bar { width: 80%; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vote__bar i { display: block; height: 100%; background: var(--accent); transition: width .6s ease; }
.vote__pct { font-size: 12px; font-weight: 700; color: var(--accent); }
.vote__note { margin-top: 16px; font-size: 14px; color: var(--text-soft); }

/* ============================================================
 *  [테마] pastel — 돌잔치 (코랄 핑크 · 민트, 둥근 글꼴)
 * ============================================================ */
[data-theme="pastel"] {
  --bg: #fffaf6; --bg-alt: #fff1ec; --card: #ffffff;
  --text: #5b4a46; --text-soft: #9a8781; --accent: #ef8f97; --accent-soft: #ffe3e3; --line: #f5e3dc;
  --sun: #ef8f97; --sat: #6fb7a6;
  --font-body: "Gowun Dodum", "Pretendard Variable", sans-serif;
  --font-title: "Jua", "Gowun Dodum", sans-serif;
  --font-en: "Fredoka", "Jua", sans-serif;
  --radius: 18px;
  --petal: 255, 190, 200;
  --confetti: #ff9aa2,#ffd6a5,#a0e7c4,#9bd0f5,#cdb4f6;
}
[data-theme="pastel"] body { background: #f6ebe6; }
[data-theme="pastel"] .cover__label { font-size: 15px; letter-spacing: .2em; font-weight: 600; }
[data-theme="pastel"] .cover__date-en { font-size: 20px; color: var(--text-soft); margin-bottom: 22px; }
[data-theme="pastel"] .cover__photo { width: 82%; aspect-ratio: 1; border-radius: 50%; border: 8px solid #fff; box-shadow: 0 0 0 2px var(--accent-soft), 0 12px 30px rgba(239,143,151,.25); }
[data-theme="pastel"] .cover__title { font-weight: 400; font-size: 28px; color: var(--text); }
[data-theme="pastel"] .section__title { font-weight: 400; font-size: 23px; }
[data-theme="pastel"] .section__eyebrow { letter-spacing: .18em; font-weight: 600; }
[data-theme="pastel"] .btn, [data-theme="pastel"] .navi a { border-radius: 999px; }
[data-theme="pastel"] .navi { margin: 12px 0 0; gap: 6px; border: 0; }
[data-theme="pastel"] .navi a { border: 1px solid var(--line); }
[data-theme="pastel"] .navi a + a { border-left: 1px solid var(--line); }
[data-theme="pastel"] .map { margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; }
[data-theme="pastel"] .gallery__grid { gap: 6px; }
[data-theme="pastel"] .gallery__grid button { border-radius: 14px; }
[data-theme="pastel"] .countdown b { font-weight: 600; }
[data-theme="pastel"] .greeting__deco { width: 132px; height: 132px; border: 5px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.06); }

/* ============================================================
 *  [테마] hanji — 칠순·회갑 (한지 · 전통 · 큰 글씨)
 * ============================================================ */
[data-theme="hanji"] {
  --bg: #f6efe2; --bg-alt: #efe5d3; --card: #fbf7ef;
  --text: #33271e; --text-soft: #6e5f52; --accent: #9b2c2c; --accent-soft: #ead7c4; --line: #ddcdb5;
  --sun: #9b2c2c; --sat: #2f4f6f;
  --font-body: "Nanum Myeongjo", serif;
  --font-title: "Nanum Myeongjo", serif;
  --font-en: "Nanum Myeongjo", serif;
  --radius: 2px;
  --petal: 214, 150, 140;
}
[data-theme="hanji"] body { background: #e5dac6; font-size: 18px; }
[data-theme="hanji"] .page {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="hanji"] .section:nth-of-type(even) { background: rgba(120, 90, 50, .05); }
[data-theme="hanji"] .cover { padding-top: 64px; }
[data-theme="hanji"] .cover__label { font-size: 30px; letter-spacing: .5em; color: var(--accent); font-weight: 800; margin-right: -.5em; }
[data-theme="hanji"] .cover__date-en { font-size: 16px; letter-spacing: .2em; color: var(--text-soft); margin-bottom: 28px; }
[data-theme="hanji"] .cover__photo { width: 84%; padding: 10px; background: var(--card); border: 1px solid var(--line); outline: 3px double var(--accent); outline-offset: 6px; }
[data-theme="hanji"] .cover__photo img { filter: sepia(.12); }
[data-theme="hanji"] .cover__title { font-size: 27px; font-weight: 800; }
[data-theme="hanji"] .cover__sub { color: var(--accent); font-size: 17px; }
[data-theme="hanji"] .cover__when, [data-theme="hanji"] .cover__where { font-size: 17px; color: var(--text); }
[data-theme="hanji"] .section__eyebrow { display: none; }
[data-theme="hanji"] .section__title { font-size: 25px; font-weight: 800; }
[data-theme="hanji"] .section__title::after { content: ""; display: block; width: 28px; height: 2px; margin: 14px auto 0; background: var(--accent); }
[data-theme="hanji"] .greeting__msg { font-size: 18px; line-height: 2.2; }
[data-theme="hanji"] .greeting__deco { border-radius: 0; width: 100%; height: auto; aspect-ratio: 16/10; filter: grayscale(.2); }
[data-theme="hanji"] .btn { font-size: 17px; min-height: 56px; }
[data-theme="hanji"] .cal__grid { font-size: 16px; }
[data-theme="hanji"] .countdown b { font-family: "Pretendard Variable", sans-serif; font-weight: 600; }
[data-theme="hanji"] .timeline time { font-family: "Pretendard Variable", sans-serif; font-weight: 700; font-size: 15px; }
[data-theme="hanji"] .timeline h3 { font-size: 19px; }
[data-theme="hanji"] .timeline p, [data-theme="hanji"] .transport dd, [data-theme="hanji"] .family-list span { font-size: 16px; }
[data-theme="hanji"] .family-list b { font-size: 18px; }
[data-theme="hanji"] .info__icon { background: transparent; border: 1px solid var(--line); }
[data-theme="hanji"] .gb__item p, [data-theme="hanji"] .profile__list dd { font-size: 16px; }

/* ============================================================
 *  [테마] brand — 개업·오픈 (풀스크린 사진, 브랜드 색)
 * ============================================================ */
[data-theme="brand"] {
  --bg: #ffffff; --bg-alt: #f5f3ef; --card: #ffffff;
  --text: #1f1d1a; --text-soft: #75706a; --accent: #2f6f4f; --accent-soft: #e4efe8; --line: #e7e3dc;
  --font-body: "Pretendard Variable", sans-serif;
  --font-title: "Pretendard Variable", sans-serif;
  --font-en: "DM Serif Display", serif;
  --radius: 6px;
  --petal: 255, 255, 255;
}
[data-theme="brand"] body { background: #e9e6e1; }
[data-theme="brand"] .cover { padding: 0; justify-content: flex-end; color: #fff; }
[data-theme="brand"] .cover__photo { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
[data-theme="brand"] .cover__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 35%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.75)); }
[data-theme="brand"] .cover__top { position: absolute; top: 52px; left: 0; right: 0; z-index: 1; }
[data-theme="brand"] .cover__label { font-size: 44px; letter-spacing: .02em; color: #fff; line-height: 1.1; }
[data-theme="brand"] .cover__date-en { font-family: "Pretendard Variable", sans-serif; font-size: 14px; letter-spacing: .3em; color: rgba(255,255,255,.85); margin: 10px 0 0; }
[data-theme="brand"] .cover__info { position: relative; z-index: 1; margin: 0 28px 78px; text-align: left; align-self: stretch; }
[data-theme="brand"] .cover__title { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
[data-theme="brand"] .cover__sub { color: rgba(255,255,255,.9); font-weight: 500; }
[data-theme="brand"] .cover__when, [data-theme="brand"] .cover__where { color: rgba(255,255,255,.85); }
[data-theme="brand"] .cover__scroll { background: rgba(255,255,255,.3); }
[data-theme="brand"] .cover__scroll span { background: #fff; }
[data-theme="brand"] .section__eyebrow { font-size: 24px; letter-spacing: 0; color: var(--accent); }
[data-theme="brand"] .section__title { font-weight: 800; letter-spacing: -.02em; }
[data-theme="brand"] .greeting__deco { border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 16/10; }
[data-theme="brand"] .info__list li { border-left: 4px solid var(--accent); }
[data-theme="brand"] .info__icon { background: var(--accent-soft); border-radius: 8px; }
[data-theme="brand"] .gallery__grid.is-slide button { border-radius: var(--radius); }

/* ============================================================
 *  [테마] pop — 생일·파티 (비비드 컬러, 스티커 감성)
 * ============================================================ */
[data-theme="pop"] {
  --bg: #fff7fb; --bg-alt: #fff0d9; --card: #ffffff;
  --text: #2b1d3a; --text-soft: #7c6b88; --accent: #ff4f8b; --accent-soft: #ffe1ec; --line: #f1dce8;
  --sun: #ff4f8b; --sat: #3a86ff;
  --font-body: "Pretendard Variable", sans-serif;
  --font-title: "Black Han Sans", "Pretendard Variable", sans-serif;
  --font-en: "Bagel Fat One", "Black Han Sans", sans-serif;
  --radius: 16px;
  --confetti: #ff4f8b,#ffbe0b,#3a86ff,#06d6a0,#8338ec;
}
[data-theme="pop"] body { background: #f4e3ee; }
[data-theme="pop"] .cover { padding-top: 48px; }
[data-theme="pop"] .cover__label { font-size: 40px; letter-spacing: 0; color: var(--accent); line-height: 1.1; text-shadow: 3px 3px 0 #ffbe0b; }
[data-theme="pop"] .cover__date-en { font-family: "Pretendard Variable", sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .14em; color: var(--text); margin: 10px 0 24px; }
[data-theme="pop"] .cover__photo { width: 86%; border-radius: 24px; transform: rotate(2deg); border: 6px solid #fff; box-shadow: 8px 8px 0 #3a86ff; }
[data-theme="pop"] .cover__title { font-weight: 400; font-size: 32px; line-height: 1.3; }
[data-theme="pop"] .cover__sub { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 999px; background: #ffbe0b; color: #2b1d3a; font-weight: 700; }
[data-theme="pop"] .section__eyebrow { font-size: 28px; letter-spacing: 0; }
[data-theme="pop"] .section__title { font-weight: 400; font-size: 24px; }
[data-theme="pop"] .btn, [data-theme="pop"] .navi a { border-radius: 999px; font-weight: 700; }
[data-theme="pop"] .btn--fill { box-shadow: 4px 4px 0 #2b1d3a; }
[data-theme="pop"] .navi { margin: 12px 0 0; gap: 6px; border: 0; }
[data-theme="pop"] .navi a { border: 2px solid var(--text); }
[data-theme="pop"] .navi a + a { border-left: 2px solid var(--text); }
[data-theme="pop"] .map { margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--text); }
[data-theme="pop"] .info__list li, [data-theme="pop"] .vote__opt, [data-theme="pop"] .gb__item, [data-theme="pop"] .rsvp__card { border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--text); }
[data-theme="pop"] .info__icon { background: #fff0d9; }
[data-theme="pop"] .vote__opt.is-mine { background: #fff0d9; }
[data-theme="pop"] .gallery__grid { gap: 8px; }
[data-theme="pop"] .gallery__grid button { border-radius: 12px; }
[data-theme="pop"] .gallery__grid button:nth-child(odd) { transform: rotate(-1.5deg); }
[data-theme="pop"] .gallery__grid button:nth-child(even) { transform: rotate(1.5deg); }
[data-theme="pop"] .countdown div { border: 2px solid var(--text); }
[data-theme="pop"] .countdown b { font-family: "Bagel Fat One", sans-serif; font-weight: 400; color: var(--accent); }
