/* Builds page (public) */

.mmh-builds-page {
  background: #050611;
}

.mmh-builds-hero {
  padding: 4.5rem 0 2.4rem;
  background: radial-gradient(circle at 15% 20%, rgba(255, 107, 44, 0.22), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(124, 92, 255, 0.18), transparent 52%),
              linear-gradient(180deg, #050611 0%, #070818 55%, #050611 100%);
  color: #ffffff;
}

.mmh-builds-hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.6rem;
  align-items: start;
}

.mmh-builds-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.mmh-builds-hero__badge-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.95);
  box-shadow: 0 0 0 0.35rem rgba(255, 107, 44, 0.14);
}

.mmh-builds-hero__badge-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(235, 238, 255, 0.95);
  font-size: 0.9rem;
}

.mmh-builds-hero__title {
  margin: 0.9rem 0 0.7rem;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
}

.mmh-builds-hero__title span {
  color: rgba(255, 107, 44, 0.95);
}

.mmh-builds-hero__subtitle {
  margin: 0 0 1.2rem;
  color: rgba(225, 227, 244, 0.88);
  font-size: 1.05rem;
  max-width: 56ch;
}

.mmh-builds-hero__subtitle code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 0.6rem;
}

.mmh-builds-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.mmh-builds-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 640px;
}

.mmh-builds-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(10px);
}

.mmh-builds-stat__num {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.mmh-builds-stat__label {
  color: rgba(225, 227, 244, 0.8);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.mmh-builds-hero__panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  padding: 1.2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.mmh-builds-hero__panel-title {
  margin: 0;
  font-size: 1.05rem;
}

.mmh-builds-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.mmh-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 17, 0.45);
  color: rgba(235, 238, 255, 0.92);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.mmh-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.mmh-pill.is-active {
  background: rgba(255, 107, 44, 0.16);
  border-color: rgba(255, 107, 44, 0.35);
}

.mmh-builds-hero__panel-note {
  margin: 0.85rem 0 0;
  color: rgba(225, 227, 244, 0.82);
  font-size: 0.92rem;
}

/* Masonry */

.mmh-builds-grid {
  padding: 2.6rem 0 4.2rem;
}

.mmh-builds-grid__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.mmh-builds-grid__title {
  margin: 0;
  font-size: 1.7rem;
  color: rgba(245, 246, 255, 0.96);
}

.mmh-builds-grid__kicker {
  margin: 0;
  color: rgba(225, 227, 244, 0.75);
}

.mmh-masonry {
  columns: 3 320px;
  column-gap: 1.2rem;
}

.mmh-masonry__item {
  break-inside: avoid;
  margin: 0 0 1.2rem;
}

.mmh-masonry__btn {
  width: 100%;
  text-align: left;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.mmh-masonry__media {
  display: block;
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.mmh-masonry__media img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.mmh-masonry__btn:hover .mmh-masonry__media img {
  transform: scale(1.08);
}

.mmh-masonry__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.72) 100%);
}

.mmh-masonry__meta {
  display: block;
  padding: 0.85rem 0.3rem 0;
}

.mmh-masonry__title {
  display: block;
  color: rgba(245, 246, 255, 0.96);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mmh-masonry__desc {
  display: block;
  margin-top: 0.25rem;
  color: rgba(225, 227, 244, 0.78);
  font-size: 0.95rem;
}

/* CTA card */

.mmh-builds-cta {
  padding: 0 0 5rem;
}

.mmh-builds-cta__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.6rem;
  padding: 1.45rem 1.55rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  backdrop-filter: blur(12px);
}

.mmh-builds-cta__title {
  margin: 0;
  color: rgba(245, 246, 255, 0.96);
}

.mmh-builds-cta__text {
  margin: 0.4rem 0 0;
  color: rgba(225, 227, 244, 0.82);
}

.mmh-builds-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Lightbox */

.mmh-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  z-index: 9999;
}

.mmh-lightbox.is-open {
  display: flex;
}

.mmh-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.mmh-lightbox__dialog {
  position: relative;
  width: min(980px, 100%);
  background: rgba(7, 8, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 25px 90px rgba(0,0,0,0.6);
}

.mmh-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.4rem;
  cursor: pointer;
}

.mmh-lightbox__figure {
  margin: 0;
}

.mmh-lightbox__img {
  width: 100%;
  height: auto;
  display: block;
}

.mmh-lightbox__caption {
  padding: 1rem 1.1rem 1.2rem;
}

.mmh-lightbox__title {
  margin: 0;
  color: rgba(245, 246, 255, 0.96);
}

.mmh-lightbox__desc {
  margin: 0.35rem 0 0;
  color: rgba(225, 227, 244, 0.82);
}

@media (max-width: 960px) {
  .mmh-builds-hero__inner {
    grid-template-columns: 1fr;
  }
  .mmh-builds-cta__card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .mmh-builds-hero__stats {
    grid-template-columns: 1fr;
  }
  .mmh-builds-grid__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
