/* ============================================================
   GUIDE / CONTENT PAGES — 공용 스타일
   about, privacy, 관측 가이드, FAQ 등 정적 콘텐츠 페이지 공통
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #080c1a;
  --bg2:    #0d1228;
  --card:   rgba(255,255,255,.04);
  --border: rgba(255,255,255,.08);
  --txt:    #e8eaf6;
  --txt2:   #8892b0;
  --txt3:   #4a5568;
  --blue:   #4f9eff;
  --teal:   #22d3ee;
  --amber:  #f59e0b;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ── 상단 네비게이션 ── */
.site-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .brand {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  margin-right: auto;
}
.site-nav a:not(.brand) {
  color: var(--txt2);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:not(.brand):hover { color: var(--blue); border-bottom-color: var(--blue); }
.site-nav a.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ── 본문 컨테이너 ── */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.breadcrumb { font-size: 12px; color: var(--txt3); margin-bottom: 24px; }
.breadcrumb a { color: var(--txt2); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

.content h1 {
  font-size: 30px; font-weight: 900; line-height: 1.3;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 16px; color: #c8cfe0; margin-bottom: 16px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.meta-line { font-size: 12px; color: var(--txt3); margin-bottom: 28px; }

.content h2 {
  font-size: 21px; font-weight: 700; color: var(--txt);
  margin: 40px 0 14px; padding-left: 14px;
  border-left: 4px solid var(--teal);
}
.content h3 {
  font-size: 16px; font-weight: 700; color: var(--blue);
  margin: 26px 0 10px;
}
.content p { font-size: 15px; color: #c8cfe0; margin-bottom: 14px; }
.content ul, .content ol { margin: 10px 0 18px 22px; }
.content li { font-size: 15px; color: #c8cfe0; margin-bottom: 8px; }
.content a { color: var(--blue); }
.content a:hover { color: var(--teal); }
.content strong { color: var(--txt); font-weight: 700; }

/* ── 강조 박스 ── */
.callout {
  background: rgba(79,158,255,.07);
  border: 1px solid rgba(79,158,255,.22);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 22px 0;
  font-size: 14px;
}
.callout.tip    { background: rgba(34,211,238,.06); border-color: rgba(34,211,238,.22); }
.callout.warn   { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.25); }
.callout-title { font-weight: 700; margin-bottom: 6px; display: block; }

/* ── 표 ── */
.data-table {
  width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px;
}
.data-table th, .data-table td {
  border: 1px solid var(--border); padding: 10px 12px; text-align: left;
}
.data-table th { background: var(--bg2); color: var(--txt); font-weight: 700; }
.data-table td { color: #c8cfe0; }

/* ── 카드 그리드 ── */
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin: 24px 0;
}
.guide-card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px; text-decoration: none; color: var(--txt);
  transition: transform .15s, border-color .15s, background .15s;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--blue); background: rgba(79,158,255,.05); }
.guide-card .emoji { font-size: 32px; display: block; margin-bottom: 10px; }
.guide-card h3 { font-size: 16px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.guide-card p { font-size: 13px; color: var(--txt2); margin: 0; }

/* ── CTA 버튼 ── */
.cta {
  display: inline-block; margin: 8px 0; padding: 11px 26px;
  background: var(--teal); color: var(--bg); border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 14px;
  transition: background .2s;
}
.cta:hover { background: var(--blue); color: #fff; }

/* ── 광고 슬롯 ── */
.ad-slot { margin: 32px 0; min-height: 100px; text-align: center; }
.ad-slot ins.adsbygoogle:empty {
  display: block; min-height: 90px;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.06); border-radius: 8px;
}

/* ── 푸터 ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px; text-align: center;
  font-size: 12px; color: var(--txt2);
}
.site-footer .links { margin-bottom: 12px; }
.site-footer .links a { color: var(--txt2); text-decoration: none; margin: 0 10px; }
.site-footer .links a:hover { color: var(--blue); }
.site-footer .copy { color: var(--txt3); }

/* ── 관측지 카드 ── */
.spot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin: 32px 0;
}
.spot-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.spot-rank {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--bg);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}
.spot-title-block { flex: 1; min-width: 180px; }
.spot-title { font-size: 20px; font-weight: 800; color: var(--txt); margin-bottom: 4px; }
.spot-subtitle { font-size: 13px; color: var(--txt2); }
.spot-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.bortle-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.bortle-2 { background: rgba(79,158,255,.18); color: var(--blue); }
.bortle-3 { background: rgba(34,211,238,.14); color: var(--teal); }
.bortle-4 { background: rgba(74,222,128,.12); color: #4ade80; }
.bortle-5 { background: rgba(245,158,11,.12); color: var(--amber); }
.bortle-6 { background: rgba(249,115,22,.12); color: #f97316; }
.info-badge { background: rgba(255,255,255,.07); color: var(--txt2); display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; }

/* 카드 내부 레이아웃 */
.spot-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 680px) { .spot-body { grid-template-columns: 1fr; } }

/* SVG 하늘창 다이어그램 */
.sky-diagram {
  text-align: center;
}
.sky-diagram svg { width: 100%; max-width: 240px; }
.sky-diagram figcaption { font-size: 11px; color: var(--txt3); margin-top: 6px; line-height: 1.5; }

/* 접근성 그리드 */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.access-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.access-icon { font-size: 18px; margin-bottom: 4px; }
.access-label { font-size: 10px; color: var(--txt3); text-transform: uppercase; letter-spacing: .06em; }
.access-value { font-size: 13px; color: var(--txt); font-weight: 600; margin-top: 3px; }
.access-note { font-size: 11px; color: var(--txt2); margin-top: 2px; }

/* 계절 타임라인 */
.season-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.season-item {
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
}
.season-item.best { background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3); }
.season-item.good { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); }
.season-item.ok   { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); }
.season-item.poor { background: rgba(100,100,120,.08); border: 1px solid rgba(255,255,255,.08); }
.season-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.season-name { font-weight: 700; color: var(--txt); display: block; margin-bottom: 2px; }
.season-note { color: var(--txt2); line-height: 1.4; display: block; }

