/* =========================================================
   Hotel Zumbi Universe — Garage / Vehicle Workshop
   Path: /css/screens/garage.css
   V18 — Premium Vehicle Workshop
   ========================================================= */

.garage-screen,
.garage-screen-v18 {
  width: 100%;
  min-height: 100dvh;
  color: var(--text, #f5fff9);
}

.garage-room-v18 {
  position: relative;
  min-height: 100dvh;
  padding: 12px;
  isolation: isolate;
  overflow: hidden;
}

.garage-room-v18__bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(.46) saturate(1.08);
}

.garage-room-v18__shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, rgba(65, 255, 184, .10), transparent 35%),
    radial-gradient(circle at 80% 18%, rgba(180, 78, 255, .10), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 10, .35), rgba(2, 6, 10, .94));
}

.hz-garage-hud {
  position: sticky;
  top: 8px;
  z-index: 40;
  margin-inline: auto;
}

.garage-room-v18__content {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 14px;
  width: min(1080px, 100%);
  margin: 14px auto 0;
  padding-bottom: 120px;
}

/* HERO */

.garage-hero-v18,
.garage-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(113, 255, 210, .18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(57, 255, 136, .15), transparent 38%),
    radial-gradient(circle at 92% 10%, rgba(180, 78, 255, .14), transparent 40%),
    linear-gradient(180deg, rgba(8, 22, 29, .76), rgba(2, 8, 12, .88));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
}

.garage-hero-v18::before,
.garage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 40%);
  opacity: .45;
}

.garage-hero-v18 > *,
.garage-hero > * {
  position: relative;
  z-index: 1;
}

.garage-hero-v18 h1,
.garage-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  line-height: .9;
  letter-spacing: -.055em;
  text-shadow: 0 0 24px rgba(120, 255, 209, .22);
}

.garage-hero-v18 p,
.garage-hero p {
  max-width: 620px;
  margin: 0;
  color: #c7dad4;
  font-size: .84rem;
  line-height: 1.42;
}

.garage-featured-vehicle-v18,
.garage-featured-vehicle {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.garage-featured-img {
  width: min(230px, 48vw);
  height: 145px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, .48))
    drop-shadow(0 0 18px rgba(72, 255, 190, .13));
}

.garage-featured-vehicle-v18 strong,
.garage-featured-vehicle strong {
  color: #dffff3;
  font-size: .78rem;
}

.garage-summary-card-v18,
.garage-summary-card {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(57, 255, 136, .16);
  border-radius: 20px;
  background: rgba(255, 255, 255, .055);
}

.garage-summary-card-v18 span,
.garage-summary-card span {
  color: #9fb9b2;
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.garage-summary-card-v18 strong,
.garage-summary-card strong {
  color: var(--yellow, #ffd76a);
  font-size: 1.5rem;
  line-height: 1;
}

.garage-summary-card-v18 small,
.garage-summary-card small {
  color: #b9ccc6;
}

/* BONUS / STARS */

.garage-bonus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.garage-bonus-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(57, 255, 136, .14);
  border-radius: 999px;
  background: rgba(57, 255, 136, .08);
  color: var(--green, #39ff88);
  font-size: .62rem;
  font-weight: 900;
}

.garage-stars {
  display: inline-flex;
  justify-content: center;
  gap: 2px;
}

.garage-stars span {
  color: rgba(255, 255, 255, .22);
  font-size: .82rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 0, 0, .55);
}

.garage-stars span.is-active {
  color: var(--yellow, #ffd76a);
  text-shadow: 0 0 12px rgba(255, 215, 106, .28);
}

/* SUPPLY / PRODUCTION */

.garage-supply-card-v18,
.garage-production-card-v18,
.garage-production-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(113, 255, 210, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(57, 255, 136, .12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .060), rgba(255, 255, 255, .025)),
    rgba(2, 8, 12, .72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
}

.garage-supply-card-v18 h2,
.garage-production-card-v18 h2,
.garage-production-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.garage-supply-card-v18 p,
.garage-production-card-v18 p,
.garage-production-card p {
  margin: 0 0 10px;
  color: #b9ccc6;
  font-size: .82rem;
  line-height: 1.4;
}

.garage-production-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.garage-production-list article {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(113, 255, 210, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}

.garage-production-list article.is-locked {
  opacity: .5;
}

.garage-production-list span {
  font-size: 1.2rem;
}

.garage-production-list strong {
  font-size: .78rem;
}

.garage-production-list small {
  color: #9fb9b2;
  font-size: .62rem;
}

/* SECTION */

.garage-section-v18,
.garage-section {
  display: grid;
  gap: 10px;
}

.garage-section-head-v18,
.game-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.garage-section-head-v18 h2,
.game-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

.garage-section-head-v18 small,
.game-section-head small {
  color: #b9ccc6;
  font-size: .76rem;
  font-weight: 900;
}

/* GRID */

.garage-vehicle-grid-v18,
.garage-vehicle-grid {
  display: grid;
  gap: 12px;
}

/* VEHICLE CARD */

.garage-vehicle-card-v18,
.garage-vehicle-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(113, 255, 210, .14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(57, 255, 136, .07), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(2, 8, 12, .68);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .26);
  backdrop-filter: blur(8px);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.garage-vehicle-card-v18:hover,
.garage-vehicle-card:hover {
  transform: translateY(-2px);
}

.garage-vehicle-card-v18.is-equipped,
.garage-vehicle-card.is-equipped {
  border-color: rgba(57, 255, 136, .48);
  box-shadow:
    0 0 22px rgba(57, 255, 136, .12),
    0 12px 30px rgba(0, 0, 0, .28);
}

.garage-vehicle-card-v18.is-locked,
.garage-vehicle-card.is-locked {
  opacity: .72;
}

.garage-vehicle-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 110px;
}

.garage-vehicle-img {
  width: 150px;
  height: 95px;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 20px rgba(0, 0, 0, .38))
    drop-shadow(0 0 14px rgba(72, 255, 190, .10));
}

.garage-level-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .58);
  color: #dffff3;
  font-size: .65rem;
  font-weight: 950;
}

