/* Shared styles for individual game detail pages. Extends style.css. */

.game-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 72px;
  isolation: isolate;
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px) brightness(0.45) saturate(1.2);
  transform: scale(1.08);
  z-index: -2;
}

.game-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 29, 0.35), rgba(6, 17, 29, 0.94)),
    radial-gradient(circle at 20% 30%, rgba(79, 208, 255, 0.22), transparent 40%);
  z-index: -1;
}

.game-hero-inner {
  max-width: 880px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.back-link:hover {
  color: var(--accent-2);
}

.platform-badge {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(79, 208, 255, 0.14);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.game-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.game-tagline {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 720px;
}

.game-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header.left {
  text-align: left;
}

.video-embed {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--panel-border);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 208, 255, 0.08), rgba(10, 23, 40, 0.9));
}

.video-placeholder-inner {
  text-align: center;
  color: var(--muted);
}

.video-placeholder-inner .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(79, 208, 255, 0.16);
  color: var(--accent-2);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.game-about p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0 0 18px;
  max-width: 880px;
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid li {
  padding: 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--accent-2);
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 14px,
    rgba(255, 255, 255, 0.06) 14px,
    rgba(255, 255, 255, 0.06) 28px
  );
  border: 1px dashed var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

.screenshot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: transform 0.18s ease;
}

.screenshot:hover {
  transform: translateY(-4px);
}

.screenshot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #000;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 10, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  backdrop-filter: blur(8px);
  animation: lb-fade 0.18s ease-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  padding: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

body.no-scroll {
  overflow: hidden;
}

@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.screenshot figcaption {
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--panel-border);
}

.download-card h2 {
  margin: 6px 0 8px;
  font-size: 1.8rem;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.install-note {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255, 204, 107, 0.06);
  border: 1px solid rgba(255, 204, 107, 0.22);
}

.install-note h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.3px;
}

.install-note p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.install-note ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.install-note strong {
  color: var(--text);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.meta-grid > div {
  padding: 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--gold);
  text-transform: uppercase;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: transform 0.18s ease;
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.related-body {
  padding: 16px 18px 20px;
}

.related-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.related-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .feature-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .related-grid,
  .meta-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
