/* AceBase home — MyGear.Top home layout 1:1 (teal shop-forward) */

.mg-home {
  --mg-ink: #0f172a;
  --mg-ink-muted: #64748b;
  margin: -0.35rem 0 0.5rem;
}

.mg-home .mg-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.35rem;
  border-radius: 0.75rem;
  min-height: 16.5rem;
  background:
    linear-gradient(105deg, rgba(15, 61, 58, 0.92) 0%, rgba(15, 118, 110, 0.78) 48%, rgba(15, 23, 42, 0.55) 100%),
    var(--mg-home-hero-image) center / cover no-repeat;
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.18);
}

.mg-home .mg-home-hero__inner {
  position: relative;
  z-index: 1;
  padding: 1.65rem 1.4rem 1.55rem;
  max-width: 34rem;
}

.mg-home .mg-home-hero__brand {
  margin: 0 0 0.55rem !important;
  color: #5eead4 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2 !important;
}

.mg-home .mg-home-hero__title {
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.18 !important;
}

.mg-home .mg-home-hero__lead {
  margin: 0 0 1.1rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.mg-home .mg-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mg-home .mg-home-hero__btn {
  display: inline-block !important;
  padding: 0.48rem 1.05rem !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.mg-home .mg-home-hero__btn--primary {
  background: #25d366 !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.mg-home .mg-home-hero__btn--primary:hover {
  background: #1ebe57 !important;
  color: #fff !important;
}

.mg-home .mg-home-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.mg-home .mg-home-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

.mg-home .mg-home-section-title {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: 0 !important;
  color: #e2e8f0 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mg-home .mg-home-cats {
  margin: 0 0 1.25rem;
}

.mg-home .mg-home-cats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mg-home .mg-home-cat {
  display: flex !important;
  align-items: stretch;
  gap: 0.75rem;
  min-height: 5.5rem;
  padding: 0.55rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 118, 110, 0.14);
  text-decoration: none !important;
  color: inherit !important;
  font-weight: 500 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mg-home .mg-home-cat:hover {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
  color: inherit !important;
}

.mg-home .mg-home-cat__img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: cover;
  border-radius: 0.45rem;
  margin: 0 !important;
  flex-shrink: 0;
  background: #e2e8f0;
}

.mg-home .mg-home-cat__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.mg-home .mg-home-cat__name {
  color: var(--mg-ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mg-home .mg-home-cat__desc {
  color: var(--mg-ink-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
}

.mg-home .mg-home-help {
  margin: 0 0 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  background: rgba(13, 148, 136, 0.14);
  border: 1px solid rgba(94, 234, 212, 0.28);
}

.mg-home .mg-home-help__text {
  margin: 0 0 0.55rem !important;
  color: #99f6e4 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.mg-home .mg-home-help__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 !important;
}

.mg-home .mg-home-help__links a {
  color: #5eead4 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.mg-home .mg-home-help__links a:hover {
  text-decoration: underline !important;
}

.md-typeset .mg-home-guides,
.md-typeset .mg-home-gallery {
  margin-top: 1.35rem;
}

.md-typeset .mg-home-guides h2,
.md-typeset .mg-home-gallery h2 {
  margin-top: 0 !important;
}

@media (max-width: 700px) {
  .mg-home {
    margin: 0 -0.8rem 0.75rem;
  }

  .mg-home .mg-home-hero {
    margin: 0 0 1.1rem;
    border-radius: 0;
    min-height: 19.5rem;
    background:
      linear-gradient(
        180deg,
        rgba(15, 61, 58, 0.55) 0%,
        rgba(15, 118, 110, 0.72) 42%,
        rgba(15, 23, 42, 0.92) 100%
      ),
      var(--mg-home-hero-image) 72% center / cover no-repeat;
    box-shadow: none;
  }

  .mg-home .mg-home-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 19.5rem;
    padding: 1.35rem 1.15rem 1.25rem;
    max-width: none;
    box-sizing: border-box;
  }

  .mg-home .mg-home-hero__brand {
    font-size: 0.7rem !important;
    letter-spacing: 0.14em;
  }

  .mg-home .mg-home-hero__title {
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
    max-width: 14ch;
  }

  .mg-home .mg-home-hero__lead {
    font-size: 0.8rem !important;
    margin: 0 0 1rem !important;
    max-width: 28ch;
  }

  .mg-home .mg-home-hero__actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .mg-home .mg-home-hero__btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center !important;
    padding: 0.72rem 1rem !important;
    font-size: 0.84rem !important;
  }

  .mg-home .mg-home-cats,
  .mg-home .mg-home-help {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
  }

  .mg-home .mg-home-section-title {
    margin: 0 0 0.65rem !important;
  }

  .mg-home .mg-home-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .mg-home .mg-home-cat {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0.7rem;
  }

  .mg-home .mg-home-cat:hover,
  .mg-home .mg-home-cat:active {
    transform: none;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.14);
  }

  .mg-home .mg-home-cat__img {
    width: 100%;
    height: 7.75rem;
    border-radius: 0;
  }

  .mg-home .mg-home-cat__body {
    padding: 0.6rem 0.65rem 0.75rem;
    gap: 0.15rem;
  }

  .mg-home .mg-home-cat__name {
    font-size: 0.92rem;
  }

  .mg-home .mg-home-cat__desc {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .mg-home .mg-home-help {
    margin-top: 0.15rem;
    margin-bottom: 0.25rem;
    padding: 0.9rem 0.95rem;
  }

  .mg-home .mg-home-help__text {
    font-size: 0.76rem !important;
  }

  .mg-home .mg-home-help__links {
    gap: 0.55rem 1rem;
  }

  .mg-home .mg-home-help__links a {
    font-size: 0.8rem !important;
  }

  .md-typeset .mg-home-guides,
  .md-typeset .mg-home-gallery {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
  }
}

@media (max-width: 380px) {
  .mg-home .mg-home-cat__img {
    height: 6.5rem;
  }

  .mg-home .mg-home-hero__title {
    font-size: 1.28rem !important;
  }
}
