/*
Theme Name: WallpaperCost Child
Template: twentytwentyfive
Description: Premium wallpaper cost guide theme
Version: 1.0.0
*/

:root {
  --wc-primary: #1a3a5c;
  --wc-primary-light: #2a5a8c;
  --wc-accent: #c8956c;
  --wc-accent-light: #e8c9a8;
  --wc-bg: #faf9f7;
  --wc-bg-card: #ffffff;
  --wc-bg-subtle: #f3f1ed;
  --wc-text: #2d2d2d;
  --wc-text-secondary: #6b6b6b;
  --wc-text-muted: #999999;
  --wc-border: #e5e2dc;
  --wc-border-light: #f0ede8;
  --wc-shadow-sm: 0 1px 3px rgba(26,58,92,0.06);
  --wc-shadow-md: 0 4px 16px rgba(26,58,92,0.08);
  --wc-shadow-lg: 0 8px 32px rgba(26,58,92,0.1);
  --wc-radius-sm: 6px;
  --wc-radius-md: 12px;
  --wc-radius-lg: 20px;
  --wc-font-heading: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wc-font-body: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wc-content-width: 780px;
  --wc-wide-width: 1200px;
  --wc-transition: 200ms cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: var(--wc-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--wc-text);
  background: var(--wc-bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wc-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--wc-primary);
}

.wc-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wc-border-light);
  padding: 0 24px;
}
.wc-header-inner {
  max-width: var(--wc-wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wc-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wc-logo-area img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--wc-radius-sm);
}
.wc-logo-area .wc-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wc-primary);
  letter-spacing: -0.02em;
}
.wc-nav { display: flex; gap: 4px; }
.wc-nav a {
  padding: 8px 16px;
  border-radius: var(--wc-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wc-text-secondary);
  transition: all var(--wc-transition);
}
.wc-nav a:hover { color: var(--wc-primary); background: var(--wc-bg-subtle); }
.wc-mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.wc-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wc-text);
  margin: 5px auto;
  transition: var(--wc-transition);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .wc-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--wc-border-light); padding: 8px 16px; box-shadow: var(--wc-shadow-md); }
  .wc-nav.open { display: flex; }
  .wc-nav a { padding: 12px 16px; font-size: 1rem; }
  .wc-mobile-toggle { display: block; }
}

.wc-content-area {
  max-width: var(--wc-content-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.wc-single-article h1.entry-title {
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.wc-single-article .entry-meta {
  font-size: 0.875rem;
  color: var(--wc-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--wc-border-light);
}
.wc-single-article .entry-content { font-size: 17px; line-height: 1.8; }
.wc-single-article .entry-content p { margin-bottom: 1.5em; }
.wc-single-article .entry-content h2 {
  font-size: 1.5rem;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wc-accent-light);
  letter-spacing: -0.02em;
}
.wc-single-article .entry-content h3 {
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--wc-primary-light);
}
.wc-single-article .entry-content img {
  border-radius: var(--wc-radius-md);
  margin: 32px 0;
  box-shadow: var(--wc-shadow-sm);
}
.wc-single-article .entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  border-radius: var(--wc-radius-md);
  overflow: hidden;
  box-shadow: var(--wc-shadow-sm);
  font-size: 0.92rem;
}
.wc-single-article .entry-content table thead th {
  background: var(--wc-primary);
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.wc-single-article .entry-content table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--wc-border-light);
}
.wc-single-article .entry-content table tbody tr:last-child td { border-bottom: none; }
.wc-single-article .entry-content table tbody tr:nth-child(even) { background: var(--wc-bg-subtle); }
.wc-single-article .entry-content ul, .wc-single-article .entry-content ol {
  margin: 20px 0;
  padding-left: 1.5em;
}
.wc-single-article .entry-content li { margin-bottom: 8px; }
.wc-single-article .entry-content blockquote {
  border-left: 4px solid var(--wc-accent);
  background: var(--wc-bg-subtle);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--wc-radius-md) var(--wc-radius-md) 0;
  font-style: normal;
  color: var(--wc-primary);
}
.wc-single-article .entry-content blockquote p { margin-bottom: 0; }

