/* ==========================================
   HOMEPAGE EXTRAS: live stat tiles + rank teasers
   Theme: Pink & Purple
========================================== */

/* The original homepage markup never applied .container, so every
   section ran edge to edge. Apply the same width to all main blocks. */
.hero-grid,
.hero-bottom,
section.content-section,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.home-wrap {
  width: 100%;
}

section.home-stats {
  padding: 0 0 20px;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-stat {
  padding: 18px 20px;

  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #200d36, #11051e);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.home-stat-label {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.home-stat-label .ic {
  width: 14px;
  height: 14px;
  color: var(--pink, #f472b6);
}

.home-stat strong {
  display: block;
  margin-top: 9px;

  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.home-stat strong[data-status="online"] {
  color: #50dfa0;
}

.home-stat strong[data-status="offline"] {
  color: #ff727e;
}

/* Rank teaser cards */

.rank-teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rank-teaser {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 24px;

  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, #200d36, #11051e);

  color: inherit;
  text-decoration: none;

  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.rank-teaser:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(217, 70, 239, 0.2);
}

.rank-teaser.featured {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.15);
}

.rank-teaser-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-teaser-head .ic {
  width: 20px;
  height: 20px;
  color: var(--pink, #f472b6);
}

.rank-teaser-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.rank-teaser-badge {
  margin-left: auto;
  padding: 4px 9px;

  border: 1px solid rgba(244, 114, 182, 0.5);
  border-radius: 7px;
  background: rgba(244, 114, 182, 0.15);
  color: var(--pink, #f472b6);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.rank-teaser-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rank-teaser-price strong {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1;
}

.rank-teaser-price span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.rank-teaser-list {
  display: grid;
  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.rank-teaser-list li {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #ebdff7;
  font-size: 13px;
}

.rank-teaser-list .ic {
  width: 15px;
  height: 15px;
  color: var(--purple, #c084fc);
}

.rank-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: auto;

  color: var(--pink, #f472b6);
  font-size: 13px;
  font-weight: 800;
}

.rank-teaser-link .ic {
  width: 15px;
  height: 15px;
  transition: transform .25s ease;
}

.rank-teaser:hover .rank-teaser-link .ic {
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  .home-stat-grid,
  .rank-teasers {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Java and Bedrock cards: same height */
.server-ip {
  align-self: stretch;
  min-height: 68px;
}