.garage-vehicle-info {
  display: grid;
  gap: 5px;
}

.garage-rarity {
  color: var(--green, #39ff88);
  font-size: .62rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.garage-vehicle-info strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.05;
}

.garage-vehicle-info small {
  color: #9fb9b2;
  font-size: .72rem;
  line-height: 1.35;
}

.garage-vehicle-info em {
  margin-top: 4px;
  color: var(--yellow, #ffd76a);
  font-style: normal;
  font-weight: 950;
}

.garage-fragments {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}

.garage-fragments span {
  color: #9fb9b2;
  font-size: .62rem;
  font-weight: 900;
}

.garage-fragments strong {
  color: #fff;
  font-size: .72rem;
}

.garage-vehicle-actions {
  display: grid;
  gap: 8px;
}

.garage-vehicle-actions small {
  color: #9fb9b2;
  font-size: .62rem;
}

.garage-vehicle-actions .btn-primary,
.garage-vehicle-actions .btn-secondary {
  min-height: 38px;
}

/* RARITIES */

.rarity-common {
  border-color: rgba(255, 255, 255, .09);
}

.rarity-rare {
  border-color: rgba(40, 216, 255, .28);
}

.rarity-epic {
  border-color: rgba(180, 78, 255, .32);
}

.rarity-legendary {
  border-color: rgba(255, 210, 74, .38);
}

.rarity-mythic {
  border-color: rgba(255, 75, 95, .40);
}

/* TABLET */

@media (min-width: 720px) {
  .garage-hero-v18,
  .garage-hero {
    grid-template-columns: minmax(0, 1fr) 250px 180px;
    align-items: center;
  }

  .garage-supply-card-v18 {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .garage-production-card-v18,
  .garage-production-card {
    grid-template-columns: minmax(0, 1fr) 320px auto;
    align-items: center;
  }

  .garage-vehicle-grid-v18,
  .garage-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* DESKTOP */

@media (min-width: 1100px) {
  .garage-vehicle-grid-v18,
  .garage-vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .garage-room-v18 {
    height: 100dvh;
    padding: 6px;
    overflow: hidden;
  }

  .garage-room-v18__bg,
  .garage-room-v18__shade {
    position: absolute;
  }

  .garage-room-v18__content {
    height: calc(100dvh - 178px);
    margin-top: 8px;
    padding-bottom: 88px;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .garage-room-v18__content::-webkit-scrollbar {
    display: none;
  }

  .garage-hero-v18,
  .garage-hero {
    padding: 12px;
    border-radius: 22px;
  }

  .garage-hero-v18 h1,
  .garage-hero h1 {
    font-size: 2rem;
  }

  .garage-featured-img {
    width: 170px;
    height: 105px;
  }

  .garage-summary-card-v18,
  .garage-summary-card {
    padding: 11px;
    border-radius: 18px;
  }

  .garage-production-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .garage-vehicle-card-v18,
  .garage-vehicle-card {
    padding: 12px;
    border-radius: 20px;
  }

  .garage-vehicle-img {
    width: 132px;
    height: 84px;
  }

  .garage-section-head-v18,
  .game-section-head {
    align-items: center;
  }
}

@media (max-width: 420px) {
  .garage-production-list {
    grid-template-columns: 1fr;
  }

  .garage-hero-v18 h1,
  .garage-hero h1 {
    font-size: 1.65rem;
  }
}
