/* ============================================================
   SPGL UX Enhancement Styles
   Fix 1: Quick Pick Box
   Fix 2: Product Comparison Table
   ============================================================ */

/* --- Quick Pick Box ---------------------------------------- */
.quick-pick-box {
  margin: 1.5em 0 2em;
  padding: 1.4em 1.75em;
  border: 2px solid #5788fa;
  border-radius: 10px;
  background: var(--code-bg, #f6f8ff);
  position: relative;
}

[data-theme="dark"] .quick-pick-box,
@media (prefers-color-scheme: dark) {
  .quick-pick-box {
    background: rgba(87, 136, 250, 0.08);
    border-color: #5788fa;
  }
}

.qp-award {
  display: inline-block;
  background: #5788fa;
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.6em;
}

.qp-product {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 0.2em;
  color: var(--primary, #1d1d1d);
}

.qp-price {
  font-size: 1em;
  font-weight: 600;
  color: #5788fa;
  margin-bottom: 0.5em;
}

.qp-why {
  font-size: 0.95em;
  color: var(--content, #444);
  margin-bottom: 1em;
  line-height: 1.5;
}

.qp-cta {
  display: inline-block;
  background: #5788fa;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95em;
  padding: 10px 22px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.qp-cta:hover {
  background: #3a6ae8;
  transform: translateY(-1px);
  color: #fff !important;
}

@media (max-width: 640px) {
  .qp-cta {
    display: block;
    text-align: center;
    padding: 12px;
  }
}

/* --- Product Comparison Table ------------------------------ */
.product-table-wrap {
  overflow-x: auto;
  margin: 1.5em 0 2em;
  border-radius: 8px;
  border: 1px solid var(--border, #e0e0e0);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  min-width: 520px;
}

.product-table thead tr {
  background: #5788fa;
  color: #fff;
}

.product-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.88em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
}

.product-table tbody tr {
  border-bottom: 1px solid var(--border, #e8e8e8);
  transition: background 0.15s;
}

.product-table tbody tr:last-child {
  border-bottom: none;
}

.product-table tbody tr:hover {
  background: rgba(87, 136, 250, 0.06);
}

.product-table td {
  padding: 10px 14px;
  vertical-align: middle;
  color: var(--content, #333);
}

.product-table td a {
  color: #5788fa;
  font-weight: 600;
  text-decoration: none;
}

.product-table td a:hover {
  text-decoration: underline;
}

/* Dark mode for tables */
[data-theme="dark"] .product-table thead tr {
  background: #3a6ae8;
}

[data-theme="dark"] .product-table tbody tr:hover {
  background: rgba(87, 136, 250, 0.12);
}
