/* ============================================================
   Top Rated Cars Section  —  trc-* namespace
   Depends on: base/variables.css
   ============================================================ */

/* ── Section wrapper ───────────────────────────────────────── */
.trc-section {
  padding: 90px 0 100px;
  background: var(--clr-bg-muted);
}

/* ── Section header ────────────────────────────────────────── */
.trc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.trc-heading-wrap {
  position: relative;
}

.trc-watermark {
  position: absolute;
  top: -24px;
  left: -8px;
  font-size: 96px;
  font-weight: 900;
  color: rgba(238, 56, 36, 0.05);
  line-height: 1;
  letter-spacing: -4px;
  user-select: none;
  pointer-events: none;
}

.trc-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: 10px;
}

/* ── View All button ───────────────────────────────────────── */
.trc-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(91.94deg, var(--clr-orange-dark) 7.39%, var(--clr-orange) 94.92%);
  color: var(--clr-white);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(238, 56, 36, 0.3);
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.trc-view-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(238, 56, 36, 0.45);
}

/* ── Small-cards column ────────────────────────────────────── */
.trc-small-cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ══════════════════════════════════════════════════════════════
   HERO CARD  (large left card)
   ══════════════════════════════════════════════════════════════ */

.trc-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(15, 22, 48, 0.12);
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.trc-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 22, 48, 0.18);
}

.trc-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.trc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 14, 36, 0.92) 0%,
    rgba(10, 14, 36, 0.4) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

/* ── Hero top row (type tag + rating) ──────────────────────── */
.trc-hero-top {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.trc-type-tag {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(91.94deg, var(--clr-orange-dark) 7.39%, var(--clr-orange) 94.92%);
  color: var(--clr-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trc-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: var(--clr-white);
  font-size: 13px;
  font-weight: 600;
}

.trc-rating-pill .trc-review-count {
  opacity: 0.7;
  font-weight: 400;
}

/* ── Hero content (bottom overlay) ────────────────────────── */
.trc-hero-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
}

.trc-hero-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--clr-white);
  margin: 0 0 10px;
  line-height: 1.2;
}

.trc-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.trc-hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trc-hero-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--clr-white);
}

.trc-hero-price-sub {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-inline-start: 4px;
}

/* ── Color swatch rows ─────────────────────────────────────── */
.trc-color-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.trc-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: inline-block;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   SMALL CARDS  (right column, horizontal layout)
   ══════════════════════════════════════════════════════════════ */

.trc-small-card {
  display: flex;
  background: var(--clr-white);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--trans-normal), box-shadow var(--trans-normal),
    border-color var(--trans-normal);
  min-height: 215px;
}

.trc-small-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 22, 48, 0.12);
  border-color: rgba(238, 56, 36, 0.2);
}

/* ── Small card image panel ────────────────────────────────── */
.trc-small-img-wrap {
  flex: 0 0 170px;
  background: var(--clr-bg-input);
  overflow: hidden;
  position: relative;
}

.trc-small-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trc-small-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(238, 56, 36, 0.85);
  color: var(--clr-white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Small card content panel ──────────────────────────────── */
.trc-small-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trc-small-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
}

.trc-small-rating .trc-review-count {
  color: var(--clr-text-faint);
}

.trc-small-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-navy-dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.trc-small-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--clr-text-muted);
  margin-bottom: 3px;
}

.trc-small-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}

.trc-small-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--clr-orange-dark);
}

.trc-small-price-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--clr-text-muted);
}

.trc-small-color-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--clr-text-muted);
}

.trc-small-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .trc-section {
    padding: 60px 0 70px;
  }

  .trc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .trc-hero-img {
    height: 340px;
  }

  .trc-small-cards-col {
    margin-top: 16px;
  }
}

@media (max-width: 575px) {
  .trc-watermark {
    font-size: 64px;
  }

  .trc-hero-img {
    height: 280px;
  }

  .trc-small-img-wrap {
    flex: 0 0 120px;
  }

  .trc-hero-name {
    font-size: 20px;
  }

  .trc-hero-price {
    font-size: 18px;
  }
}
