/*
 * Individual game hubs
 * Extends the site's existing Bootstrap/Poppins theme from style.css.
 */

.game-page {
  --site-teal: #6bb7be;
  --site-orange: #f89646;
  --site-ink: #0c0c0c;
  --site-muted: #656b6d;
  --site-soft: #f9fafa;
  --site-border: #e1e7e8;
  color: var(--site-ink);
  background: #ffffff;
}

.game-page *,
.game-page *::before,
.game-page *::after {
  box-sizing: border-box;
}

.game-announcement {
  display: none;
}

.game-page .header_section {
  border-bottom: 1px solid #edf0f0;
}

.game-page .custom_nav-container .navbar-nav .nav-item.active .nav-link,
.game-page .custom_nav-container .navbar-nav .nav-item .nav-link:hover {
  color: var(--site-teal);
}

.game-page main {
  display: block;
}

.game-container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.game-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background-color: var(--site-soft);
}

.game-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 390px;
  height: 390px;
  border: 56px solid rgba(107, 183, 190, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.game-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: 64px;
  align-items: center;
}

.game-hero-layout > * {
  min-width: 0;
}

.game-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: #7b8082;
  font-size: 13px;
}

.game-breadcrumbs a {
  color: var(--site-teal);
}

.game-breadcrumbs a:hover {
  color: var(--site-orange);
}

.game-kicker,
.game-eyebrow {
  margin: 0 0 12px;
  color: var(--site-teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.game-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
}

.game-kicker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--site-orange);
  box-shadow: 0 0 0 5px rgba(248, 150, 70, 0.16);
}

.game-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #000000;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.07;
  text-transform: uppercase;
}

.game-hero h1 span {
  color: var(--site-teal);
}

.game-hero h1.game-title-long {
  font-size: clamp(36px, 4.7vw, 62px);
}

.game-hero-lead {
  max-width: 680px;
  margin: 24px 0;
  color: #343839;
  font-size: 17px;
  line-height: 1.75;
}

.game-hero-badges,
.game-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-hero-badges li,
.game-category-chips span {
  padding: 8px 13px;
  border: 1px solid #dce3e4;
  background: #ffffff;
  color: #3b4041;
  font-size: 12px;
  font-weight: 600;
}

.game-cover-card {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.game-cover-card::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 86px;
  height: 86px;
  border-top: 5px solid var(--site-orange);
  border-right: 5px solid var(--site-orange);
}

.game-cover-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-cover-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 4px 3px;
}

.game-cover-caption strong {
  color: #16191a;
  font-size: 16px;
}

.game-cover-caption span {
  color: #747a7c;
  font-size: 12px;
}

.game-facts-wrap {
  padding: 0 0 65px;
  background: var(--site-soft);
}

.game-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--site-border);
  border-left: 1px solid var(--site-border);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.045);
}

.game-fact {
  display: flex;
  min-height: 105px;
  gap: 15px;
  align-items: center;
  padding: 20px;
  border-right: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
}

.game-fact-icon {
  display: inline-flex;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--site-teal);
  color: #ffffff;
  font-size: 16px;
}

.game-fact div {
  min-width: 0;
}

.game-fact span:not(.game-fact-icon) {
  display: block;
  margin-bottom: 3px;
  color: #7b8082;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.game-fact strong {
  display: block;
  color: #1c2021;
  font-size: 14px;
  line-height: 1.45;
}

.game-section {
  padding: 82px 0;
  background: #ffffff;
  scroll-margin-top: 80px;
}

.game-section.alt {
  background: var(--site-soft);
}

.game-section-heading {
  max-width: 780px;
}

.game-section-heading h2,
.game-long-copy h2,
.game-status-top h2 {
  margin: 0 0 17px;
  color: #151818;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-section-heading > p:last-child {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.75;
}

.game-status-panel {
  border: 1px solid var(--site-border);
  border-top: 5px solid var(--site-teal);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
}

.game-status-top {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  border-bottom: 1px solid var(--site-border);
}

.game-status-top h2 {
  margin: 0;
}

.game-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.game-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.game-status-badge.upcoming {
  background: rgba(248, 150, 70, 0.14);
  color: #b65d16;
}

.game-status-badge.confirmed {
  background: rgba(107, 183, 190, 0.17);
  color: #367d83;
}

.game-status-badge.unknown {
  background: #eceff0;
  color: #5d6466;
}

.game-status-rows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-status-row {
  min-width: 0;
  padding: 24px 25px;
  border-right: 1px solid var(--site-border);
}

.game-status-row:last-child {
  border-right: 0;
}

.game-status-row > span {
  display: block;
  margin-bottom: 8px;
  color: #747a7c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.game-status-row strong {
  display: block;
  margin-bottom: 6px;
  color: #181b1c;
  font-size: 15px;
}

