/* ======================================================
   HOME PAGE STYLES
====================================================== */

.hero {
  position: relative;
  min-height: clamp(360px, 58vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1rem 3rem;
  background:
    linear-gradient(to bottom, rgba(11, 15, 26, 0.45), rgba(11, 15, 26, 0.9)),
    url("/images/hero.jpg");
  background-size: cover;
  background-position: center 24%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 240, 255, 0.16), transparent 62%),
    radial-gradient(circle at 75% 20%, rgba(255, 46, 99, 0.12), transparent 38%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding: 1.5rem;
  text-align: center;
}

.hero-content p {
  max-width: 620px;
  margin: 0.6rem auto 0;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-actions .btn-franchise {
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.22), rgba(255, 127, 80, 0.2));
  color: #ffdbe5;
  border-color: rgba(255, 127, 80, 0.35);
  box-shadow: 0 0 10px rgba(255, 46, 99, 0.14);
}

.hero-actions .btn-franchise:hover {
  background: linear-gradient(135deg, rgba(255, 75, 121, 0.28), rgba(255, 153, 102, 0.24));
  color: #ffe7ee;
  border-color: rgba(255, 153, 102, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 0 14px rgba(255, 75, 121, 0.2);
}

.hero-actions .btn-franchise:focus-visible {
  outline: 2px solid #ff9a7a;
  outline-offset: 2px;
}

.hero-stats-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-stat-card {
  border: 1px solid rgba(0, 240, 255, 0.24);
  background:
    linear-gradient(140deg, rgba(0, 240, 255, 0.13), rgba(11, 15, 26, 0.88) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 72px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 240, 255, 0.07);
  overflow: hidden;
}

.hero-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 46, 99, 0.15), transparent 48%);
  pointer-events: none;
}

.hero-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  background: rgba(0, 240, 255, 0.14);
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stat-text {
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.hero-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-stat-value {
  font-size: 1.28rem;
  color: var(--primary);
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(21, 27, 46, 0.62), rgba(11, 15, 26, 0.9));
}

.home-panels {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

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

.home-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.home-panel > .game-meta {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.info-rows-card {
  padding: 0.75rem;
}

.info-row-list {
  display: grid;
  gap: 0.65rem;
}

.info-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.info-row-art {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(0, 240, 255, 0.08);
  overflow: hidden;
}

.info-row-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-row-main h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.home-panel .game-meta {
  font-size: 0.78rem;
}

.info-row-meta {
  display: grid;
  gap: 0.2rem;
  text-align: right;
  justify-items: end;
}

.leader-row-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.leader-row .info-row-art {
  width: 56px;
  height: 56px;
}

.leader-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-rating-label {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.leader-rating-value {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.leader-row {
  grid-template-columns: 56px 1fr auto;
  padding: 0.45rem 0.55rem;
}

.leader-row .info-row-main h3 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.tournaments-combined-card {
  padding: 0.75rem;
}

.tournament-row-list {
  display: grid;
  gap: 0.65rem;
}

.tournament-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.65rem;
  align-items: stretch;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.tournament-row-art {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(0, 240, 255, 0.08);
  overflow: hidden;
}

.tournament-row-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tournament-row-main h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.tournament-game-line {
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tournament-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.2rem;
  text-align: right;
  min-height: 100%;
}

.tournament-row-meta .btn {
  margin-top: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.row-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.row-status-live {
  color: #ff627f;
}

.row-status-upcoming {
  color: #6fd6ff;
}

.row-status-completed {
  color: #cdd4df;
}

.row-status-active {
  color: #67e8a5;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 6rem;
    min-height: 320px;
    background-position: center 28%;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

  .tournament-row {
    grid-template-columns: 1fr;
  }

  .tournament-row-art {
    width: 100%;
    height: 150px;
  }

  .tournament-row-meta {
    text-align: right;
    align-items: flex-end;
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .info-row-art {
    width: 100%;
    height: 150px;
  }

  .leader-row .info-row-art {
    width: 56px;
    height: 56px;
  }

  .info-row-meta {
    text-align: left;
    justify-items: start;
  }
}

@media (max-width: 980px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-panels-grid {
    grid-template-columns: 1fr;
  }
}
