/* /assets/css/site.css */
/* ✅ 기존 index.php의 <style>...</style> 블록을 "내용 그대로" 이동 */

/************************************************************
 * THEME GROUP (✅ 이 블록만 교체하면 전체 무드가 바뀝니다)
 ************************************************************/
:root{
  /* Base */
  --bg:    #f7f8fb;
  --bg2:   #ffffff;
  --ink:   #0b1220;
  --muted: rgba(11,18,32,.72);
  --line:  rgba(11,18,32,.14);

  /* Aura */
  --aura-w: rgba(255,255,255,.92);
  --aura-g: rgba(167,243,208,.45);
  --aura-y: rgba(253,230,138,.38);
  --aura-l: rgba(190,242,100,.30);
  --aura-b: rgba(147,197,253,.22);

  /* Glass */
  --glass:  rgba(255,255,255,.66);
  --glass2: rgba(255,255,255,.82);

  /* Depth */
  --shadow:  0 26px 90px rgba(17, 24, 39, .14);
  --shadow2: 0 14px 40px rgba(17, 24, 39, .10);

  /* Accents */
  --accent:  #10b981;
  --accent2: #f59e0b;
  --accent3: #0ea5e9;

  /* Layout */
  --headerH: 76px;
  --secY: 2.0rem;
  --secYmd: 3.0rem;
  --pageBottom: 72px;

  /************************************************************
   * PREMIUM TOKENS (여러 파일에서 중복되던 prem 토큰 통합)
   ************************************************************/
  --prem-border: rgba(15,23,42,.14);
  --prem-border-soft: rgba(148,163,184,.35);
  --prem-shadow: 0 22px 60px rgba(15,23,42,.10);
  --prem-shadow-soft: 0 12px 30px rgba(15,23,42,.07);
  --prem-card-bg: rgba(255,255,255,.74);
  --prem-sub-bg: rgba(248,250,252,.78);
  --prem-item-bg: rgba(241,245,249,.78);
}

/************************************************************
 * Global background
 ************************************************************/
body{
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 45%, #eef2f7 100%);
  color: var(--ink);
  padding-top: var(--headerH);
  padding-bottom: max(var(--pageBottom), env(safe-area-inset-bottom));
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -50;
  pointer-events: none;
  background:
    radial-gradient(1200px 760px at 18% 10%, var(--aura-g), transparent 62%),
    radial-gradient(1200px 760px at 78% 12%, var(--aura-y), transparent 62%),
    radial-gradient(1300px 820px at 52% 108%, var(--aura-l), transparent 60%),
    radial-gradient(1100px 720px at 50% -10%, var(--aura-w), transparent 60%),
    radial-gradient(900px 520px at 88% 70%, var(--aura-b), transparent 62%);
  opacity: .95;
}

.noise::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
  mix-blend-mode:overlay; opacity:.18;
}
[x-cloak]{ display:none !important; }

/************************************************************
 * Layout helpers
 ************************************************************/
.sec{ padding-block: var(--secY); }
@media (min-width: 768px){ .sec{ padding-block: var(--secYmd); } }
.anchor{ scroll-margin-top: calc(var(--headerH) + 14px); }

/************************************************************
 * Glass / Chip / Buttons
 ************************************************************/
