/*
Theme Name: Goyang Hanui
Theme URI: https://goyanghanui.toothvia.com
Description: 고양시 한의원 정보 검색 플랫폼
Author: ROBOTION
Version: 1.0.0
Template: twentytwentyfive
Text Domain: goyanghanui
*/

:root {
  --brand-primary: #1B4332;
  --brand-secondary: #2D6A4F;
  --brand-accent: #40916C;
  --brand-light: #B7E4C7;
  --brand-lightest: #F0F7F4;
  --neutral-900: #1A1A2E;
  --neutral-700: #3D3D5C;
  --neutral-500: #6B7280;
  --neutral-300: #D1D5DB;
  --neutral-100: #F3F4F6;
  --neutral-white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;
  --content-width: 780px;
  --wide-width: 1200px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-white);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

a { color: var(--brand-secondary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-primary); }

img { max-width: 100%; height: auto; display: block; }

.wp-site-blocks { padding: 0 !important; }
.wp-block-group { padding: 0 !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-100);
  padding: 0 var(--space-md);
}
.site-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo-area { display: flex; align-items: center; gap: 12px; }
.site-logo-area img { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.site-logo-area .brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.site-nav a:hover {
  background: var(--brand-lightest);
  color: var(--brand-primary);
}

.site-footer {
  background: var(--neutral-900);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) var(--space-md);
  font-size: 0.85rem;
  line-height: 1.7;
}
.site-footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--brand-light); }
.footer-brand { font-weight: 700; color: var(--neutral-white); font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-links { display: flex; gap: var(--space-md); margin: var(--space-sm) 0; flex-wrap: wrap; }
.footer-legal {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.entry-content { max-width: var(--content-width); margin: 0 auto; padding: var(--space-xl) var(--space-md); }
.entry-content h2 {
  font-size: 1.55rem;
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--brand-light);
  color: var(--brand-primary);
}
.entry-content h3 {
  font-size: 1.2rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--brand-secondary);
}
.entry-content p { margin-bottom: var(--space-sm); }
.entry-content ul, .entry-content ol { margin: var(--space-sm) 0; padding-left: var(--space-md); }
.entry-content li { margin-bottom: 6px; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.entry-content table thead th {
  background: var(--brand-primary);
  color: var(--neutral-white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
}
.entry-content table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--neutral-100);
}
.entry-content table tbody tr:hover { background: var(--brand-lightest); }
.entry-content table tbody tr:last-child td { border-bottom: none; }

.entry-content blockquote {
  border-left: 4px solid var(--brand-accent);
  background: var(--brand-lightest);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  color: var(--neutral-700);
}

.entry-content .info-card {
  background: var(--brand-lightest);
  border: 1px solid var(--brand-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}
.entry-content .info-card h4 {
  color: var(--brand-primary);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.content-img {
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.hero-thumb {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.toc-box {
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.toc-box h4 { font-size: 0.95rem; margin-bottom: var(--space-sm); color: var(--brand-primary); }
.toc-box ol { padding-left: var(--space-md); }
.toc-box li { margin-bottom: 6px; font-size: 0.9rem; }
.toc-box a { color: var(--neutral-700); }
.toc-box a:hover { color: var(--brand-primary); }

.related-posts {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--neutral-100);
}
.related-posts h3 { font-size: 1.15rem; margin-bottom: var(--space-md); color: var(--brand-primary); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-sm);
}
.related-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  background: var(--neutral-white);
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.related-card .card-body { padding: var(--space-sm); }
.related-card .card-title { font-size: 0.92rem; font-weight: 600; color: var(--neutral-900); line-height: 1.4; }

.legal-notice { font-size: 0.85em !important; }
.ai-notice { font-size: 0.85em !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neutral-700);
  margin: 5px auto;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--neutral-white); flex-direction: column; padding: var(--space-sm); box-shadow: var(--shadow-md); border-bottom: 1px solid var(--neutral-100); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px var(--space-sm); }
  .mobile-menu-btn { display: block; }
  .entry-content { padding: var(--space-lg) var(--space-sm); }
  .entry-content h2 { font-size: 1.3rem; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
  .related-card .card-body { padding: 10px; }
  .related-card .card-title { font-size: 0.85rem; }
  .entry-content table { font-size: 0.82rem; display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: var(--space-xs); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
