/*
Theme Name: SinkCost Guide Theme
Template: twentytwentyfive
Description: Premium child theme for sinkcostguide.wordpressdad.com
Version: 1.0
*/

:root {
  --sc-primary: #1a3a5c;
  --sc-primary-light: #2c5282;
  --sc-accent: #2b6cb0;
  --sc-accent-hover: #2c5282;
  --sc-bg: #ffffff;
  --sc-bg-alt: #f7fafc;
  --sc-bg-card: #ffffff;
  --sc-text: #1a202c;
  --sc-text-sub: #4a5568;
  --sc-text-muted: #718096;
  --sc-border: #e2e8f0;
  --sc-border-light: #edf2f7;
  --sc-radius: 12px;
  --sc-radius-sm: 8px;
  --sc-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sc-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --sc-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --sc-transition: 200ms ease;
  --sc-content-width: 760px;
  --sc-wide-width: 1120px;
  --sc-font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  --sc-font-heading: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

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

/* Hide WP admin bar on front */
body.admin-bar { margin-top: 0 !important; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sc-font-heading) !important;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2.5em 0 0.8em; padding-bottom: 0.5em; border-bottom: 2px solid var(--sc-border-light); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin: 2em 0 0.6em; }

p { margin: 0 0 1.25em; font-size: 1rem; line-height: 1.8; color: var(--sc-text); }

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

/* ===== SINGLE POST ===== */
.entry-content,
.wp-block-post-content {
  max-width: var(--sc-content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content img,
.wp-block-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sc-radius);
  margin: 1.5em 0;
}

/* ===== TABLES ===== */
.entry-content table,
.wp-block-post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--sc-radius);
  overflow: hidden;
  margin: 1.5em 0;
  font-size: 0.95rem;
  border: 1px solid var(--sc-border);
}

.entry-content table thead th {
  background: var(--sc-primary);
  color: #fff;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.entry-content table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sc-border-light);
  vertical-align: top;
}

.entry-content table tbody tr:nth-child(even) { background: var(--sc-bg-alt); }
.entry-content table tbody tr:hover { background: #edf2f7; }
.entry-content table tbody tr:last-child td { border-bottom: none; }

/* Mobile table scroll */
@media (max-width: 640px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em -1rem; padding: 0 1rem; }
  .entry-content table { min-width: 540px; }
}

/* ===== LISTS ===== */
.entry-content ul, .entry-content ol {
  padding-left: 1.5em;
  margin: 1em 0 1.5em;
}
.entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}
.entry-content ul li::marker { color: var(--sc-accent); }

/* ===== BLOCKQUOTE / CALLOUT ===== */
.entry-content blockquote,
.sc-callout {
  background: linear-gradient(135deg, #ebf4ff 0%, #f0f7ff 100%);
  border-left: 4px solid var(--sc-accent);
  padding: 1.25em 1.5em;
  margin: 2em 0;
  border-radius: 0 var(--sc-radius-sm) var(--sc-radius-sm) 0;
  font-size: 0.98rem;
  color: var(--sc-text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* ===== SUMMARY BOX ===== */
.sc-summary-box {
  background: linear-gradient(135deg, #1a3a5c 0%, #2b6cb0 100%);
  color: #fff;
  padding: 1.75em 2em;
  border-radius: var(--sc-radius);
  margin: 0 0 2.5em;
  line-height: 1.7;
}
.sc-summary-box strong { color: #bee3f8; }
.sc-summary-box ul { padding-left: 1.2em; }
.sc-summary-box li { margin-bottom: 0.35em; }

/* ===== BAR CHART (inline CSS) ===== */
.sc-bar-chart { margin: 1.5em 0; }
.sc-bar-item { margin-bottom: 12px; }
.sc-bar-label { font-size: 0.9rem; font-weight: 600; color: var(--sc-text); margin-bottom: 4px; }
.sc-bar-track { background: var(--sc-border-light); border-radius: 6px; height: 28px; position: relative; overflow: hidden; }
.sc-bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; padding: 0 12px; font-size: 0.8rem; color: #fff; font-weight: 600; transition: width 0.6s ease; }

/* ===== STEP DIAGRAM ===== */
.sc-steps { display: flex; flex-wrap: wrap; gap: 16px; margin: 1.5em 0; }
.sc-step { flex: 1; min-width: 140px; background: var(--sc-bg-alt); border-radius: var(--sc-radius-sm); padding: 1.25em 1em; text-align: center; position: relative; }
.sc-step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--sc-accent); color: #fff; border-radius: 50%; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5em; }
.sc-step-title { font-weight: 600; font-size: 0.95rem; color: var(--sc-primary); }
.sc-step-desc { font-size: 0.85rem; color: var(--sc-text-sub); margin-top: 0.35em; }

/* ===== LEGAL & AI NOTICES ===== */
.legal-notice { font-size: 0.85em !important; }
.ai-notice { font-size: 0.85em !important; }

/* ===== BUTTONS ===== */
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--sc-accent);
  color: #fff;
  border: none;
  border-radius: var(--sc-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--sc-transition);
  text-decoration: none;
}
.sc-btn:hover { background: var(--sc-accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--sc-shadow-md); }

/* ===== CARDS ===== */
.sc-card {
  background: var(--sc-bg-card);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  overflow: hidden;
  transition: all var(--sc-transition);
}
.sc-card:hover { box-shadow: var(--sc-shadow-md); transform: translateY(-2px); }
.sc-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.sc-card-body { padding: 1.25em 1.5em; }
.sc-card-title { font-size: 1.05rem; font-weight: 700; color: var(--sc-primary); margin: 0 0 0.5em; line-height: 1.4; }
.sc-card-excerpt { font-size: 0.9rem; color: var(--sc-text-sub); line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .entry-content, .wp-block-post-content { padding: 0 1rem; }
  h2 { font-size: 1.3rem; }
  .sc-steps { flex-direction: column; }
  .sc-summary-box { padding: 1.25em 1.25em; }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .sc-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .sc-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HIDE WP DEFAULT STUFF ===== */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.has-global-padding > .wp-block-template-part:first-child,
.has-global-padding > .wp-block-template-part:last-child {
  display: none !important;
}
