/* ===== 주소위키 SEO 안내 페이지 전용 스타일 =====
   css/app.css의 색상/변수를 그대로 재사용해 메인 사이트와 톤을 통일합니다. */

.seo-preview-banner {
  background: #fff3cd;
  color: #7a5b00;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}

.seo-page-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line, #e6ebf2);
  padding: 14px 0;
}

.seo-page-header-inner { display: flex; align-items: center; }

.seo-home-link {
  font-weight: 800;
  font-size: 18px;
  color: var(--text, #17233a);
}

.seo-main { padding: 32px 0 64px; }

.seo-container { max-width: 780px; }

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted, #697487);
  margin-bottom: 18px;
}

.seo-breadcrumb a { color: var(--muted, #697487); }
.seo-breadcrumb a:hover { color: var(--primary, #ff6336); }
.seo-breadcrumb [aria-current="page"] { color: var(--text, #17233a); font-weight: 700; }

.seo-article {
  background: #fff;
  border: 1px solid var(--line, #e6ebf2);
  border-radius: var(--radius, 20px);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(27,42,74,.07));
}

.seo-article h1 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.seo-body-content h2 {
  font-size: 21px;
  margin: 32px 0 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line, #e6ebf2);
  padding-top: 20px;
}

.seo-body-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.seo-body-content h3 {
  font-size: 17px;
  margin: 20px 0 8px;
}

.seo-body-content p {
  line-height: 1.75;
  color: #333c4d;
  margin: 0 0 14px;
}

.seo-body-content ul,
.seo-body-content ol {
  line-height: 1.75;
  color: #333c4d;
  padding-left: 22px;
  margin: 0 0 14px;
}

.seo-body-content a { color: var(--primary, #ff6336); text-decoration: underline; }

.seo-body-content img { border-radius: 12px; margin: 12px 0; }

.seo-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 15px;
}

.seo-body-content table th,
.seo-body-content table td {
  border: 1px solid var(--line, #e6ebf2);
  padding: 10px 12px;
  text-align: left;
  line-height: 1.6;
}

.seo-body-content table th {
  background: #f4f6fa;
  font-weight: 700;
}

.seo-body-content .ai-summary-box {
  background: #fff7f2;
  border: 1px solid #ffd9c2;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 20px;
  line-height: 1.8;
}

.seo-body-content .ai-summary-box p { margin: 0 0 6px; }
.seo-body-content .ai-summary-box p:last-child { margin-bottom: 0; }

.seo-featured-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 0 22px;
}

.seo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary, #ff6336);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  margin: 6px 0;
}

.seo-faq {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #e6ebf2);
}

.seo-faq h2 { font-size: 20px; margin: 0 0 14px; }

.seo-faq-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line, #e6ebf2);
}

.seo-faq-item:last-child { border-bottom: none; }

.seo-faq-q { font-weight: 700; margin: 0 0 6px; color: var(--text, #17233a); }
.seo-faq-a { margin: 0; color: var(--muted, #697487); line-height: 1.65; }

.seo-related {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line, #e6ebf2);
}

.seo-related h2 { font-size: 18px; margin: 0 0 12px; }

.seo-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-related-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-soft, #f8faff);
  border: 1px solid var(--line, #e6ebf2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #17233a);
}

.seo-related-list a:hover { border-color: var(--primary, #ff6336); color: var(--primary, #ff6336); }

.seo-page-footer {
  padding: 20px 0 40px;
  text-align: center;
}

.seo-page-footer a {
  color: var(--muted, #697487);
  font-size: 13.5px;
  font-weight: 600;
}

.seo-page-footer a:hover { color: var(--primary, #ff6336); }

@media (max-width: 640px) {
  .seo-article { padding: 26px 20px; }
}

/* ===== 홈페이지 "인기 검색" 위젯 ===== */
.popular-search-section {
  padding: 0 0 14px;
}

.popular-search-section:empty { display: none; }
.popular-search-section[hidden] { display: none; }
.popular-search-section:has(> .popular-search-inner[hidden]) { display: none; padding: 0; }

.popular-search-inner {
  background: #fff;
  border: 1px solid var(--line, #e6ebf2);
  border-radius: var(--radius, 20px);
  padding: 20px 26px;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(27,42,74,.07));
}

.popular-search-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted, #697487);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.popular-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-search-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-soft, #f8faff);
  border: 1px solid var(--line, #e6ebf2);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text, #17233a);
}

.popular-search-list a:hover { border-color: var(--primary, #ff6336); color: var(--primary, #ff6336); }

/* =====================================================================
   리치 SEO 안내 페이지 (hobbang.net 풍) - hero / TOC / 사이드바 / FAQ / 신뢰정보
   ===================================================================== */

.seo-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.seo-home-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 6px;
  border-radius: 9px;
  background: var(--primary, #ff6336);
  color: #fff;
  font-size: 15px;
}

.seo-home-link { display: inline-flex; align-items: center; }

.seo-header-nav { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; }
.seo-header-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted, #697487);
}
.seo-header-nav a:hover { color: var(--primary, #ff6336); background: var(--primary-soft, #fff0ea); }

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.seo-primary { min-width: 0; }

/* --- Hero --- */
.seo-hero { margin-bottom: 22px; }

.seo-eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary, #ff6336);
}

.seo-hero h1 { margin: 0 0 14px; }

.seo-hero-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #4a5568;
  margin: 0 0 20px;
}

.seo-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.seo-cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line, #e6ebf2);
  background: #fff;
  color: var(--text, #17233a) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.seo-cta-ghost:hover { border-color: var(--primary, #ff6336); color: var(--primary, #ff6336) !important; }

.seo-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.seo-badges li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-soft, #f8faff);
  border: 1px solid var(--line, #e6ebf2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted, #697487);
}

/* --- 핵심 요약 --- */
.seo-summary {
  background: var(--primary-soft, #fff0ea);
  border: 1px solid #ffd9c2;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 24px;
}
.seo-summary-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark, #ed3f4d);
}
.seo-summary p { margin: 0; line-height: 1.75; color: #5a463d; }

/* --- 목차 --- */
.seo-toc {
  background: var(--surface-soft, #f8faff);
  border: 1px solid var(--line, #e6ebf2);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.seo-toc-title {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted, #697487);
}
.seo-toc ol { margin: 0; padding-left: 20px; }
.seo-toc li { line-height: 1.9; font-size: 14.5px; }
.seo-toc a { color: var(--text, #17233a); }
.seo-toc a:hover { color: var(--primary, #ff6336); text-decoration: underline; }

/* --- 본문 --- */
.seo-body-content h2 { scroll-margin-top: 84px; }
.seo-body-content h2 + p { margin-top: 0; }

/* --- FAQ (details/summary) --- */
.seo-faq {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line, #e6ebf2);
  border-radius: var(--radius, 20px);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(27,42,74,.07));
}
.seo-faq h2 { font-size: 21px; margin: 0 0 14px; }
.seo-faq-item { border-bottom: 1px solid var(--line, #e6ebf2); padding: 4px 0; }
.seo-faq-item:last-child { border-bottom: none; }
.seo-faq-q {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text, #17233a);
  padding: 13px 30px 13px 0;
  position: relative;
  line-height: 1.55;
}
.seo-faq-q::-webkit-details-marker { display: none; }
.seo-faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 19px;
  font-weight: 800;
  color: var(--primary, #ff6336);
}
.seo-faq-item[open] .seo-faq-q::after { content: "–"; }
.seo-faq-a { margin: 0 0 14px; color: var(--muted, #697487); line-height: 1.7; }

/* --- 관련 링크 --- */
.seo-related {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line, #e6ebf2);
  border-radius: var(--radius, 20px);
  padding: 26px 32px;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(27,42,74,.07));
}
.seo-related h2 { font-size: 18px; margin: 0 0 14px; }

/* --- 사이드바 --- */
.seo-sidebar { display: grid; gap: 14px; position: sticky; top: 84px; }

.seo-card {
  background: #fff;
  border: 1px solid var(--line, #e6ebf2);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(27,42,74,.07));
}
.seo-card-muted { background: var(--surface-soft, #f8faff); }
.seo-card-label {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #697487);
}
.seo-card-value { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--text, #17233a); }
.seo-card-desc { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted, #697487); }

.seo-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.seo-stats li { display: flex; align-items: baseline; gap: 8px; }
.seo-stats strong { font-size: 22px; font-weight: 800; color: var(--primary, #ff6336); }
.seo-stats span { font-size: 13px; color: var(--muted, #697487); }

/* --- 푸터 --- */
.seo-page-footer { padding: 28px 0 44px; text-align: center; }
.seo-footer-note { max-width: 720px; margin: 0 auto 12px; font-size: 12.5px; line-height: 1.7; color: var(--muted, #697487); }
.seo-footer-links { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; }
.seo-footer-links a { color: var(--muted, #697487); }
.seo-footer-links a:hover { color: var(--primary, #ff6336); }
.seo-footer-copy { margin: 0; font-size: 12px; color: #9aa4b2; }

@media (max-width: 900px) {
  .seo-layout { grid-template-columns: 1fr; }
  .seo-sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .seo-article { padding: 26px 20px; }
  .seo-faq, .seo-related { padding: 22px 20px; }
  .seo-sidebar { grid-template-columns: 1fr; }
  .seo-header-nav { display: none; }
}