.game-status-row small {
  display: block;
  color: #858a8c;
  font-size: 12px;
  line-height: 1.5;
}

.game-latest-header {
  display: flex;
  gap: 35px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.game-latest-count {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: var(--site-teal);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.game-empty-state {
  padding: 52px 28px;
  border: 2px dashed #d6dfe0;
  background: #ffffff;
  text-align: center;
}

.game-empty-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(107, 183, 190, 0.14);
  color: var(--site-teal);
  font-size: 27px;
  border-radius: 50%;
}

.game-empty-state h3 {
  margin: 0 0 12px;
  color: #1b1f20;
  font-size: 21px;
  font-weight: 700;
}

.game-empty-state p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--site-muted);
  line-height: 1.75;
}

.game-information-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(285px, 0.7fr);
  gap: 58px;
  align-items: start;
}

.game-long-copy p:not(.game-eyebrow) {
  margin: 0 0 17px;
  color: #454a4b;
  line-height: 1.82;
}

.game-source-card {
  padding: 28px;
  border-left: 5px solid var(--site-orange);
  background: var(--site-soft);
}

.game-source-card h3 {
  margin: 0 0 13px;
  color: #1b1e1f;
  font-size: 18px;
  font-weight: 700;
}

.game-source-card p {
  margin: 0 0 22px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.7;
}

.game-source-link,
.game-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--site-teal);
  background: var(--site-teal);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.game-source-link:hover,
.game-source-link:focus,
.game-btn:hover,
.game-btn:focus {
  background: transparent;
  color: var(--site-teal);
}

.game-source-link i {
  margin-left: 6px;
}

.game-modding-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin: 30px 0 24px;
  padding: 28px;
  border: 1px solid var(--site-border);
  background: #ffffff;
}

.game-modding-icon {
  display: inline-flex;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background: var(--site-teal);
  color: #ffffff;
  font-size: 19px;
}

.game-modding-box h3 {
  margin: 0 0 9px;
  color: #191c1d;
  font-size: 20px;
  font-weight: 700;
}

.game-modding-box p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.75;
}

.game-category-chips span {
  background: #ffffff;
}

.mod-browser-tools {
  margin-bottom: 24px;
}

.game-search {
  position: relative;
  display: block;
  max-width: 480px;
  margin: 0;
}

.game-search i {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #7d8385;
  transform: translateY(-50%);
}

.game-search input {
  width: 100%;
  height: 47px;
  padding: 0 18px 0 45px;
  border: 1px solid var(--site-border);
  background: #ffffff;
  outline: none;
}

.game-search input:focus {
  border-color: var(--site-teal);
}

.hub-mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.hub-mod-card {
  overflow: hidden;
  border: 1px solid var(--site-border);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.hub-mod-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hub-mod-body {
  padding: 22px;
}

.hub-mod-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--site-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hub-mod-body h3 {
  margin: 0 0 10px;
  color: #181b1c;
  font-size: 19px;
  font-weight: 700;
}

.hub-mod-body > p {
  min-height: 66px;
  margin: 0 0 18px;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.65;
}

.hub-mod-meta {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--site-border);
}

.hub-mod-meta span {
  color: #717779;
  font-size: 12px;
}

.hub-mod-meta strong {
  color: #333738;
}

.game-page .info_section.long_section {
  margin-top: 0;
}

@media (max-width: 991px) {
  .game-hero {
    padding: 58px 0;
  }

  .game-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
    gap: 38px;
  }

  .game-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-status-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-status-row:nth-child(2) {
    border-right: 0;
  }

  .game-status-row:nth-child(-n + 2) {
    border-bottom: 1px solid var(--site-border);
  }

  .game-information-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hub-mod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .game-hero {
    padding: 48px 0;
  }

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

  .game-cover-card {
    max-width: 580px;
  }

  .game-section {
    padding: 64px 0;
  }

  .game-status-top,
  .game-latest-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-status-summary {
    justify-content: flex-start;
  }

  .game-status-rows {
    grid-template-columns: 1fr;
  }

  .game-status-row,
  .game-status-row:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--site-border);
  }

  .game-status-row:last-child {
    border-bottom: 0;
  }

  .hub-mod-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .game-container {
    padding-right: 25px;
    padding-left: 25px;
  }

  .game-hero h1,
  .game-hero h1.game-title-long {
    font-size: 34px;
    overflow-wrap: anywhere;
  }

  .game-hero-lead {
    font-size: 15px;
  }

  .game-facts-grid {
    grid-template-columns: 1fr;
  }

  .game-fact {
    min-height: 92px;
  }

  .game-status-top,
  .game-status-row,
  .game-modding-box,
  .game-source-card {
    padding: 22px;
  }

  .game-modding-box {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .game-container {
    padding-right: 15px;
    padding-left: 15px;
  }
}
