/* ─── Game detail page styles ─────────────────────────────────────────────── */

/* Hero banner */
.gp-hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3.5rem;
  background: var(--gp-bg1, #050d1f);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.gp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 80% 50%, rgba(56,189,248,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(167,139,250,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.gp-hero-bg-orange {
  background:
    radial-gradient(ellipse 80% 80% at 80% 50%, rgba(251,146,60,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(250,204,21,0.08) 0%, transparent 60%);
}

.gp-hero-bg-green {
  background:
    radial-gradient(ellipse 80% 80% at 80% 50%, rgba(74,222,128,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(250,204,21,0.08) 0%, transparent 60%);
}

.gp-hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.gp-hero-icon {
  font-size: 5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 24px rgba(56,189,248,0.4));
  line-height: 1;
}

.gp-hero-text { flex: 1; }

.gp-hero-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.gp-genre-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
}

.gp-hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(56,189,248,0.2));
  margin-bottom: 0.75rem;
}

.gp-hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.gp-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Screenshots grid */
.gp-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.gp-screen-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 12, 28, 0.75);
  border: 1px solid var(--glass-border);
  transition: border-color 0.3s, transform 0.25s;
}

.gp-screen-frame:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
}

.gp-screen-inner {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
}

/* Real image */
.gp-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Hide placeholder when real image loads */
.gp-screen-frame:not(.no-img) .gp-screen-placeholder { display: none; }
.gp-screen-frame.no-img .gp-screen-img { display: none; }

/* CSS placeholder */
.gp-screen-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(160deg, #08101e 0%, #0c0820 100%);
}

.gp-ph-phone {
  width: 72px;
  height: 130px;
  background: #0e1225;
  border: 2px solid rgba(56,189,248,0.3);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 5px 5px;
  gap: 3px;
  box-shadow: 0 0 24px rgba(56,189,248,0.12);
}

.gp-ph-bar {
  width: 24px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.gp-ph-screen {
  flex: 1;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.gp-ph-ui {
  padding: 4px 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
}

.gp-ph-top {
  background: rgba(56,189,248,0.15);
  border-radius: 3px;
  height: 14px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-size: 4px;
  font-weight: 700;
  color: #38bdf8;
  font-family: monospace;
  flex-shrink: 0;
}

.gp-ph-row {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  height: 14px;
  padding: 0 4px;
  font-size: 4px;
  color: rgba(203,213,225,0.6);
  flex-shrink: 0;
}

.gp-ph-row span { font-size: 6px; }

.gp-ph-bar-stat {
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  height: 3px;
  overflow: hidden;
  margin-top: auto;
  flex-shrink: 0;
}

.gp-ph-bar-stat div {
  height: 100%;
  border-radius: 2px;
  background: #38bdf8;
}

.gp-ph-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

.gp-screenshot-hint {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
}

.gp-screenshot-hint code {
  font-family: 'Courier New', monospace;
  color: var(--accent);
  background: rgba(56,189,248,0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Detail grid */
.gp-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Feature list */
.gp-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.gp-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.gp-feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.gp-feature-list li strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.gp-feature-list li p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Info panel */
.gp-info-panel { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

.gp-info-card {
  background: rgba(10, 12, 28, 0.80);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gp-info-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.gp-info-table {
  width: 100%;
  border-collapse: collapse;
}

.gp-info-table td {
  padding: 0.55rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(40,50,90,0.3);
  vertical-align: top;
}

.gp-info-table td:first-child {
  color: var(--text-muted);
  width: 45%;
  font-weight: 500;
}

.gp-info-table td:last-child {
  color: var(--text);
}

.gp-other-game {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 10px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.25rem;
}

.gp-other-game:hover { background: rgba(56,189,248,0.06); }

.gp-other-game div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gp-other-game strong {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .gp-hero-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .gp-hero-badges { justify-content: center; }
  .gp-hero-actions { justify-content: center; }
  .gp-hero-sub { margin-left: auto; margin-right: auto; }
  .gp-detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gp-info-panel { position: static; }
  .gp-screenshots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .gp-hero-icon { font-size: 3.5rem; }
  .gp-screenshots { grid-template-columns: repeat(2, 1fr); }
}
