/* Home page - warm background, community banner + banner cards */
body.home-page {
  background: #c5b684 !important;
  background-color: #c5b684 !important;
  background-image: none !important;
  position: relative;
}
body.home-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/images/shop/backgroundoverlay.webp');
  background-repeat: repeat;
  background-size: 1600px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
body.home-page .main {
  padding: 2.5rem;
  max-width: 100% !important;
  position: relative;
  z-index: 1;
}

.home-page {
  --card-radius: 18px;
  --section-max: 1200px;
}

.home-section {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 1.25rem 2rem 2.5rem 2rem;
}

/* ───── Community banner ───── */
.home-community-banner {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr;
  min-height: 380px;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 5px solid #312619;
  background: linear-gradient(135deg, #57a96d 0%, #53a253 30%, #378756 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.home-community-banner::before {
  content: '';
  position: absolute;
  inset: -150%;
  width: 400%;
  height: 400%;
  background-image: url('/images/shop/cardoverlay.webp');
  background-repeat: repeat;
  background-size: 1400px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-45deg);
}

.home-community-top {
  margin-left: 60px;
  margin-top: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  z-index: 2;
  position: relative;
}

.home-community-top p {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 1.7rem;
  font-weight: 600;
  color: #312619;
  line-height: 1.5;
  margin: 0;
  text-shadow: 2px 3px 0 #e0ffd8;
  max-width: 1020px;
  text-align: center;
  transition: transform 0.3s ease;
}

.home-community-banner:hover .home-community-top p {
  transform: scale(1.06);
}

.home-community-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem 2rem 2rem;
  align-items: center;
  z-index: 2;
  position: relative;
}

.home-community-logo img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  padding-left: 10px;
  transition: transform 0.3s ease;
}

.home-community-banner:hover .home-community-logo img {
  transform: scale(1.05);
}

.home-community-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
  padding-right: 30px;
}

.home-community-text p {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: #e0ffd8;
  line-height: 1.4;
  margin: 0;
  text-shadow: 2px 3px 0 #312619;
  text-align: right;
  transition: transform 0.3s ease;
}

.home-community-banner:hover .home-community-text p {
  transform: scale(1.06);
}

/* ───── Generic banner card (used for Ranked, Socials) ───── */
.home-banner-card {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 5px solid;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  margin-bottom: 1.5rem;
  min-height: 280px;
  text-decoration: none;
  color: inherit;
}

.home-banner-card::before {
  content: '';
  position: absolute;
  inset: -150%;
  width: 400%;
  height: 400%;
  background-image: url('/images/shop/cardoverlay.webp');
  background-repeat: repeat;
  background-size: 1400px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  transform: rotate(45deg);
}

.home-banner-screenshot {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.home-banner-screenshot img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  transition: transform 0.3s ease;
  padding-left: 15px;
}

.home-banner-card:hover .home-banner-screenshot img {
  transform: scale(1.05);
}

.home-banner-info {
  padding: 2rem 2rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  z-index: 2;
  position: relative;
}

.home-banner-info--centered {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
}

.home-banner-name {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 4rem;
  margin-bottom: 0.25rem;
  line-height: 1;
  transition: transform 0.3s ease;
  text-align: center;
}

.home-banner-tagline {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  opacity: 0.9;
  transition: transform 0.3s ease;
  text-align: center;
}

.home-banner-card:hover .home-banner-name,
.home-banner-card:hover .home-banner-tagline {
  transform: scale(1.06);
}

/* ── Ranked variant (pink/magenta like the old Shop card) ── */
.home-banner--ranked {
  background: linear-gradient(135deg, #eb6dba 0%, #d25392 30%, #b93d8b 100%);
  border-color: #5c0c3a;
  grid-template-columns: 1fr;
  min-height: 220px;
}
.home-banner--ranked .home-banner-name {
  color: #ffdbf2;
  text-shadow: 2.5px 4px 0 #5c0c3a;
}
.home-banner--ranked .home-banner-tagline {
  color: #5c0c3a;
  text-shadow: 1.5px 2px 0 #ffffff;
}

/* ── Events variant (blue/teal, overlay rotated like Discord card) ── */
.home-banner--events {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 30%, #1d4ed8 100%);
  border-color: #1e3a5f;
  grid-template-columns: 1fr;
  min-height: 220px;
}
.home-banner--events::before {
  transform: rotate(-45deg);
}
.home-banner--events .home-banner-name {
  color: #e0f2fe;
  text-shadow: 2.5px 4px 0 #1e3a5f;
}
.home-banner--events .home-banner-tagline {
  color: #1e3a5f;
  text-shadow: 1.5px 2px 0 #e0f2fe;
}

/* ── Socials variant (orange) ── */
.home-banner--socials {
  background: linear-gradient(135deg, #f59e0b 0%, #e67e22 30%, #d35400 100%);
  border-color: #7c2d12;
  /* No screenshot, so single column */
  grid-template-columns: 1fr;
  min-height: 220px;
}
.home-banner--socials .home-banner-name {
  color: #fff5e6;
  text-shadow: 2.5px 4px 0 #7c2d12;
}
.home-banner--socials .home-banner-tagline {
  color: #7c2d12;
  text-shadow: 1.5px 2px 0 #fff5e6;
}

/* ───── Mobile ───── */
@media (max-width: 768px) {
  body.home-page .main {
    padding: 1rem;
  }

  .home-section {
    padding: 0.75rem 0.75rem 1.5rem;
  }

  /* Community banner */
  .home-community-banner {
    min-height: auto;
    grid-template-rows: auto auto;
  }

  .home-community-top {
    margin-left: 0;
    margin-top: 0;
    padding: 1.25rem 1.25rem 0;
    justify-content: center;
  }

  .home-community-top p {
    font-size: 1rem;
    text-align: center;
  }

  .home-community-bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    text-align: center;
  }

  .home-community-logo img {
    max-height: 120px;
    padding-left: 0;
  }

  .home-community-text {
    padding-right: 0;
  }

  .home-community-text p {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Banner cards */
  .home-banner-card {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 1.5rem;
  }

  .home-banner-info {
    order: -1;
    padding: 1.5rem 1.25rem 0.5rem;
    align-items: center;
    text-align: center;
  }

  .home-banner-info--centered {
    padding: 2rem 1.25rem;
  }

  .home-banner-name {
    font-size: 2.5rem;
  }

  .home-banner-tagline {
    font-size: 1.1rem;
  }

  .home-banner-screenshot {
    padding: 0.75rem 1.25rem 1.5rem;
  }

  .home-banner-screenshot img {
    padding-left: 0;
    max-height: 200px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .home-community-top p {
    font-size: 0.85rem;
  }

  .home-community-text p {
    font-size: 0.8rem;
  }

  .home-banner-name {
    font-size: 2rem;
  }

  .home-banner-tagline {
    font-size: 0.95rem;
  }
}
