/* ============================================================
   PS5 PORTFOLIO — GAME HUB OVERLAY
   Full-screen project detail with trophy system
   ============================================================ */

.game-hub-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav, 400) + 100);
  background: var(--color-bg, #0a0a0f);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-hub-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.game-hub-content {
  max-width: 1100px;
  width: 100%;
  padding: 4rem 3rem;
  position: relative;
  animation: gameHubIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gameHubIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Close button ── */
.game-hub-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg, rgba(22, 22, 32, 0.75));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  color: #ff4d6d;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.game-hub-close:hover {
  background: rgba(255, 77, 109, 0.15);
  transform: scale(1.1);
}

/* ── Genre badge ── */
.game-hub-genre {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent, #00439C);
  margin-bottom: 1rem;
}

/* ── Title ── */
.game-hub-title {
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text, #e8e6e3);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* ── Description ── */
.game-hub-description {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted, rgba(232, 230, 227, 0.55));
  max-width: 700px;
  margin-bottom: 3rem;
}

/* ── Play / Launch button ── */
.game-hub-play {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--color-accent, #00439C);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
}

.game-hub-play:hover {
  background: var(--color-accent-hover, #0055c4);
  box-shadow: 0 0 32px var(--color-accent-glow, rgba(0, 67, 156, 0.5));
  transform: translateY(-2px);
}

.game-hub-actions {
  margin-top: 2rem;
}

/* ============================================================
   TROPHY SYSTEM
   ============================================================ */

.trophy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0;
}

.trophy-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg, rgba(22, 22, 32, 0.75));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  transition: all 200ms ease;
}

.trophy-card:hover {
  transform: translateY(-2px);
}

.trophy-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.trophy-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trophy-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text, #e8e6e3);
}

.trophy-tier {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Gold */
.trophy-card--gold {
  border-color: rgba(255, 215, 0, 0.4);
}
.trophy-card--gold .trophy-icon {
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}
.trophy-card--gold .trophy-tier {
  color: #FFD700;
}

/* Silver */
.trophy-card--silver {
  border-color: rgba(192, 192, 192, 0.4);
}
.trophy-card--silver .trophy-icon {
  text-shadow: 0 0 12px rgba(192, 192, 192, 0.5);
}
.trophy-card--silver .trophy-tier {
  color: #C0C0C0;
}

/* Bronze */
.trophy-card--bronze {
  border-color: rgba(205, 127, 50, 0.4);
}
.trophy-card--bronze .trophy-icon {
  text-shadow: 0 0 12px rgba(205, 127, 50, 0.5);
}
.trophy-card--bronze .trophy-tier {
  color: #CD7F32;
}

/* Standard */
.trophy-card--standard .trophy-tier {
  color: var(--color-text-muted, rgba(232, 230, 227, 0.55));
}

/* ============================================================
   TV-FIRST RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .game-hub-title {
    font-size: 2.5rem;
    letter-spacing: 0.16em;
  }
  .game-hub-content {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .game-hub-title {
    font-size: 1.875rem;
    letter-spacing: 0.08em;
  }
  .game-hub-content {
    padding: 2rem 1.5rem;
  }
  .trophy-grid {
    gap: 0.5rem;
  }
  .game-hub-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .game-hub-title {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
  }
  .game-hub-play {
    width: 100%;
    justify-content: center;
  }
  .trophy-card {
    flex: 1 1 calc(50% - 0.5rem);
  }
}
