/* ============================================================
   common.css — 공용 (네비/푸터/히어로/배경/토큰). 모든 페이지 공통.
   페이지별 스타일은 css/<page>.css 로 분리.
   (fantaj.kr 레퍼런스 공통부 추출)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-1: #fdfbf6;
  --bg-2: #faf6ec;
  --bg-3: #fffdf8;
  --text: #2b2317;
  --text-main: #2b2317;
  --text-sub: #8a7d63;
  --muted: #8a7d63;
  --purple: #b8860b;
  --purple-2: #c9992e;
  --deep: #b8860b;
  --pink: #e3bd4e;
  --pink-2: #d4af37;
  --deep-pink: #d4a017;
  --gold: #d4af37;
  --mint: #25bec1;
  --line: rgba(226,209,166, 0.58);
  --card: rgba(255, 255, 255, 0.78);
  --soft-card: rgba(255,251,240, 0.82);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow: 0 12px 30px rgba(160,125,45, 0.09);
  --font-serif: "Cormorant Garamond", "Noto Serif KR", "Pretendard", serif;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 5%, rgba(240,220,150, .26), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(224,197,104, .22), transparent 30%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  color: var(--text-main);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ── 네비게이션 ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212,175,55, 0.35);
  box-shadow: 0 6px 22px rgba(170,140,80, 0.08);
}

/* 상단 골드 헤어라인 — KP COMPANY 시그니처 라인 */
.navbar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37 18%, #b8860b 50%, #d4af37 82%, transparent);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: var(--purple);                 /* 그라데이션 미지원 폴백 */
  background: linear-gradient(135deg, var(--deep-pink) 0%, var(--pink-2) 48%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-img { height: 32px; width: auto; display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #6d5f45;
}

.nav-menu a:hover,
.nav-menu a.active { color: #c9992e; }

.nav-live {
  padding: 9px 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e3bd4e, #d4af37);
  color: white;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(199,155,42, 0.24);
  white-space: nowrap;
}

/* ── 페이지 컨테이너 ── */
.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 80px;
}

/* ── 히어로 (공통) ── */
.hero {
  position: relative;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf8 0%, #faf3dd 60%, #f5e8c4 100%);
  border: 1px solid rgba(212,175,55, 0.35);
  box-shadow: 0 18px 44px rgba(160,125,45, 0.12);
  margin-bottom: 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 76%);
  opacity: 0.7;
}

/* 안쪽 골드 헤어라인 프레임 — 럭셔리 카드 프레이밍 */
.hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184,134,11, 0.28);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-indent: 0.45em; /* 자간으로 인한 중앙 쏠림 보정 */
  color: #a87a08;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(46px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-indent: 0.10em;
  line-height: 1.04;
  color: #b8860b;                       /* 그라데이션 미지원 폴백 */
  background: linear-gradient(180deg, #e0c568 8%, #c9992e 55%, #a87a08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-indent: 0.30em;
  color: #8a6508;
}

/* 타이틀-서브 사이 골드 디바이더 + 다이아 오너먼트 */
.hero-sub::before {
  content: "◆";
  display: block;
  margin: 0 auto 12px;
  font-size: 9px;
  color: #d4af37;
  text-indent: 0;
  background:
    linear-gradient(90deg, transparent, rgba(201,153,42,.75), transparent) center / 190px 1px no-repeat;
  padding: 0 0 0;
  line-height: 1;
}

/* ── 공통 섹션 헤더 ── */
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #4a3c22;
}
.section-title::before { content: "◆"; font-size: 10px; color: #d4af37; }
.section-note { font-size: 13px; font-weight: 900; color: #c9992e; white-space: nowrap; }

/* ── 공통 빈/로딩 카드 ── */
.empty-card,
.loading-card {
  grid-column: 1 / -1;
  padding: 36px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #948a6e;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226,209,166, 0.55);
  box-shadow: var(--shadow);
}

/* ── 푸터 ── */
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  padding: 15px 0 4px;
  border-top: 1px solid rgba(205,185,140, 0.34);
  text-align: center;
  color: rgba(138,125,99, 0.82);
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(184,134,11, 0.82);
  line-height: 1;
}

.site-footer .footer-icon { width: 22px; height: 22px; object-fit: cover; display: block; }

.site-footer .footer-links {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.site-footer .footer-links a { color: rgba(120,105,70, 0.78); padding: 0 10px; }
.site-footer .footer-links a:hover { color: rgba(199,155,42, 0.92); }
.site-footer .footer-links a + a { border-left: 1px solid rgba(205,185,140, 0.42); }

.site-footer .footer-info {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  color: rgba(148,138,110, 0.76);
  word-break: keep-all;
}

/* ── 반응형 (네비/히어로/푸터 공통) ── */
@media (max-width: 900px) {
  .navbar { height: auto; padding: 12px 0 10px; }
  .nav-inner { width: min(1180px, calc(100% - 24px)); flex-wrap: wrap; gap: 10px 12px; }
  .logo { order: 1; font-size: 24px; letter-spacing: 0.10em; }
  .nav-live { order: 2; margin-left: auto; padding: 8px 12px; border-radius: 6px; font-size: 12px; }
  .nav-menu {
    order: 3; width: 100%; gap: 18px;
    overflow-x: auto; overflow-y: hidden; padding: 4px 2px 2px;
    /* BOARD 드롭다운 버튼(.nav-dd-btn)이 15px 고정이라 나머지 메뉴도 동일하게 통일 */
    font-size: 15px; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-menu a { flex: 0 0 auto; }
  .hero { height: 210px; }
}

@media (max-width: 700px) {
  .navbar { padding: 11px 0 9px; }
  .nav-inner { width: min(100% - 20px, 1180px); gap: 10px 12px; }
  .logo { font-size: 22px; }
  .nav-live { padding: 8px 13px; border-radius: 6px; font-size: 12px; }
  .nav-menu { gap: 15px; font-size: 15px; padding-bottom: 1px; }  /* BOARD 버튼과 동일 크기 유지 */
  .page { width: min(100% - 20px, 1180px); padding-top: 12px; padding-bottom: 52px; }
  .hero { height: 126px; margin-bottom: 12px; border-radius: 9px; }
  .hero-content { padding: 14px 10px; }
  .hero-kicker { font-size: 9px; letter-spacing: 0.12em; margin-bottom: 5px; }
  .hero-title { font-size: 30px; letter-spacing: 0.05em; }
  .hero-sub { margin-top: 6px; font-size: 10px; line-height: 1.3; }
  .section-title-row { margin-bottom: 10px; }
  .section-title { font-size: 18px; }
  .section-note { font-size: 11px; }
}

@media (max-width: 640px) {
  .site-footer { width: min(100% - 24px, 1180px); margin-bottom: 22px; padding-top: 13px; }
  .site-footer .footer-brand { font-size: 11px; }
  .site-footer .footer-icon { width: 20px; height: 20px; }
  .site-footer .footer-links { gap: 7px 0; font-size: 11px; }
  .site-footer .footer-links a { padding: 0 8px; }
  .site-footer .footer-info { max-width: 320px; margin-left: auto; margin-right: auto; }
}