.wc-callout {
  background: linear-gradient(135deg, #fef9f0 0%, #fff 100%);
  border: 1px solid var(--wc-accent-light);
  border-radius: var(--wc-radius-md);
  padding: 24px;
  margin: 28px 0;
}
.wc-callout-title {
  font-weight: 700;
  color: var(--wc-accent);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.wc-bar-chart { margin: 28px 0; }
.wc-bar-item { margin-bottom: 12px; }
.wc-bar-label { font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; color: var(--wc-text); }
.wc-bar-track { background: var(--wc-bg-subtle); border-radius: 6px; height: 28px; overflow: hidden; position: relative; }
.wc-bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; padding: 0 12px; font-size: 0.8rem; font-weight: 600; color: #fff; transition: width 1s ease; }
.wc-bar-fill.primary { background: linear-gradient(90deg, var(--wc-primary), var(--wc-primary-light)); }
.wc-bar-fill.accent { background: linear-gradient(90deg, var(--wc-accent), #d4a574); }

.wc-steps { margin: 28px 0; counter-reset: step; }
.wc-step { display: flex; gap: 16px; margin-bottom: 20px; }
.wc-step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wc-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.wc-step-content { flex: 1; }
.wc-step-content strong { display: block; margin-bottom: 4px; color: var(--wc-primary); }

.wc-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px 0; }

.wc-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--wc-radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--wc-shadow-md);
}

.wc-toc {
  background: var(--wc-bg-card);
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius-md);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.wc-toc-title { font-size: 0.95rem; font-weight: 700; color: var(--wc-primary); margin-bottom: 12px; }
.wc-toc ul { list-style: none; padding: 0; }
.wc-toc li { padding: 6px 0; border-bottom: 1px solid var(--wc-border-light); }
.wc-toc li:last-child { border-bottom: none; }
.wc-toc a { color: var(--wc-text-secondary); font-size: 0.9rem; }
.wc-toc a:hover { color: var(--wc-accent); }

.wc-related-posts { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--wc-border-light); }
.wc-related-title { font-size: 1.2rem; margin-bottom: 24px; }
.wc-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.wc-related-card {
  background: var(--wc-bg-card);
  border-radius: var(--wc-radius-md);
  overflow: hidden;
  box-shadow: var(--wc-shadow-sm);
  transition: all var(--wc-transition);
}
.wc-related-card:hover { box-shadow: var(--wc-shadow-md); transform: translateY(-2px); }
.wc-related-card img { aspect-ratio: 16/10; object-fit: cover; }
.wc-related-card .card-body { padding: 16px; }
.wc-related-card .card-body h4 { font-size: 0.95rem; line-height: 1.4; }

.wc-site-footer {
  background: var(--wc-primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
  font-size: 0.85rem;
  line-height: 1.7;
}
.wc-footer-inner {
  max-width: var(--wc-wide-width);
  margin: 0 auto;
}
.wc-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.wc-footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--wc-radius-sm);
}
.wc-footer-links { display: flex; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.wc-footer-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.wc-footer-links a:hover { color: #fff; }
.wc-footer-notice { margin-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.wc-footer-legal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.ai-notice { font-size: 0.85em; color: #888; margin-top: 2em; }
.legal-notice { font-size: 0.85em; color: #777; background: #f8f9fa; border-left: 3px solid #cbd5e1; padding: 10px 14px; margin-top: 2em; border-radius: 0 6px 6px 0; }

@media (max-width: 600px) {
  .wc-logo-area img { width: 32px; height: 32px; }
  .wc-logo-area .wc-brand-name { font-size: 0.95rem; }
  .wc-footer-brand img { width: 36px; height: 36px; }
  .wc-single-article h1.entry-title { font-size: 1.5rem; }
  .wc-single-article .entry-content h2 { font-size: 1.25rem; margin-top: 40px; }
  .wc-single-article .entry-content { font-size: 16px; }
  .wc-content-area { padding: 32px 16px 64px; }
  .wc-site-footer { padding: 32px 16px 24px; }
}
