/* ============================================
   BLOG COMPONENTS — JobCompass.ai
   Reusable visual elements for blog articles.
   Link: <link rel="stylesheet" href="/blog/components.css">
   ============================================ */


/* ------------------------------------------
   1. COMPARISON TABLE
   Two-column "without vs with" or any A/B comparison.
   ------------------------------------------ */

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  margin: 32px 0;
  border: 1px solid #e6e6e6;
}
.comparison-table .col-header {
  padding: 16px 20px;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comparison-table .col-header.col-old {
  background: #fef2f2;
  color: #b91c1c;
}
.comparison-table .col-header.col-new {
  background: #e0ecff;
  color: #478eff;
}
.comparison-table .col-body {
  padding: 0;
}
.comparison-table .comp-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 20px;
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #444;
  border-top: 1px solid #f0f0f0;
}
.comparison-table .col-old .comp-row {
  background: #fff;
}
.comparison-table .col-new .comp-row {
  background: #f8fbff;
}
.comparison-table .comp-row .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.comparison-table .col-old .icon {
  background: #fee2e2;
  color: #dc2626;
}
.comparison-table .col-new .icon {
  background: #dbfee9;
  color: #12cc28;
}

@media (max-width: 640px) {
  .comparison-table {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------
   2. STAT CALLOUT BLOCK
   Big number with label. Use in a row of 2-3.
   ------------------------------------------ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  background: #f8fbff;
  border: 1px solid #e0ecff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.stat-card .stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #478eff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .stat-number.stat-orange {
  color: #fb6600;
}
.stat-card .stat-label {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card .stat-number {
    font-size: 28px;
  }
}


/* ------------------------------------------
   3. DATA TABLE
   Clean table for salary ranges, market data,
   role comparisons, etc.
   ------------------------------------------ */

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  margin: 32px 0;
  font-family: 'Satoshi', sans-serif;
}
.data-table thead th {
  background: #478eff;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  text-align: left;
}
.data-table tbody td {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 400;
  color: #444;
  border-top: 1px solid #f0f0f0;
}
.data-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}
.data-table tbody tr:hover td {
  background: #e0ecff;
}
.data-table .cell-highlight {
  color: #478eff;
  font-weight: 600;
}
.data-table .cell-muted {
  color: #888;
  font-size: 13px;
}

@media (max-width: 640px) {
  .data-table {
    font-size: 13px;
  }
  .data-table thead th,
  .data-table tbody td {
    padding: 10px 12px;
  }
}


/* ------------------------------------------
   4. HIGHLIGHT BOX
   Tinted callout for key takeaways or tips.
   ------------------------------------------ */

.highlight-box {
  border-radius: 16px;
  padding: 24px 24px;
  margin: 32px 0;
}
.highlight-box.highlight-blue {
  background: #f0f5ff;
  border-left: 4px solid #478eff;
}
.highlight-box.highlight-orange {
  background: #fff7f0;
  border-left: 4px solid #fb6600;
}
.highlight-box .highlight-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.highlight-box p {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 0;
}
.highlight-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.highlight-box ul li {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  padding: 4px 0 4px 20px;
  position: relative;
}
.highlight-box.highlight-blue ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #478eff;
}
.highlight-box.highlight-orange ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fb6600;
}


/* ------------------------------------------
   5. INLINE BADGE / PILL
   Small labels inside content.
   ------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Satoshi', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  vertical-align: middle;
}
.badge-blue {
  background: #e0ecff;
  color: #478eff;
}
.badge-orange {
  background: #fff0e0;
  color: #fb6600;
}
.badge-green {
  background: #dbfee9;
  color: #317e4f;
}
.badge-red {
  background: #fee2e2;
  color: #b91c1c;
}
