/*
Theme Name: BAROVIX RealPick
Description: BAROVIX 데이터 기반 구매 가이드 전용 경량 테마
Version: 1.1.0
Text Domain: barovix-realpick
*/

:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e7eaf0;
  --soft: #f5f7fb;
  --brand: #ef3f35;
  --brand-dark: #d92d28;
  --blue: #3157d5;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 16px 42px rgba(23,32,51,.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.75;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 11px;
  font-size: 17px;
}

.logo small {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover { color: var(--brand); }

.hero {
  padding: 78px 0 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(49,87,213,.12), transparent 30%),
    radial-gradient(circle at 15% 10%, rgba(239,63,53,.12), transparent 28%),
    linear-gradient(180deg, #fff, #f8f9fc);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: -.06em;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-chip {
  padding: 9px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(23,32,51,.04);
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.section { padding: 70px 0; }
.section-soft { background: var(--soft); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.05em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pick-card {
  min-height: 190px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}

.pick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239,63,53,.35);
}

.pick-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 13px;
  background: #fff0ef;
  font-size: 20px;
}

.pick-card:nth-child(2) .pick-icon { background: #eef2ff; }
.pick-card:nth-child(3) .pick-icon { background: #ecfdf3; }
.pick-card:nth-child(4) .pick-icon { background: #fff8e6; }

.pick-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -.03em;
}

.pick-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-thumb {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #edf1f7, #f8f9fc);
  color: #98a2b3;
  font-weight: 800;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body { padding: 22px; }

.badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--brand);
  background: #fff0ef;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.post-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.post-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  padding: 44px;
  grid-column: 1/-1;
  text-align: center;
  background: #fff;
  border: 1px dashed #cfd5df;
  border-radius: var(--radius);
  color: var(--muted);
}

.article-wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.article-category {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.article-title {
  margin: 12px 0 18px;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.16;
  letter-spacing: -.055em;
}

.article-meta {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.featured-image {
  margin: 34px 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-content {
  font-size: 17px;
  line-height: 1.85;
}

.article-content h2 {
  margin: 52px 0 16px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -.04em;
}

.article-content h3 {
  margin: 34px 0 12px;
  font-size: 21px;
  letter-spacing: -.03em;
}

.article-content p { margin: 0 0 20px; }

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin: 0 0 24px;
}

.article-content table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.article-content th,
.article-content td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a[style*="background"] {
  display: inline-block;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(239,63,53,.22);
}

.article-notice {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid #ffd6d2;
  border-radius: 14px;
  background: #fff7f6;
  color: #7a271a;
  font-size: 14px;
}

.site-footer {
  padding: 48px 0;
  color: #98a2b3;
  background: #101828;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.footer-copy {
  max-width: 620px;
  margin-top: 9px;
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .hero { padding: 56px 0 42px; }
  .hero-copy { font-size: 16px; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap,
  .article-wrap {
    width: min(100% - 28px, 760px);
  }

  .header-inner { min-height: 62px; }
  .logo { font-size: 18px; }
  .pick-grid { grid-template-columns: 1fr; }
  .pick-card { min-height: auto; }
  .article-wrap { padding-top: 40px; }
  .article-title { font-size: 35px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 26px; }
}

/* BUYER-FIRST-V1 */
.featured-image {
  min-height: 220px;
  background: linear-gradient(135deg, #fff4f2, #edf3ff);
}

.featured-image img {
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: cover;
}

.decision-card {
  margin: 28px 0 38px;
  padding: 28px;
  border: 1px solid #ffd1cc;
  border-radius: 22px;
  background:
    linear-gradient(145deg, #fff8f7 0%, #fff 58%, #f4f7ff 100%);
  box-shadow: 0 18px 45px rgba(23,32,51,.09);
}

.decision-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.decision-card h2 {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: -.035em;
}

.decision-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.decision-price > div {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.decision-price span,
.decision-price small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.decision-price strong {
  display: block;
  margin: 2px 0;
  font-size: 22px;
}

.decision-fit {
  margin: 16px 0 20px;
  font-size: 14px;
}

.decision-fit p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 9px 0;
}

.decision-fit b {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.fit-yes {
  color: #027a48;
  background: #ecfdf3;
}

.fit-no {
  color: #b54708;
  background: #fffaeb;
}

.buy-button {
  display: block;
  width: 100%;
  padding: 16px 20px;
  color: #fff !important;
  background: var(--brand);
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(239,63,53,.25);
  text-align: center;
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease;
}

.buy-button:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.buy-caption {
  margin-top: 9px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.barovix-comparison,
.barovix-review-check {
  margin: 48px 0;
}

.comparison-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.comparison-scroll table {
  min-width: 620px;
  margin: 0;
}

.comparison-scroll thead {
  background: var(--soft);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.choice-box {
  padding: 18px;
  border-radius: 14px;
}

.choice-box p {
  margin: 7px 0 0;
  font-size: 14px;
}

.choice-buy {
  border: 1px solid #abefc6;
  background: #ecfdf3;
}

.choice-skip {
  border: 1px solid #fedf89;
  background: #fffaeb;
}

.source-note {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 12px;
}

.bottom-cta {
  margin-top: 50px;
  padding: 26px;
  border-radius: 20px;
  background: #101828;
  color: #fff;
}

.bottom-cta strong {
  font-size: 21px;
}

.bottom-cta p {
  color: #cbd5e1;
}

@media (max-width: 600px) {
  .article-title {
    font-size: 34px;
  }

  .featured-image {
    min-height: 160px;
  }

  .featured-image img {
    min-height: 160px;
  }

  .decision-card {
    padding: 20px;
  }

  .decision-card h2 {
    font-size: 20px;
  }

  .decision-price,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .buy-button {
    font-size: 16px;
  }
}

.featured-image-caption {
    margin: 10px 4px 24px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: center;
}
