/* ============================================================================
   Home Concept X  —  an alternative home page, kept separate from the main
   home (Index). Mobile-first. Reuses the shared header/drawer; only the header
   right-side cluster is swapped to a carsales-style "Sell my car ›" link via
   the `concept` HeaderVariant flag (see _Layout.cshtml).

   The hamburger keeps the EN-left / AR-right rule (handled by layout.css). The
   sell link below hugs the opposite edge using inset-inline-end, so it mirrors
   automatically under RTL.
   ========================================================================== */

/* Header styles (carsales-style "Sell my car ›" link + lowercase findmotos
   wordmark) live in theme/layout.css now, because the concept header is the
   app-wide header — they must load on every page, not just the home. */

/* ---- Concept body --------------------------------------------------------- */
.hcx {
  --hcx-pad: var(--space-4);
}

/* Hero: full-bleed image with a dark gradient and overlaid copy + CTAs. */
.hcx-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(13, 23, 47, 0.05) 0%, rgba(13, 23, 47, 0.72) 78%, rgba(13, 23, 47, 0.86) 100%),
    var(--hcx-hero-image, none) center / cover no-repeat,
    var(--color-primary);
  color: #fff;
}
.hcx-hero__inner {
  width: 100%;
  padding: var(--space-7) var(--hcx-pad) var(--space-6);
}
.hcx-hero__title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.1;
  font-weight: var(--fw-bold);
}
.hcx-hero__sub {
  margin: 0 0 var(--space-5);
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.hcx-hero__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.hcx-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding-inline: var(--space-3);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.hcx-cta svg { width: 20px; height: 20px; flex: none; }
.hcx-cta:active { transform: translateY(1px); }
.hcx-cta--primary { background: #fff; color: var(--color-primary); }
.hcx-cta--primary:hover { background: var(--color-gray-soft); }
.hcx-cta--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.hcx-cta--ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* Value strip */
.hcx-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-4) var(--hcx-pad);
  background: var(--color-gray-soft);
}
.hcx-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.hcx-value svg {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: var(--radius);
  background: rgba(47, 83, 155, 0.1);
  color: var(--color-primary);
}
.hcx-value--transparent svg {
  background: rgba(46, 134, 255, 0.1);
  color: #2F66C3;
}
.hcx-value--free svg {
  background: rgba(30, 127, 79, 0.1);
  color: var(--color-success);
}
.hcx-value strong { font-size: 0.9rem; font-weight: var(--fw-medium); }
.hcx-value span { font-size: 0.74rem; color: var(--color-text-soft, #5b6577); line-height: 1.3; }

/* Latest cars */
.hcx-section { padding: var(--space-6) var(--hcx-pad) var(--space-5); }
.hcx-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.hcx-section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
}
.hcx-viewall {
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.hcx-viewall:hover { text-decoration: underline; }
.hcx-cars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.hcx-empty { color: var(--color-text-soft, #5b6577); font-size: 0.95rem; }

/* Back-to-classic-home link */
.hcx-altlink {
  display: block;
  margin: 0 var(--hcx-pad) var(--space-6);
  padding: var(--space-3);
  border: 1px dashed var(--color-gray-light);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-soft, #5b6577);
  text-decoration: none;
}
.hcx-altlink:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---- Desktop ------------------------------------------------------------- */
@media (min-width: 981px) {
  .hcx-hero { min-height: 56vh; }
  .hcx-hero__inner {
    max-width: var(--container-max, 1120px);
    margin-inline: auto;
  }
  .hcx-hero__cta { display: inline-grid; grid-template-columns: auto auto; }
  .hcx-section { max-width: var(--container-max, 1120px); margin-inline: auto; }
  .hcx-values { max-width: var(--container-max, 1120px); margin-inline: auto; border-radius: var(--radius); }
  .hcx-cars { grid-template-columns: repeat(3, 1fr); }
}