.glass, .glass-strong{
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.5rem;
}
.glass{ background: var(--glass); }
.glass-strong{
  background: var(--glass2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glass-rel{ position:relative; }
.glass-rel::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.chip{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-primary{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(11,18,32,.12);
  box-shadow: 0 18px 52px rgba(17,24,39,.16);
}
.btn-primary:hover{ background:#fff; box-shadow: 0 20px 60px rgba(17,24,39,.16); }
.btn-secondary{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(11,18,32,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover{ background: rgba(255,255,255,.70); }

#hero-vanta{
  opacity: .85;
  filter: saturate(.95) contrast(.98);
}
#hero-vanta canvas{
  opacity: .22;
  filter: saturate(.95) contrast(.96) brightness(1.02);
}

/************************************************************
* Hero big card
 ************************************************************/
.hero-shell{
  border-radius: 2rem;
  border: 1px solid rgba(11,18,32,.10);
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(16,185,129,.18), transparent 62%),
    radial-gradient(900px 520px at 86% 16%, rgba(245,158,11,.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.70) 100%);
  box-shadow: 0 36px 120px rgba(17,24,39,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
}
.hero-shell::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  opacity:.9;
  pointer-events:none;
}
.hero-inner{ padding: 1.25rem; }
@media (min-width: 768px){
  .hero-inner{ padding: 2rem; }
}
.hero-mini{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: 0 16px 40px rgba(17,24,39,.10);
}

/************************************************************
 * Header fixed
 ************************************************************/
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--headerH);
  z-index: 120;
}

/* --- Fix: make logo tap reliable on mobile --- */
.site-header a[aria-label="The Name Worship Home"] {
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.site-header a[aria-label="The Name Worship Home"] img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/************************************************************
 * Mobile overlay + drawer
 ************************************************************/
.overlay{
  position: fixed; inset:0;
  z-index: 200;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.overlay.is-open{ opacity:1; pointer-events:auto; }
.drawer{
  position: fixed;
  top:0; right:0;
  height: 100dvh;
  width: 86%;
  max-width: 380px;
  z-index: 210;
  transform: translateX(100%);
  transition: transform .22s ease;
  box-shadow: 0 28px 90px rgba(17,24,39,.18);
}
.drawer.is-open{ transform: translateX(0); }

.lang-box{
  border: 1px solid rgba(11,18,32,.07);
  box-shadow: var(--shadow2);
}
.lang-btn{
  color: rgba(11,18,32,.78);
  background: transparent;
}
.lang-btn:hover{ background: rgba(0,0,0,.05); }
.lang-btn.is-active{
  background: rgba(11,18,32,.10);
  color: rgba(11,18,32,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

/************************************************************
 * Apple-style reveal
 ************************************************************/
html.js [data-reveal]{
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 520ms cubic-bezier(.2,.8,.2,1),
    transform 680ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--rdelay, 0ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in{
  opacity: 1;
  transform: translateY(0);
}
html.js [data-reveal="fade"]{ transform: none; }
html.js [data-reveal="fade"].is-in{ transform:none; }
html.js [data-reveal="lift"]{
  transform: translateY(18px);
  transition-duration: 560ms, 780ms;
}
html.js [data-reveal="float"]{
  transform: translateY(10px);
  transition-duration: 520ms, 720ms;
}
html.js [data-reveal="hero"]{
  transform: translateY(8px);
  transition-duration: 420ms, 520ms;
}
@media (prefers-reduced-motion: reduce){
  html.js [data-reveal]{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/************************************************************
 * Snapshots media card helpers
 ************************************************************/
.media-card{ overflow:hidden; }
.media-thumb{
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(11,18,32,.10);
  overflow:hidden;
}
.media-thumb img,
.media-thumb video{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}
.media-thumb::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.18) 100%);
  pointer-events:none;
}
.badge{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,18,32,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.play{
  position:absolute;
  left: 12px;
  bottom: 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
}

.record-embed { height: 480px; } /* 기준: 720px 고정 */
.record-embed > video{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover; /* contain으로 바꾸면 크롭 없음 */
}

/************************************************************
 * Mobile overflow fixes
 ************************************************************/
html, body{
  width: 100%;
  overflow-x: hidden;
}
body{
  position: relative;
  overscroll-behavior-x: none;
}
.hero-shell,
.glass,
.glass-strong{
  max-width: 100%;
}
#hero-vanta,
#hero-vanta canvas{
  width: 100% !important;
  height: 100% !important;
  display: block;
}

footer nav{ display:flex !important; gap: 2rem !important; }

/************************************************************
 * Premium UI (여러 파일의 중복 <style> 통합)
 ************************************************************/

/* iOS에서도 가로 스크롤 메뉴 깔끔하게 */
.no-scrollbar::-webkit-scrollbar { display:none; }
.no-scrollbar { -ms-overflow-style:none; scrollbar-width:none; }

/* 구분선(공통) */
.prem-divider{
  height:1px;
  background: linear-gradient(90deg, rgba(15,23,42,.00), rgba(15,23,42,.08), rgba(15,23,42,.00));
}

/* 배너 라벨(공통) */
.prem-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(15,23,42,.12);
  color:#334155;
  font-weight:800;
  font-size:12px;
  backdrop-filter: blur(8px);
}
.prem-pill-dot{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(90deg,#4f46e5,#0ea5e9,#10b981);
}

/* 링크 강조 */
.prem-link{
  font-weight:900;
  color:#0f172a;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* 카드(좌측 프리미엄 바) */
.prem-article{
  position:relative;
  overflow:hidden;
  background: var(--prem-card-bg);
  border: 1px solid var(--prem-border);
  box-shadow: var(--prem-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.prem-article:hover{
  transform: translateY(-2px);
  box-shadow: 0 28px 80px rgba(15,23,42,.12);
}
.prem-article::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:7px;
  background: linear-gradient(180deg,#4f46e5,#0ea5e9,#10b981);
  opacity:.9;
}

/* prem-article 내부 리스트 들여쓰기(제목보다 뒤로) */
.prem-article ul.list-disc{
  padding-left: 2rem; /* Tailwind pl-8 정도 */
}


/* 큰 컨테이너 카드 (prem-shell) */
.prem-shell{
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 26px 70px rgba(15,23,42,.10);
  border-radius: 24px;
  overflow: hidden;
}

/* 상단 헤더 박스 */
.prem-head{
  background: linear-gradient(135deg, rgba(15,23,42,.06), rgba(99,102,241,.06), rgba(16,185,129,.05));
  border: 1px solid rgba(255,255,255,.35);
}

/* 요약 카드 / 일반 카드 (이름만 다른 동일 스타일 통합: prem-card + tnw-card) */
.prem-card,
.tnw-card{
  border: 1px solid var(--prem-border);
  background: var(--prem-card-bg);
  box-shadow: var(--prem-shadow);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease;
}
.prem-card:hover,
.tnw-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 28px 80px rgba(15,23,42,.12);
}

/* 섹션 안 서브 박스 */
.prem-box{
  background: rgba(248,250,252,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--prem-shadow-soft);
}

/* 메시지 박스 */
.prem-quote{
  border: 1px solid var(--prem-border-soft);
  box-shadow: var(--prem-shadow-soft);
  background: rgba(255,255,255,.82);
}

/* 굿즈 래퍼 / 아이템 */
.prem-goods-wrap{
  background: var(--prem-sub-bg);
  border: 1px solid rgba(15,23,42,.10);
}
.prem-goods-item{
  background: var(--prem-item-bg);
  border: none !important;
  box-shadow: none !important;
}

/* 인풋 */
.prem-input{
  width:100%;
  padding:.85rem 1rem;
  border-radius:1rem;
  background: rgba(248,250,252,.85);
  border: 1px solid rgba(15,23,42,.10);
  outline: none;
}
.prem-input:focus{
  border-color: rgba(79,70,229,.35);
  box-shadow: 0 0 0 4px rgba(79,70,229,.10);
}
.prem-help{
  color: rgba(71,85,105,.85);
  font-size:.82rem;
}

/* 필드/입력 래퍼(파일들에서 prem-field로 쓰던 것) */
.prem-field{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

/* 버튼(공통) */
.prem-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 22px;
  border-radius:18px;
  font-weight:900;
  letter-spacing:-.02em;
  position:relative;
  overflow:hidden;
  white-space:nowrap;
  transition: transform .12s ease, filter .12s ease;
}
.prem-btn:active{ transform: scale(.98); }

/* CTA / SUB (이름만 다른 클래스 통합: prem-cta= prem-btn-cta, prem-sub= prem-btn-sub) */
.prem-btn-cta,
.prem-cta{
  color:#fff;
  background: linear-gradient(90deg,#4f46e5,#0ea5e9,#10b981);
  box-shadow: 0 18px 50px rgba(16,185,129,.32);
  font-size:18px;
}
.prem-btn-sub,
.prem-sub{
  color:#0f172a;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
  font-size:16px;
  font-weight:900;
}

/* prem-cta에 있던 상단 하이라이트(유지) */
.prem-cta{
  transform:translateZ(0);
}
.prem-cta::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,rgba(255,255,255,.10),rgba(255,255,255,.65),rgba(255,255,255,.10));
  opacity:.95;
}
.prem-cta::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.06),transparent);
}

/* 체크박스(살짝 정돈) */
.tnw-check{ accent-color: #0ea5e9; }

/************************************************************
 * TNW Media Carousel (my_participations 계열)
 ************************************************************/
.tnw-media{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
}
.tnw-media img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transform: translateZ(0);
  opacity:0;
  transition: opacity .35s ease;
}
.tnw-media img.is-active{ opacity:1; }

.tnw-nav-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:42px; height:42px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(15,23,42,.30);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(15,23,42,.20);
  transition: transform .15s ease, background .15s ease;
}
.tnw-nav-btn:hover{ background: rgba(15,23,42,.45); }
.tnw-nav-btn:active{ transform: translateY(-50%) scale(.98); }
.tnw-nav-prev{ left:12px; }
.tnw-nav-next{ right:12px; }

.tnw-dots{
  position:absolute;
  left:0; right:0; bottom:10px;
  display:flex;
  justify-content:center;
  gap:6px;
  pointer-events:none;
}
.tnw-dot{
  width:7px; height:7px;
  border-radius:999px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 8px 14px rgba(15,23,42,.18);
}
.tnw-dot.is-active{ background: rgba(255,255,255,.92); }

/************************************************************
 * TNW Modal (중복 정의 통합)
 ************************************************************/
.tnw-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.36);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.tnw-modal-backdrop.is-open{ display:flex; }

.tnw-modal{
  width: 100%;
  max-width: 720px; /* 여러 파일(520/720) 중 넓은 쪽으로 통일 */
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 30px 90px rgba(15,23,42,.22);
  overflow: hidden;
}
.tnw-modal-head{
  padding: 16px 18px;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(90deg, rgba(79,70,229,.10), rgba(14,165,233,.10), rgba(16,185,129,.10));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.tnw-modal-body{
  padding: 16px 18px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
}
.tnw-modal-actions{
  padding: 14px 18px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.tnw-modal-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.12);
  font-weight: 900;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

/* 검색 결과 리스트(있던 블록 유지) */
.tnw-results{
  margin-top:12px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.tnw-result-item{ padding:12px 14px; border-bottom:1px solid rgba(15,23,42,.06); cursor:pointer; }
.tnw-result-item:hover{ background: rgba(15,23,42,.03); }
.tnw-result-title{ font-weight:900; color:#0f172a; font-size:14px; line-height:1.35; }
.tnw-result-sub{ margin-top:4px; color:#475569; font-size:12px; }
.tnw-result-item:last-child{ border-bottom:none; }

.tnw-err-list{ margin-top:10px; padding-left:18px; color:#0f172a; }
.tnw-err-list li{ margin:4px 0; }
