/* ============================================
   Comparateur — Premium Modern List
   ============================================ */
.comp-page { background: #030303; }

/* --- Hero --- */
.comp-hero { padding: 24px 0 16px; }
.comp-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f5f7;
  margin-bottom: 6px;
}
.comp-hero__desc {
  font-size: 1rem;
  color: #666680;
}

/* --- Filter bar (sticky) --- */
.comp-filters {
  padding: 0 0 16px;
  position: sticky;
  top: 70px;
  z-index: 20;
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.filter-pill {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #555570;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  color: #ccc;
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-pill--active {
  color: #fff;
  background: rgba(124, 106, 239, 0.15);
  border-color: rgba(124, 106, 239, 0.4);
}

/* --- Table section --- */
.comp-table-section { padding: 0 0 64px; }

/* --- Column grid (shared by thead and rows) --- */
.comp-thead,
.comp-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 90px 80px 110px 56px 160px;
  gap: 14px;
  align-items: center;
  padding: 0 24px;
}

/* --- Sticky header --- */
.comp-thead {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444460;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 128px;
  z-index: 19;
  background: rgba(3, 3, 3, 0.95);
  backdrop-filter: blur(8px);
}

/* --- Rows --- */
.comp-list {
  display: flex;
  flex-direction: column;
}

.comp-row {
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 88px;
  background: #080808;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
}

/* Zebra striping */
.comp-row--alt {
  background: #050505;
}

.comp-row:first-child {
  border-radius: 14px 14px 0 0;
}

.comp-row:last-child {
  border-radius: 0 0 14px 14px;
  border-bottom: none;
}

/* Hover — highlighted row */
.comp-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #FF9900;
}

/* --- Image column --- */
.comp-col--img {
  width: 72px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 4px;
}

.comp-col--img img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s ease;
}

.comp-row:hover .comp-col--img img {
  transform: scale(1.08);
}

/* --- Name column --- */
.comp-col--name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comp-row__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f0f0f5;
  letter-spacing: -0.01em;
}

.comp-row__sub {
  font-size: 0.75rem;
  color: #555570;
}

/* Category badges */
.comp-row__badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
  align-self: flex-start;
}

.comp-row__badge--violet {
  color: #a29bfe;
  background: rgba(124, 106, 239, 0.12);
}

.comp-row__badge--amber {
  color: #f5bd41;
  background: rgba(245, 189, 65, 0.12);
}

.comp-row__badge--green {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}

.comp-row__badge--cyan {
  color: #00cec9;
  background: rgba(0, 206, 201, 0.12);
}

/* --- Spec columns as badges --- */
.comp-col--dalle,
.comp-col--hz,
.comp-col--res {
  font-size: 0.75rem;
  font-weight: 600;
  color: #bbb;
}

.comp-col--hz {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #ccc;
}

/* Spec badges — inline colored pills */
.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Dalle type badges */
.spec-badge--oled {
  color: #c9a0ff;
  background: rgba(162, 100, 255, 0.12);
  border: 1px solid rgba(162, 100, 255, 0.2);
}

.spec-badge--ips {
  color: #64d2ff;
  background: rgba(100, 210, 255, 0.1);
  border: 1px solid rgba(100, 210, 255, 0.18);
}

/* Hz badges */
.spec-badge--hz-high {
  color: #5be0a5;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.18);
}

.spec-badge--hz-ultra {
  color: #ff6b8a;
  background: rgba(255, 107, 138, 0.1);
  border: 1px solid rgba(255, 107, 138, 0.18);
}

.spec-badge--hz-std {
  color: #888;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Resolution badge */
.spec-badge--4k {
  color: #f5bd41;
  background: rgba(245, 189, 65, 0.1);
  border: 1px solid rgba(245, 189, 65, 0.18);
}

.spec-badge--qhd {
  color: #a0a0b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-badge--fhd {
  color: #777;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Score badge --- */
.comp-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ccc;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.comp-score--top {
  color: #a29bfe;
  background: rgba(124, 106, 239, 0.1);
  border-color: rgba(124, 106, 239, 0.2);
}

/* --- Action button (Amazon orange, boosted) --- */
.comp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 20px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #111;
  background: #FF9900;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.15);
}

.comp-btn:hover {
  background: #ffad33;
  box-shadow: 0 4px 24px rgba(255, 153, 0, 0.35);
  transform: translateY(-2px);
}

/* Cart icon inside button */
.comp-btn__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Shimmer on row hover */
.comp-row:hover .comp-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: comp-shimmer 1s ease-in-out;
}

@keyframes comp-shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .comp-thead,
  .comp-row {
    grid-template-columns: 64px 1fr 80px 70px 56px 140px;
  }
  .comp-col--res { display: none; }
}

@media (max-width: 768px) {
  .comp-hero__title { font-size: 1.75rem; }
  .comp-thead { display: none; }
  .comp-row {
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px !important;
    margin-bottom: 6px;
    min-height: auto;
    border-left: none;
  }
  .comp-col--dalle,
  .comp-col--hz,
  .comp-col--res { display: none; }
  .comp-col--score { display: none; }
  .comp-col--action {
    grid-column: 1 / -1;
  }
  .comp-btn { width: 100%; text-align: center; padding: 12px; }
  .comp-col--img {
    width: 52px;
    height: 44px;
  }
}