/* 관측 가능 위성 배지 */
.sat-vis-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.sat-vis-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.sat-iss     { background: rgba(79,158,255,.15); color: var(--blue); }
.sat-tiangong { background: rgba(239,68,68,.12); color: #f87171; }
.sat-starlink { background: rgba(245,158,11,.12); color: var(--amber); }
.sat-oneweb   { background: rgba(168,85,247,.12); color: #c084fc; }

/* 관측 기록 페이지 */
.log-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.log-filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--txt2);
  font-size: 12px;
  cursor: pointer;
}
.log-filter-btn.active {
  background: rgba(34,211,238,.12);
  border-color: rgba(34,211,238,.4);
  color: var(--teal);
}
.log-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.log-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.log-stat-num { font-size: 28px; font-weight: 900; color: var(--teal); line-height: 1; }
.log-stat-label { font-size: 11px; color: var(--txt2); margin-top: 6px; }

/* 가시성 바 */
.vis-bar-wrap { height: 6px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.vis-bar { height: 100%; border-radius: 3px; background: var(--teal); }

/* 안내 SVG 다이어그램 (가이드 페이지용) */
.guide-diagram { margin: 24px 0; text-align: center; }
.guide-diagram svg { max-width: 100%; }
.guide-diagram figcaption { font-size: 12px; color: var(--txt3); margin-top: 8px; }

@media (max-width: 600px) {
  .content { padding: 28px 18px 60px; }
  .content h1 { font-size: 24px; }
  .site-nav { gap: 12px; padding: 10px 16px; }
  .spot-card { padding: 18px; }
  .season-bar { grid-template-columns: repeat(2, 1fr); }
}
