@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

/* =========================================
   CSS 변수
   ========================================= */
:root {
  --primary: #d4af37;
  --primary-light: #f0c93a;
  --primary-dim: rgba(212, 175, 55, 0.15);
  --bg: #0a0a0a;
  --bg-card: rgba(18, 18, 18, 0.8);
  --bg-surface: rgba(28, 28, 28, 0.7);
  --text: #f0f0f0;
  --text-muted: #8a8a8a;
  --text-dim: #555;
  --border: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(212, 175, 55, 0.25);
  --radius: 14px;
  --radius-sm: 8px;
}

/* =========================================
   리셋 & 베이스
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1.6;
}

/* =========================================
   배경 오버레이
   ========================================= */
.background-overlay {
  position: fixed;
  inset: 0;
  background: url("bg.png") no-repeat center center / cover;
  filter: brightness(0.2) blur(3px);
  z-index: -1;
}

/* =========================================
   네비게이션 (다크 테마)
   ========================================= */
.navbar {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.6) !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.navbar-brand { color: var(--primary) !important; }
.navbar-brand:hover { color: var(--primary-light) !important; }
.navbar-menu li a {
  color: rgba(255,255,255,0.75) !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  transition: all 0.25s !important;
}
.navbar-menu li a:hover {
  color: var(--primary) !important;
  background: rgba(212,175,55,0.12) !important;
}
.navbar-toggle span { background: rgba(255,255,255,0.8) !important; }
@media (max-width: 768px) {
  .navbar-menu {
    background: rgba(10,10,10,0.97) !important;
    backdrop-filter: blur(20px) !important;
  }
}

/* =========================================
   페이지 헤더 (Hero)
   ========================================= */
.guide-hero {
  background: linear-gradient(
    180deg,
    rgba(212,175,55,0.06) 0%,
    rgba(10,10,10,0) 100%
  );
  border-bottom: 1px solid var(--border-gold);
  padding: 32px 0 28px;
}

.guide-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.guide-back:hover { color: var(--primary); text-decoration: none; }

.guide-hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.guide-hero-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.5));
  flex-shrink: 0;
}

.guide-hero-title {
  font-family: "Libre Baskerville", serif;
  font-size: 2.6rem;
  color: var(--primary);
  letter-spacing: 4px;
  line-height: 1;
}

.guide-hero-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.2px;
}

/* =========================================
   메인 레이아웃 (사이드바 + 컨텐츠)
   ========================================= */
.guide-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

/* =========================================
   사이드바
   ========================================= */
.guide-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  height: fit-content;
}

.gs-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding-left: 4px;
}

.gs-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gs-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}

.gs-btn:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border);
}

.gs-btn.active {
  background: var(--primary-dim);
  border-color: var(--border-gold);
  color: var(--primary);
}

.gs-btn.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.gs-icon { font-size: 1.1rem; flex-shrink: 0; }
.gs-text { flex: 1; }
.gs-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  transition: transform 0.2s, color 0.2s;
}
.gs-btn.active .gs-arrow,
.gs-btn:hover .gs-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

/* 사이드바 CTA */
.gs-cta {
  margin-top: 28px;
  padding: 18px 16px;
  background: var(--primary-dim);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  text-align: center;
}

.gs-cta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.gs-cta-btn {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #c9952a, #d4af37);
  color: #1a1000;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gs-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212,175,55,0.4);
  text-decoration: none;
  color: #1a1000;
}

/* =========================================
   모바일 탭 (기본 숨김)
   ========================================= */
.mobile-tabs {
  display: none;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 2px 12px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.mobile-tabs::-webkit-scrollbar { display: none; }

.mob-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.mob-tab.active {
  background: var(--primary-dim);
  border-color: var(--border-gold);
  color: var(--primary);
}

/* =========================================
   컨텐츠 패널
   ========================================= */
.guide-content {
  min-width: 0;
}

.guide-panel {
  display: none;
  animation: panelIn 0.25s ease;
}

.guide-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 패널 헤더 */
.panel-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-gold);
}

.panel-icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.4));
  flex-shrink: 0;
}

.panel-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.panel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* =========================================
   아코디언
   ========================================= */
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.acc-item:hover {
  border-color: rgba(212,175,55,0.3);
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  gap: 14px;
}

.acc-btn:hover { background: rgba(212,175,55,0.05); }

.acc-btn.open {
  color: var(--primary);
  background: rgba(212,175,55,0.06);
  border-bottom: 1px solid rgba(212,175,55,0.12);
}

.acc-chevron {
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: transform 0.3s, color 0.2s;
  flex-shrink: 0;
}

.acc-btn.open .acc-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* 아코디언 본문 */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 22px;
}

.acc-body p {
  font-size: 0.9rem;
  color: #c8c8c8;
  line-height: 1.75;
  margin-bottom: 12px;
}

.acc-body ol.info-list {
  padding-left: 22px;
  font-size: 0.9rem;
  color: #c8c8c8;
  line-height: 2.1;
}

.acc-body ol.info-list strong {
  color: var(--text);
}

/* =========================================
   정보 컴포넌트
   ========================================= */
/* 섹션 소제목 */
.info-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 14px 0 8px;
}

/* 노트 (중립 정보) */
.info-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid rgba(212,175,55,0.3);
  padding: 7px 12px;
  margin: 10px 0;
  line-height: 1.6;
}

/* 팁 (권장 정보) */
.info-tip {
  font-size: 0.83rem;
  color: #9ed09e;
  background: rgba(100,200,100,0.07);
  border: 1px solid rgba(100,200,100,0.15);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin-top: 14px;
  line-height: 1.6;
}

/* 테이블 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  margin-top: 8px;
}

.info-table thead th {
  text-align: left;
  padding: 9px 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

.info-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: #c0c0c0;
  vertical-align: top;
  line-height: 1.5;
}

.info-table tbody td:first-child {
  color: #e4e4e4;
  font-weight: 600;
  width: 36%;
}

.info-table tbody tr:last-child td {
  border-bottom: none;
}

.info-table tbody tr:hover td {
  background: rgba(212,175,55,0.04);
}

/* 2열 카드 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.col-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.col-head {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.col-card p {
  font-size: 0.85rem !important;
  color: #b0b0b0 !important;
  margin: 0 !important;
}


/* =========================================
   반응형 — 태블릿 (≤ 900px)
   ========================================= */
@media (max-width: 900px) {
  .guide-hero-title { font-size: 2rem; }
  .guide-hero-inner { padding: 0 20px; }

  .guide-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
    gap: 0;
  }

  .guide-sidebar { display: none; } /* 사이드바 숨기기 → 모바일 탭 사용 */

  .mobile-tabs { display: flex; } /* 모바일 탭 표시 */

  .panel-title { font-size: 1.6rem; }
}

/* =========================================
   반응형 — 모바일 (≤ 560px)
   ========================================= */
@media (max-width: 560px) {
  .guide-hero {
    padding: 24px 0 20px;
  }

  .guide-hero-title { font-size: 1.7rem; letter-spacing: 2px; }
  .guide-hero-icon { font-size: 2.2rem; }
  .guide-hero-sub { font-size: 0.82rem; }

  .panel-header { gap: 12px; }
  .panel-icon { font-size: 1.8rem; }
  .panel-title { font-size: 1.4rem; }

  .acc-btn {
    font-size: 0.9rem;
    padding: 15px 16px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .info-table td:first-child { width: 42%; }
  .info-table { font-size: 0.82rem; }
}
