/* =================================================================
   위베이프 영등포점 — style.css
   Mobile-first, dark premium lounge aesthetic.
   Layout only — editable TEXT content lives in script.js.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #0b0c0b;   /* near-black base */
  --bg-2:          #111412;   /* slightly lifted panels */
  --bg-3:          #171a18;   /* cards */
  --line:          #23271f;   /* hairline borders */

  --green:         #639922;   /* primary accent */
  --green-bright:  #97C459;   /* highlight / hover */
  --green-glow:    #B4DC7E;   /* icon hover (slightly brighter) */
  --purple-a:      #7F77DD;   /* brand gradient start */
  --purple-b:      #534AB7;   /* brand gradient end */

  --text:          #eef1ea;   /* primary text */
  --text-dim:      #9aa294;   /* secondary text */
  --text-faint:    #5f665a;   /* tertiary / legal */

  --radius:        14px;
  --radius-sm:     10px;
  --maxw:          1160px;

  --grad-brand: linear-gradient(135deg, var(--purple-a), var(--purple-b));
  --grad-green: linear-gradient(135deg, var(--green-bright), var(--green));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Shared section headings ---------- */
.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--green-bright);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 28px;
  line-height: 1.25;
}
.center { text-align: center; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--green {
  background: var(--grad-green);
  color: #0b0c0b;
  box-shadow: 0 6px 20px rgba(99, 153, 34, 0.28);
}
.btn--green:hover {
  box-shadow: 0 8px 28px rgba(151, 196, 89, 0.45);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* =================================================================
   AGE VERIFICATION MODAL
   ================================================================= */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;                 /* toggled to flex by JS */
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 5, 4, 0.92);
  backdrop-filter: blur(8px);
}
.age-gate.is-open { display: flex; }

