/* ================================================
   style.css — 꼭챙겨꿀팁 공통 스타일
   header · footer · 공통 컴포넌트
   ================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Noto+Serif+KR:wght@400;600;700&display=swap');

/* ── 전역 변수 ── */
:root {
  --navy:       #0d1b2a;
  --navy2:      #1b2f45;
  --gold:       #c9a84c;
  --gold2:      #e8c97a;
  --cream:      #f5f0e8;
  --text:       #2c1810;
  --muted:      #7a6a5a;
  --white:      #ffffff;
  --dark-bg:    #0d1117;
  --dark-card:  #161d27;
  --blue:       #60a5fa;

  --header-h:   60px;
  --radius:     14px;
  --shadow:     0 2px 20px rgba(13, 27, 42, 0.09);
  --trans:      0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; }
a { text-decoration: none; }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 로고 */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--white);
}
.logo-emoji { font-size: 22px; line-height: 1; }
.logo-text  { font-size: 16px; font-weight: 400; color: var(--white); letter-spacing: -0.3px; }
.logo-text strong { font-weight: 900; color: var(--gold2); }

/* 네비게이션 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-group + .nav-group {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  margin-right: 4px;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: all var(--trans);
  white-space: nowrap;
  border: 1px solid transparent;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--gold2);
}

/* 햄버거 버튼 (모바일) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold2);
  border-radius: 2px;
  transition: all var(--trans);
}
#site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
#site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 모바일 반응형 ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy2);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 2px solid rgba(201, 168, 76, 0.25);
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .site-nav.open { display: flex; }

  .nav-group {
    flex-wrap: wrap;
    gap: 6px;
  }
  .nav-group + .nav-group {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 12px;
    width: 100%;
  }
  .nav-group-label {
    width: 100%;
    margin-bottom: 2px;
  }
  .nav-link {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
#site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 36px 20px 28px;
  margin-top: 60px;
}

.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-brand .logo-emoji { font-size: 20px; }
.footer-brand .logo-text  { font-size: 15px; }

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.85;
  max-width: 560px;
}
.footer-disclaimer strong { color: rgba(255, 200, 80, 0.75); font-weight: 600; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--trans);
}
.footer-link:hover { color: var(--gold2); }
.footer-divider { color: rgba(255, 255, 255, 0.2); font-size: 12px; }

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.3px;
}
.footer-copy strong { color: rgba(255, 200, 80, 0.45); font-weight: 700; }

/* ════════════════════════════════════════
   공통 유틸 클래스
════════════════════════════════════════ */

/* 면책 고지 박스 (각 페이지 하단 공용) */
.notice-box {
  background: rgba(255, 200, 50, 0.05);
  border: 1px solid rgba(255, 200, 50, 0.15);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.9;
}
.notice-box strong { color: rgba(255, 200, 100, 0.85); }

/* 결과 카드 */
.result-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* 버튼 공통 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--trans);
  font-family: 'Noto Sans KR', sans-serif;
}
.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}
.btn-primary:active { transform: translateY(0); }
