/* =========================================================================
   오솔킹 백패킹 실전 가이드 전용 스타일시트 (guide-detail.css)
   ========================================================================= */

/* 0. 글로벌 서브 헤더 (상단 공통 바) */
.global-sub-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.sub-header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.sub-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-menu-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-menu-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-menu-toggle:active {
  transform: scale(0.96);
}

.sub-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0f172a;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.sub-header-logo:hover {
  opacity: 0.85;
}

.header-logo-img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #2563eb !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  display: block;
}

.header-logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sub-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.header-nav-btn.active {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  font-weight: 800;
}

/* 드로어 보완 스타일 */
.drawer-brand-logo,
.drawer-brand-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #2768c8 !important;
  box-shadow: 0 2px 8px rgba(39, 104, 200, 0.2);
  flex-shrink: 0 !important;
}

.btn-drawer-close {
  background: #ffffff;
  border: 1px solid #d9e3f2;
  color: #51617c;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-size: 1.1rem;
}

.btn-drawer-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 16px;
  background: #f8fbff;
  border-bottom: 1px solid #e3eefc;
  gap: 12px;
}

.drawer-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #172b4d;
  letter-spacing: -0.02em;
}

.nav-drawer-content {
  padding: 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-section-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #8292a8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 4px;
  display: block;
}

.nav-drawer-overlay.is-open ~ .nav-drawer,
.nav-drawer-overlay.is-open + .nav-drawer {
  transform: translateX(0) !important;
}

@media (max-width: 640px) {
  .sub-header-container {
    padding: 8px 12px;
    gap: 8px;
  }
  .header-logo-img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
  .header-logo-text {
    font-size: 0.95rem;
  }
  .header-nav-btn {
    padding: 5px 9px;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .sub-header-actions .header-nav-btn:not(.active) {
    display: none;
  }
}

.guide-container {
  max-width: 860px;
  margin: 24px auto 60px;
  padding: 0 18px;
  box-sizing: border-box;
}

/* 브레드크럼 */
.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.guide-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.guide-breadcrumb a:hover {
  color: #2563eb;
}

.guide-breadcrumb .current {
  color: #0f172a;
  font-weight: 700;
}

/* 아티클 래퍼 카드 */
.guide-article-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  padding: 42px 36px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .guide-article-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
}

/* 아티클 헤더 */
.guide-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.guide-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.guide-badge.category {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.guide-badge.read-time {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.guide-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

@media (max-width: 640px) {
  .guide-title {
    font-size: 1.45rem;
  }
}

.guide-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 18px 0;
  word-break: keep-all;
}

.guide-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.guide-author-meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #2563eb;
}

/* 본문 타이포그래피 */
.guide-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 40px 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.guide-body h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #1e293b;
  margin: 26px 0 12px 0;
  letter-spacing: -0.01em;
}

.guide-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin: 0 0 18px 0;
  word-break: keep-all;
}

.guide-body strong {
  color: #0f172a;
  font-weight: 700;
}

.guide-body ul,
.guide-body ol {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #334155;
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.guide-body li {
  margin-bottom: 8px;
}

/* 콜아웃 하이라이트 박스 */
.guide-callout {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}

.guide-callout.tip {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #2563eb;
}

.guide-callout.warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #f59e0b;
}

.guide-callout-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
}

/* 반응형 데이터 테이블 */
.guide-table-wrap {
  overflow-x: auto;
  margin: 24px 0 30px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.guide-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  padding: 12px 16px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.guide-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.6;
}

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

.guide-table tr:hover td {
  background: #f8fafc;
}

/* 하단 연관 가이드 & 박지 링크 카드 */
.guide-footer-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #f1f5f9;
}

.guide-footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.guide-related-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-related-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.related-card-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #2563eb;
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}

.related-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* 가이드 허브(guides.html) 전용 스타일 */
.hub-hero {
  text-align: center;
  padding: 32px 16px 40px;
}

.hub-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.hub-hero-desc {
  font-size: 1.05rem;
  color: #475569;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  word-break: keep-all;
}

.guides-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
  margin: 28px 0;
}

@media (max-width: 480px) {
  .guides-list-grid {
    grid-template-columns: 1fr;
  }
}

.guide-item-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.guide-item-card:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.guide-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guide-item-icon {
  font-size: 2rem;
  line-height: 1;
}

.guide-item-tag {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.guide-item-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.guide-item-summary {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px 0;
  word-break: keep-all;
}

.guide-item-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* =========================================================================
   하단 퀵 액션 링크 (배경색 없는 깔끔한 텍스트 링크)
   ========================================================================= */
.guide-cta-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.guide-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2563eb !important;
  background: transparent !important;
  border: none !important;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.guide-cta-link:visited {
  color: #2563eb !important;
}

.guide-cta-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline;
  background: transparent !important;
}

.guide-cta-link .cta-link-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.guide-cta-link .cta-link-text {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.guide-cta-link .cta-link-arrow {
  font-size: 1.1rem;
  line-height: 1;
  color: #3b82f6;
  transition: transform 0.15s ease;
}

.guide-cta-link:hover .cta-link-arrow {
  transform: translateX(3px);
  color: #1d4ed8;
}

/* 기존 btn-guide-link 혹시 남아있을 경우 배경색 강제 제거 */
.btn-guide-link {
  background: transparent !important;
  color: #2563eb !important;
  border: none !important;
  text-decoration: none !important;
}

.btn-guide-link:hover {
  text-decoration: underline !important;
  color: #1d4ed8 !important;
}