.age-gate__box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.age-gate__logo {
  display: inline-block;
  font-weight: 900;
  font-size: 1.3rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: 20px;
}
.age-gate__title { font-size: 1.4rem; font-weight: 900; margin-bottom: 14px; }
.age-gate__desc { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 24px; }
.age-gate__buttons { display: flex; flex-direction: column; gap: 12px; }
.age-gate__buttons .btn { width: 100%; }
.age-gate__legal {
  margin-top: 20px;
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* =================================================================
   HEADER
   ================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
/* semi-transparent dark bg once scrolled (class toggled in JS) */
.header.is-scrolled {
  background: rgba(11, 12, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;           /* never split 위베이프 / 영등포점 */
}
.logo__mark {
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__sub { font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }

.header__nav { display: none; gap: 26px; white-space: nowrap; }
.header__nav a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.header__nav a:hover { color: var(--green-bright); }

.header__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Mobile (< 768px): nav and the header language switch are hidden;
   the language switch sits at the top of the hero instead. */
.header__right > .lang-switch { display: none; }

/* ---------- Language switch (ENG / KOR / 中文) ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: rgba(17, 20, 18, 0.6);
}
.lang-switch button {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch button:hover { color: var(--green-bright); }
.lang-switch button.is-active {
  background: var(--grad-green);
  color: #0b0c0b;
}
.lang-switch--lg button { font-size: 0.85rem; padding: 8px 16px; }
/* ---------- Instagram icon (header + footer) ---------- */
.ig-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 0.15s ease, transform 0.15s ease;
}
.ig-link svg { width: 24px; height: 24px; }
.ig-link--sm svg { width: 18px; height: 18px; }
.ig-link:hover { color: var(--green-bright); transform: translateY(-1px); }

.age-gate__lang { display: flex; width: fit-content; margin: 0 auto 18px; }
.hero__lang { display: flex; width: fit-content; margin: 0 auto 28px; }

/* Chinese: prefer Simplified Chinese glyphs */
html[lang="zh-CN"] body {
  font-family: "Noto Sans SC", "Noto Sans KR", system-ui, sans-serif;
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 90% at 50% 0%, #14181300 0%, var(--bg) 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 80px;
  text-align: center;
}
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--green-bright);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__subtitle {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  margin-bottom: 34px;
}

/* Vapor atmosphere — 4 heavily blurred, very faint shapes drifting
   independently behind the headline. Mostly white/gray with a faint
   brand-purple hint; green is reserved for CTAs.
   Sizes use clamp() so the same symmetric layout scales down on mobile.
   Each shape is centred on its anchor via --s (its size), so transform
   is free for the drift animation. */
.hero__smoke { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.smoke {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  animation: ease-in-out infinite alternate;
}
/* centred high, behind the headline */
.smoke--1 {
  --s: clamp(300px, 85vw, 500px);
  left: calc(50% - var(--s) / 2);
  top: calc(12% - var(--s) / 2);
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
  opacity: 0.12;
  animation-name: drift1;
  animation-duration: 21s;
}
/* lower-left */
.smoke--2 {
  --s: clamp(220px, 60vw, 380px);
  left: calc(22% - var(--s) / 2);
  top: calc(72% - var(--s) / 2);
  background: radial-gradient(circle, #d6d8de 0%, transparent 70%);
  opacity: 0.10;
  animation-name: drift2;
  animation-duration: 17s;
}
/* lower-right (mirrors lower-left) */
.smoke--3 {
  --s: clamp(220px, 60vw, 380px);
  left: calc(78% - var(--s) / 2);
  top: calc(72% - var(--s) / 2);
  background: radial-gradient(circle, #d6d8de 0%, transparent 70%);
  opacity: 0.10;
  animation-name: drift3;
  animation-duration: 24s;
}
/* faint brand-purple hint, centred just behind the title */
.smoke--4 {
  --s: clamp(240px, 70vw, 420px);
  left: calc(50% - var(--s) / 2);
  top: calc(48% - var(--s) / 2);
  background: radial-gradient(circle, var(--purple-a) 0%, transparent 70%);
  opacity: 0.08;
  animation-name: drift4;
  animation-duration: 19s;
}
@keyframes drift1 { from { transform: translate(-20px, 0); }     to { transform: translate(20px, 25px); } }
@keyframes drift2 { from { transform: translate(0, 0); }         to { transform: translate(35px, -25px); } }
@keyframes drift3 { from { transform: translate(0, 0); }         to { transform: translate(-30px, -35px); } }
@keyframes drift4 { from { transform: translate(15px, -15px); }  to { transform: translate(-20px, 15px); } }
@media (prefers-reduced-motion: reduce) {
  .smoke { animation: none; }
}

/* =================================================================
   NOTICE TICKER (marquee)
   ================================================================= */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker__label {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #0b0c0b;
  background: var(--grad-green);
}
.ticker__viewport { flex: 1; overflow: hidden; }
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  padding: 11px 0;
  animation: ticker-scroll 32s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item {
  padding-inline: 34px;
  font-size: 0.85rem;
  color: var(--text-dim);
  position: relative;
}
.ticker__item::before {
  content: "●";
  position: absolute;
  left: 8px;
  color: var(--green-bright);
  font-size: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* track holds 2 copies */
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* =================================================================
   PERKS
   ================================================================= */
.perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2x2 mobile */
  gap: 14px;
  padding-block: 48px;
}
.perk {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.perk__icon { font-size: 1.9rem; margin-bottom: 10px; }
/* Tabler icons: one size + one color across perks and categories.
   Container keeps its font-size/line-height so card spacing is unchanged. */
.perk__icon .ti,
.cat-card__icon .ti {
  font-size: 22px;
  color: var(--green-bright);
  vertical-align: middle;
  transition: color 0.2s ease;
}
.perk__title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.perk__desc { font-size: 0.8rem; color: var(--text-dim); }

/* =================================================================
   ABOUT
   ================================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr;   /* stacked mobile */
  gap: 26px;
  padding-block: 60px;
  align-items: center;
}
.about__text p { color: var(--text-dim); margin-bottom: 16px; }
.about__media {
  background:
    repeating-linear-gradient(45deg, #1b1f1a 0 12px, #171a18 12px 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* =================================================================
   CATEGORY GRID
   ================================================================= */
.categories { padding-block: 60px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cat-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 18px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-bright);
  box-shadow: 0 0 0 1px var(--green-bright),
              0 10px 30px rgba(151, 196, 89, 0.22);
}
.cat-card__icon { font-size: 2.2rem; margin-bottom: 12px; }
.cat-card:hover .cat-card__icon .ti { color: var(--green-glow); }
.cat-card__label { font-size: 1.05rem; font-weight: 700; }

/* =================================================================
   BRAND STRIP
   ================================================================= */
.brands {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.brands__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-block: 30px;
}
.brand {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  transition: color 0.2s ease;
}
.brand:hover { color: var(--text); }

/* =================================================================
   BLOG / NOTICE
   ================================================================= */
.blog { padding-block: 60px; }
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.blog-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { border-color: var(--green-bright); transform: translateY(-3px); }
.blog-card__date { font-size: 0.75rem; color: var(--green-bright); font-weight: 700; }
.blog-card__title { font-size: 1.1rem; font-weight: 700; margin: 8px 0 10px; }
.blog-card__excerpt { font-size: 0.88rem; color: var(--text-dim); }
.blog__more { text-align: center; margin-top: 28px; }

/* =================================================================
   LOCATION & CONTACT
   ================================================================= */
.location {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-block: 60px;
}
.location__addr { color: var(--text-dim); margin-bottom: 18px; }
.location__hours { list-style: none; margin-bottom: 24px; }
.location__hours li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.location__hours span {
  display: inline-block;
  min-width: 90px;
  color: var(--green-bright);
  font-weight: 700;
}
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* TEMPORARY static location card — swap for a real embedded map later. */
.location__map {
  background:
    radial-gradient(circle at 50% 35%, rgba(99, 153, 34, 0.14), transparent 60%),
    var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(99, 153, 34, 0.12);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px 22px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.location__map:hover {
  border-color: var(--green);
  box-shadow: 0 0 50px rgba(151, 196, 89, 0.2);
}
.location__map-pin {
  width: 56px;
  height: 56px;
  color: var(--green-bright);
  filter: drop-shadow(0 0 12px rgba(151, 196, 89, 0.45));
}
.location__map-addr {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  max-width: 320px;
  word-break: keep-all;
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  border-top: 3px solid var(--green);
  background: var(--bg-2);
}
.footer__inner { padding-block: 40px; }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.footer__top .footer__brand { margin-bottom: 0; }
.footer__brand {
  font-weight: 900;
  font-size: 1.2rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.footer__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 18px;
}
.footer__meta li { font-size: 0.8rem; color: var(--text-dim); }
.footer__notice { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 12px; }
.footer__copy { font-size: 0.78rem; color: var(--text-faint); }

/* =================================================================
   FLOATING NAVER BUTTON
   ================================================================= */
.float-naver {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0b0c0b;
  background: var(--grad-green);
  box-shadow: 0 8px 24px rgba(99, 153, 34, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.float-naver:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(151, 196, 89, 0.55);
}
.float-naver__icon { font-size: 1.15rem; }

/* =================================================================
   WECHAT QR POPUP (Chinese page)
   ================================================================= */
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  animation: wechat-fade 0.2s ease;
}
.wechat-modal[hidden] { display: none; }
.wechat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 24px;
  text-align: center;
  background: #141a16;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(99, 153, 34, 0.15), 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: wechat-pop 0.22s ease;
}
.wechat-card__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.wechat-card__close:hover { color: var(--green-bright); background: rgba(255, 255, 255, 0.06); }
.wechat-card__qr {
  width: 200px;
  height: 200px;
  margin-top: 12px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
}
.wechat-card__title { margin-top: 6px; font-weight: 800; color: var(--text); }
.wechat-card__id { color: var(--text-dim); font-size: 0.9rem; }
.wechat-card__copy { margin-top: 8px; }
@keyframes wechat-fade { from { opacity: 0; } }
@keyframes wechat-pop { from { opacity: 0; transform: scale(0.95) translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .wechat-modal, .wechat-card { animation: none; }
}

/* =================================================================
   SCROLL REVEAL (Intersection Observer adds .is-visible)
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =================================================================
   RESPONSIVE — tablet / desktop
   ================================================================= */
/* very narrow phones: drop the header CTA (still in hero + floating button) */
@media (max-width: 359px) {
  .header__cta { display: none; }
}

@media (min-width: 768px) {
  .logo__mark { font-size: 1.25rem; }
  .logo__sub { font-size: 0.8rem; }
  .header__nav { display: flex; }
  .header__right > .lang-switch { display: inline-flex; }
  .hero__lang { display: none; }
}

@media (min-width: 720px) {
  .perks { grid-template-columns: repeat(4, 1fr); }  /* 1x4 desktop */
  .about { grid-template-columns: 1.1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .location { grid-template-columns: 1fr 1.1fr; }
  .float-naver { right: 26px; bottom: 26px; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
}
