/*
Theme Name: DentalGuide Child
Template: twentytwentyfive
Description: 김해 치과 정보 플랫폼 전용 테마
Version: 1.0.0
*/

:root {
  --dg-primary: #0f4c75;
  --dg-primary-dark: #0a3456;
  --dg-primary-light: #e8f1f8;
  --dg-accent: #1b9aaa;
  --dg-accent-light: #e6f6f8;
  --dg-text: #1e293b;
  --dg-text-secondary: #64748b;
  --dg-text-muted: #94a3b8;
  --dg-bg: #ffffff;
  --dg-bg-alt: #f8fafc;
  --dg-bg-card: #ffffff;
  --dg-border: #e2e8f0;
  --dg-border-light: #f1f5f9;
  --dg-shadow-sm: 0 1px 3px rgba(15,76,117,0.06);
  --dg-shadow-md: 0 4px 16px rgba(15,76,117,0.08);
  --dg-shadow-lg: 0 8px 32px rgba(15,76,117,0.12);
  --dg-radius-sm: 8px;
  --dg-radius-md: 12px;
  --dg-radius-lg: 16px;
  --dg-radius-xl: 24px;
  --dg-font-heading: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --dg-font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --dg-content-width: 780px;
  --dg-wide-width: 1200px;
  --dg-transition: 200ms ease;
}

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

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--dg-font-body) !important;
  color: var(--dg-text) !important;
  background: var(--dg-bg) !important;
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dg-font-heading) !important;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dg-text);
  letter-spacing: -0.02em;
}

.entry-content h2 {
  font-size: 1.55em;
  margin: 2.5em 0 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--dg-primary-light);
  color: var(--dg-primary);
}

.entry-content h3 {
  font-size: 1.25em;
  margin: 2em 0 0.75em;
  padding-left: 12px;
  border-left: 3px solid var(--dg-accent);
  color: var(--dg-primary-dark);
}

.entry-content p {
  margin-bottom: 1.4em;
  line-height: 1.8;
  word-break: keep-all;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--dg-radius-md);
  margin: 1.5em 0;
  box-shadow: var(--dg-shadow-sm);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92em;
  border-radius: var(--dg-radius-md);
  overflow: hidden;
  box-shadow: var(--dg-shadow-sm);
}

.entry-content table thead th {
  background: var(--dg-primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  border: none;
}

.entry-content table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--dg-border);
  background: var(--dg-bg);
}

.entry-content table tbody tr:nth-child(even) td {
  background: var(--dg-bg-alt);
}

.entry-content table tbody tr:hover td {
  background: var(--dg-primary-light);
}

.entry-content ul, .entry-content ol {
  margin: 1.2em 0;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.entry-content blockquote {
  background: var(--dg-accent-light);
  border-left: 4px solid var(--dg-accent);
  margin: 1.8em 0;
  padding: 20px 24px;
  border-radius: 0 var(--dg-radius-md) var(--dg-radius-md) 0;
  font-style: normal;
  color: var(--dg-text);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

a { color: var(--dg-accent); text-decoration: none; transition: color var(--dg-transition); }
a:hover { color: var(--dg-primary); }

.wp-block-post-content, .entry-content {
  max-width: var(--dg-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .entry-content h2 { font-size: 1.35em; }
  .entry-content h3 { font-size: 1.15em; }
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wp-block-post-content, .entry-content { padding: 0 16px; }
}

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

.dg-cta-btn {
  display: inline-block;
  background: var(--dg-accent);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--dg-radius-sm);
  font-weight: 600;
  font-size: 0.95em;
  transition: all var(--dg-transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.dg-cta-btn:hover {
  background: var(--dg-primary);
  transform: translateY(-1px);
  box-shadow: var(--dg-shadow-md);
}

.legal-notice, .ai-notice, .affiliate-notice {
  font-size: 0.85em !important;
  color: #777 !important;
}

.wp-site-blocks > header,
.wp-site-blocks > footer {
  display: none !important;
}

.wp-block-post-title, .entry-title {
  font-size: 2em;
  font-weight: 800;
  color: var(--dg-primary-dark);
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
}
