/* =========================================
   ImposterBox — Game Detail Page Styles
   Shared across all /games/*.html pages.
   To use: <link rel="stylesheet" href="game-details.css">
   ========================================= */

/* --- Hero Section --- */
.page-hero {
  text-align: center;
  padding: 64px 24px 48px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-align: center;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

/* --- Game Logo (above h1 in hero) --- */
.game-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* --- Hero Badge (category label) --- */
.hero-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Gradient Title Text --- */
/* Note: Needs !important to override the generic h1 color in style.css */
.page-hero .gradient-text,
.game-section .gradient-text {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
  background-clip: text;
  color: transparent !important;
}

/* --- Play Button --- */
.play-btn {
  display: inline-block;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0a0a12;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 14px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
}

/* --- Breadcrumb Navigation --- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #38bdf8;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Main Content Wrapper --- */
.game-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* --- Content Sections (What is, How to Play, Story, etc.) --- */
.game-section {
  margin-bottom: 56px;
}

.game-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.game-section p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* --- Numbered Steps List (How to Play) --- */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.steps-list li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.steps-list li:last-child {
  border-bottom: none;
}

.steps-list li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0a0a12;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
}

/* --- Features Grid --- */
.features-grid-game {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* --- FAQ Items --- */
.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Meta Row & Tags (kept for legacy compatibility) --- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.meta-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* --- Related Games Grid (kept for future use) --- */
.related-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.related-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
}

.related-card .r-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.related-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}