/* compare.html styles */

.compare-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 48px 24px 36px;
  text-align: center;
}
.compare-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 10px; font-weight: 900; }
.compare-hero p  { color: rgba(255,255,255,.75); margin: 0 0 4px; font-size: 1rem; }
.compare-hero .source-tag {
  display: inline-block; margin-top: 12px;
  background: rgba(255,255,255,.12); border-radius: 20px;
  padding: 4px 14px; font-size: .8rem; color: rgba(255,255,255,.65);
}

/* Category tabs */
.cat-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  padding: 20px 16px 4px;
  position: sticky; top: 56px; z-index: 10;
  background: var(--gray-bg);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.cat-tab {
  padding: 8px 18px; border-radius: 24px; border: 2px solid transparent;
  background: #fff; cursor: pointer; font-size: .9rem; font-weight: 600;
  color: var(--text-muted, #6b7280); transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.cat-tab:hover  { border-color: var(--blue-light); color: var(--blue-light); }
.cat-tab.active { background: var(--blue-light); color: #fff; border-color: var(--blue-light); }

/* City header strip */
.city-header {
  display: grid;
  grid-template-columns: 180px repeat(4, 1fr);
  gap: 0; max-width: 860px; margin: 24px auto 0;
  padding: 0 16px;
}
.city-header .ch-label { font-weight: 800; font-size: .85rem; text-align: center; color: var(--text-muted,#6b7280); }
.city-header .ch-label:first-child { text-align: left; }

/* Section header */
.section-label {
  max-width: 860px; margin: 24px auto 0; padding: 0 16px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted, #6b7280);
}

/* Price card */
.price-card {
  max-width: 860px; margin: 6px auto 0; padding: 0 16px;
}
.price-row {
  display: grid;
  grid-template-columns: 180px repeat(4, 1fr);
  align-items: center; gap: 0;
  background: #fff; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: box-shadow .15s;
}
.price-row:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }

.item-label {
  display: flex; flex-direction: column; gap: 2px;
}
.item-emoji { font-size: 1.5rem; line-height: 1; }
.item-name  { font-size: .9rem; font-weight: 700; color: var(--text, #1a1a2e); }
.item-unit  { font-size: .72rem; color: var(--text-muted, #6b7280); }

.price-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.price-value {
  font-size: 1rem; font-weight: 800; color: var(--text, #1a1a2e);
}
.price-bar-wrap { width: 80%; max-width: 60px; }
.price-bar {
  height: 5px; border-radius: 3px;
  background: var(--blue-light); opacity: .25;
  transition: width .4s ease;
}
.price-bar.max { opacity: 1; }
.price-bar.min { background: #22c55e; opacity: 1; }

.badge {
  font-size: .6rem; font-weight: 800; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 10px; white-space: nowrap;
}
.badge-cheap { background: #dcfce7; color: #15803d; }
.badge-pricey { background: #fee2e2; color: #dc2626; }

/* Gas section */
.gas-note {
  max-width: 860px; margin: 8px auto 0; padding: 0 32px;
  font-size: .75rem; color: var(--text-muted,#6b7280);
}

/* Responsive */
@media (max-width: 600px) {
  .city-header,
  .price-row { grid-template-columns: 110px repeat(4, 1fr); }
  .price-row  { padding: 10px 8px; }
  .city-header { padding: 0 8px; }
  .price-card  { padding: 0 8px; }
  .section-label { padding: 0 8px; }
  .item-name  { font-size: .78rem; }
  .price-value { font-size: .88rem; }
  .price-bar-wrap { display: none; }
  .badge { display: none; }
}
