/* ============================================================
   RepackGames Child — single-game.css
   Single post layout (hero + meta + sections + sidebar)
   ============================================================ */

.rg-single { max-width: var(--rg-max-w); margin: 0 auto; }

.rg-single-head h1 {
  font-size: 30px;
  margin: 8px 0 14px;
  line-height: 1.25;
}

.rg-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--rg-bg-alt);
  border-left: 4px solid var(--rg-primary);
  border-radius: var(--rg-radius-sm);
  font: 500 13px/1.4 var(--rg-font-body);
  color: var(--rg-text-muted);
  margin-bottom: 20px;
}
.rg-meta-bar strong { color: var(--rg-text); margin-right: 4px; }

.rg-hero-image {
  margin: 0 0 24px;
  border-radius: var(--rg-radius);
  overflow: hidden;
  background: #000;
}
.rg-hero-image img { width: 100%; height: auto; display: block; }

.rg-grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}

.rg-content { min-width: 0; }
.rg-section-content {
  background: var(--rg-card);
  padding: 22px 24px;
  border-radius: var(--rg-radius);
  margin-bottom: 22px;
}
.rg-section-content h2 {
  font-size: 22px;
  border-bottom: 2px solid var(--rg-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Screenshots */
.rg-screens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.rg-screen {
  display: block;
  aspect-ratio: 16/9;
  border-radius: var(--rg-radius-sm);
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
}
.rg-screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.rg-screen:hover img { transform: scale(1.05); }

/* Specs */
.rg-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rg-specs { background: var(--rg-bg-alt); padding: 14px 18px; border-radius: var(--rg-radius-sm); }
.rg-specs h3 { font-size: 17px; color: var(--rg-accent); margin: 0 0 8px; }
.rg-specs ul { list-style: none; padding: 0; margin: 0; font-family: var(--rg-font-mono); font-size: 13px; }
.rg-specs li { padding: 4px 0; border-bottom: 1px dashed var(--rg-border); }
.rg-specs li:last-child { border-bottom: 0; }

/* Video */
.rg-video-wrap { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--rg-radius-sm); overflow: hidden; }
.rg-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Install steps */
.rg-install { padding-left: 1.4em; }
.rg-install li { padding: 6px 0; }

/* Mirrors */
.rg-mirrors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.rg-mirror-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #e85d04 0%, #ff7818 100%);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--rg-radius);
  font: 700 14px var(--rg-font-body);
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(232,93,4,.35);
}
.rg-mirror-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232,93,4,.55);
  color: #fff;
}
.rg-mirror-label { font-size: 13px; }
.rg-mirror-cta {
  background: rgba(0,0,0,.18);
  padding: 4px 10px;
  border-radius: var(--rg-radius-sm);
  font-size: 12px;
}

/* FAQ */
.rg-faq { display: flex; flex-direction: column; gap: 8px; }
.rg-faq-item {
  background: var(--rg-bg-alt);
  border-radius: var(--rg-radius-sm);
  border: 1px solid var(--rg-border);
  padding: 4px 0;
}
.rg-faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font: 600 15px var(--rg-font-body);
  color: var(--rg-text);
  list-style: none;
  position: relative;
}
.rg-faq-item summary::-webkit-details-marker { display: none; }
.rg-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  font-weight: 400;
  font-size: 20px;
  color: var(--rg-primary);
  transition: transform .2s;
}
.rg-faq-item[open] summary::after { transform: rotate(45deg); }
.rg-faq-a { padding: 0 18px 14px; color: var(--rg-text-muted); font-size: 14px; line-height: 1.6; }

/* Sidebar */
.rg-sidebar { min-width: 0; }
.rg-side-box {
  background: var(--rg-card);
  border-radius: var(--rg-radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.rg-side-box h3 {
  font-size: 16px;
  border-bottom: 2px solid var(--rg-primary);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.rg-related-list { list-style: none; padding: 0; margin: 0; }
.rg-related-list li { padding: 7px 0; border-bottom: 1px solid var(--rg-border); font-size: 13px; }
.rg-related-list li:last-child { border-bottom: 0; }

/* Lightbox overlay */
.rg-lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}
.rg-lightbox-overlay.is-open { display: flex; }
.rg-lightbox-overlay img { max-width: 92%; max-height: 92%; object-fit: contain; }
.rg-lightbox-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,.1); color: #fff;
  border: 0; padding: 8px 14px; border-radius: var(--rg-radius-sm);
  cursor: pointer; font: 600 14px var(--rg-font-body);
}

/* Responsive */
@media (max-width: 960px) {
  .rg-grid-2col { grid-template-columns: 1fr; }
  .rg-sidebar { order: 2; }
  .rg-specs-grid { grid-template-columns: 1fr; }
}
