/* /search/ Coupang Partners content site — shared stylesheet */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --text: #1f2430;
  --text-muted: #5a6273;
  --border: #e4e7ee;
  --accent: #d4a017;
  --accent-dark: #b8860b;
  --cta: #16a34a;
  --cta-dark: #15803d;
  --warn-bg: #fff8e1;
  --warn-border: #f5d97a;
  --warn-text: #7a5a00;
  --gold: #d4a017;
  --silver: #9aa3b2;
  --bronze: #b07840;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(20, 30, 60, 0.06);
  --max-w: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Footer */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4d46a 0%, #c88a12 100%);
  color: #fffdf5;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(200, 138, 18, 0.25);
}
.site-nav a { margin-left: 16px; font-size: 14px; color: var(--text-muted); }

.site-footer {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* Disclosure banner (쿠팡 파트너스 의무 고지문구) */
.disclosure {
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

/* Article heading block */
.article-header {
  margin: 30px 0 20px;
}
.article-header h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Intro paragraph */
.intro {
  margin: 20px 0 30px;
  font-size: 16px;
  color: var(--text);
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--bg-soft);
  font-weight: 700;
}
.compare-table tr:last-child td { border-bottom: none; }

/* Rank badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #4b5563;
  color: #fff;
  margin-right: 8px;
  box-shadow: 0 2px 6px rgba(20, 30, 60, 0.16);
}
.rank-1 {
  background: linear-gradient(135deg, #ffe08a 0%, #d4a017 55%, #9a6a00 100%);
}
.rank-2 {
  background: linear-gradient(135deg, #eef2f7 0%, #9aa3b2 58%, #687386 100%);
}
.rank-3 {
  background: linear-gradient(135deg, #e2b17a 0%, #b07840 58%, #7a4a22 100%);
}
.rank-1::before,
.rank-2::before,
.rank-3::before {
  content: "\265B";
  margin-right: 4px;
  font-size: 14px;
  line-height: 1;
}
.table-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(20, 30, 60, 0.14);
}
.table-rank::before {
  content: "\265B";
  margin-right: 4px;
  font-size: 13px;
}
.table-rank.rank-1,
.table-rank.rank-2,
.table-rank.rank-3 {
  background: #4b5563;
}
.table-rank.rank-1 {
  background: linear-gradient(135deg, #ffe08a 0%, #d4a017 55%, #9a6a00 100%);
}
.table-rank.rank-2 {
  background: linear-gradient(135deg, #eef2f7 0%, #9aa3b2 58%, #687386 100%);
}
.table-rank.rank-3 {
  background: linear-gradient(135deg, #e2b17a 0%, #b07840 58%, #7a4a22 100%);
}

/* Visual Summary Card Grid */
.visual-summary {
  margin: 40px 0;
}
.visual-summary h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
}
.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(20, 30, 60, 0.1);
}
.card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-soft);
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.65), transparent 28%),
    linear-gradient(135deg, #f4efe6 0%, #d7c1a1 45%, #8a5a34 100%);
}
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.badge-original { background: #8b5cf6; } /* Purple */
.badge-vertuo { background: #3b82f6; }   /* Blue */
.badge-dolce { background: #f59e0b; }    /* Amber */
.badge-illy { background: #ef4444; }     /* Red */

.card-info {
  padding: 12px;
  flex-grow: 1;
}
.card-info h3 {
  font-size: 14px;
  margin: 0 0 4px;
  line-height: 1.3;
}
.card-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Product Header with Badge */
.product-header {
  grid-area: header;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.product-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

/* Spec Bars */
.spec-item {
  margin-bottom: 8px;
}
.spec-item label {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
  font-weight: 700;
}
.spec-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

/* Product section — 2-column layout (image left, content right) */
.product {
  margin: 40px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas:
    "image header"
    "image one-liner"
    "image proscons"
    "image specs"
    "image recommend"
    "image cta"
    "image disclosure";
  column-gap: 24px;
  row-gap: 6px;
}
.product-header {
  grid-area: header;
}
.product > .cta-disclosure {
  grid-area: disclosure;
  font-size: 10px;
  color: var(--text-muted);
  margin: 4px 0 0;
  opacity: 0.8;
}
.product > h2 {
  grid-area: header;
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.3;
}
.product > img,
.product > a:has(img) {
  grid-area: image;
  align-self: start;
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.product > a:has(img) img {
  display: block;
  width: 100%;
  max-height: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}
.product > .one-liner {
  grid-area: one-liner;
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.product > .pros-cons { grid-area: proscons; }
.product > .specs { grid-area: specs; }
.product > .recommend-target { grid-area: recommend; }
.product > .cta { grid-area: cta; justify-self: start; }
.recommend-target {
  margin: 4px 0 8px;
  padding: 12px 14px;
  background: #fff9ec;
  border: 1px solid #f1db9a;
  border-radius: 8px;
  color: #6f5311;
  font-size: 14px;
  line-height: 1.6;
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0;
}
.pros-cons ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}
.pros h3, .cons h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.pros h3 { color: var(--cta-dark); }
.cons h3 { color: #b91c1c; }

.specs {
  margin: 16px 0;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 14px;
}
.specs dt { font-weight: 700; display: inline; }
.specs dd { margin: 0 0 4px 0; display: inline; }
.specs dd::after { content: ""; display: block; }

/* CTA button */
.cta {
  display: inline-block;
  padding: 14px 24px;
  background: var(--cta);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
}
.cta:hover { background: var(--cta-dark); text-decoration: none; }

/* Guide + FAQ */
.guide, .faq {
  margin: 40px 0;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.decision-strip,
.related-cluster {
  margin: 40px 0;
}
.series-nav {
  margin: 40px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf6 0%, #f7f8fa 100%);
  box-shadow: var(--shadow);
}
.series-nav h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.series-nav p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.series-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.series-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.series-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
}
.series-card span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.series-card.is-current {
  border-color: #d9b24d;
  background: linear-gradient(180deg, #fff8e6 0%, #fff 100%);
}
.cluster-nav {
  margin: 40px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff 0%, #fffdf8 100%);
  box-shadow: var(--shadow);
}
.cluster-nav h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.cluster-nav p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cluster-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.cluster-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.cluster-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
}
.cluster-card span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.cluster-card.is-current {
  border-color: #9cb8d8;
  background: linear-gradient(180deg, #eef6ff 0%, #fff 100%);
}
.decision-strip {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f4f8ff 0%, #fcfaf4 100%);
  box-shadow: var(--shadow);
}
.decision-strip h2,
.related-cluster h2 {
  margin-top: 0;
  font-size: 20px;
}
.decision-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.decision-card,
.related-card {
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.decision-card strong,
.related-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
}
.decision-card p,
.related-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.guide h2, .faq h2 {
  margin-top: 0;
  font-size: 20px;
}
.faq details {
  margin: 10px 0;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
}
.faq details[open] { box-shadow: var(--shadow); }

/* Hub (index.html) listing */
.post-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.post-list a {
  font-size: 17px;
  font-weight: 700;
}
.post-list .post-desc {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 600px) {
  .article-header h1 { font-size: 22px; }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-info {
    padding: 10px;
  }
  .card-info h3 {
    font-size: 13px;
  }
  .card-info p {
    font-size: 11px;
  }
  .product {
    padding: 16px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "header"
      "one-liner"
      "proscons"
      "specs"
      "recommend"
      "cta"
      "disclosure";
  }
  .product > img,
  .product > a:has(img) {
    margin: 0 auto 16px;
    justify-self: center;
  }
  .product > a:has(img) img {
    width: 100%;
    height: auto;
  }
  .recommend-target {
    font-size: 13px;
    padding: 10px 12px;
  }
  .product > .cta { justify-self: stretch; text-align: center; }
  .pros-cons { grid-template-columns: 1fr; }
  .decision-grid,
  .related-grid,
  .series-grid,
  .cluster-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { font-size: 13px; padding: 8px 6px; }
}
