/* Game detail page — game-show.pug */

/* Sidebar collapsible sections (details/summary) */
.sidebar-details { margin: 0; }
.sidebar-details > summary { list-style: none; font-size: 1.15rem; font-weight: 700; color: #f0eeff; cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.sidebar-details > summary::-webkit-details-marker { display: none; }
.sidebar-details > summary::after { content: '›'; font-size: 1.2rem; color: rgba(255,255,255,0.4); transform: rotate(90deg); transition: transform 0.2s; display: inline-block; line-height: 1; }
.sidebar-details[open] > summary::after { transform: rotate(270deg); }
.sidebar-details-body { margin-top: 1rem; }

/* System Requirements tier label */
.req-tier-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 0.35rem; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.5rem; }
.req-tier-label:first-child { border-top: none; padding-top: 0; }

/* Game Header */
.game-header { background: linear-gradient(180deg, rgba(20,20,30,0.95) 0%, var(--g-bg) 100%); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 2.5rem 0; margin-bottom: 2rem; }
.game-header-image { position: relative; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.6); aspect-ratio: 460/215; background: #000; }
.game-header-image img { width: 100%; height: 100%; object-fit: cover; }
.game-header h1 { font-size: 2.25rem; font-weight: 800; margin: 0 0 0.75rem 0; color: white; }
.game-meta-tag { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.4rem 0.9rem; border-radius: 0.5rem; font-size: 0.875rem; color: var(--g-light-75); white-space: nowrap; }
.game-description { color: var(--g-light-75); line-height: 1.65; margin-bottom: 1.5rem; font-size: 0.975rem; }
.quick-stat { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem; padding: 0.85rem 1.25rem; text-align: center; min-width: 120px; }
.quick-stat-value { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; display: block; }
.quick-stat-label { font-size: 0.8rem; color: var(--text-light-75); text-transform: uppercase; letter-spacing: 0.5px; display: block; }

/* Responsive Header */
@media (max-width: 768px) {
	.game-header h1 { font-size: 1.75rem; }
	.game-header { padding: 1.5rem 0; }
}

/* Card Styles — section containers */
.game-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem; padding: 1.35rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.game-card h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.25rem 0; display: flex; align-items: center; gap: 0.75rem; color: #f0eeff; }
.game-card h2::before { content: ''; width: 4px; height: 1.5rem; background: #ff3afd; border-radius: 2px; }
.game-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 1rem 0; color: #f0eeff; }

/* Reviews */
.overall-score { text-align: center; padding: 1.75rem; background: linear-gradient(135deg, rgba(255,58,253,0.08) 0%, rgba(200,50,220,0.08) 100%); border: 1px solid rgba(255,58,253,0.2); border-radius: 0.75rem; margin-bottom: 1.25rem; }
.overall-score-value { font-size: 3.6rem; font-weight: 900; color: white; line-height: 1; margin-bottom: 0.5rem; }
.overall-score-label { font-size: 0.875rem; color: var(--text-light-50); text-transform: uppercase; letter-spacing: 1px; }

/* Review Grid - compact cards */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.review-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem; padding: 0.75rem; text-align: center; transition: all 0.2s; }
.review-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); }
.review-card-score { font-size: 1.6em; font-weight: 800; margin: 0 0 0.25rem 0; }
.review-card-source { font-size: 0.8rem; }

/* Playtime - compact grid */
.playtime-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.playtime-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem; padding: 1rem; text-align: center; }
.playtime-box-value { font-size: 1.95rem; font-weight: 800; line-height: 1; margin: 0 0 0.5rem 0; }
.playtime-box-label { font-size: 0.8rem; }
.playtime-submissions { text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; color: var(--text-light-50); }

/* Game Info List - Bootstrap row/col */
.game-info-list .info-item { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.7rem 0; }
.info-label { font-size: 0.875rem; }
.info-value { font-size: 0.875rem; font-weight: 500; }

/* Tags & Languages - using Bootstrap d-flex */
.game-tag { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.35rem 0.75rem; border-radius: 0.4rem; font-size: 0.8rem; display: inline-block; }
.lang-tag.full-audio { background: rgba(255,58,253,0.1); border-color: rgba(255,58,253,0.3); }
.lang-section-title { font-size: 0.75rem; font-weight: 600; color: var(--text-light-75); text-transform: uppercase; letter-spacing: 0.5px; margin: 0.55rem 0 0.5rem 0; }
.lang-section-title:first-child { margin-top: 0; }

/* System Requirements */
.requirements-toggle { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.req-tab { flex: 1; padding: 0.6rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem; text-align: center; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; color: var(--g-light-75); user-select: none; }
.req-tab.active { background: rgba(255,58,253,0.15); border-color: rgba(255,58,253,0.4); font-weight: 600; }
.os-content { display: none; }
.os-content.active { display: block; }
/* Steam raw HTML requirements */
.req-html ul { list-style: none; padding: 0; margin: 0; }
.req-html li { font-size: 0.875rem; margin-bottom: 0.45rem; color: var(--g-light-75); line-height: 1.5; }
.req-html strong { color: rgba(255,255,255,0.9); font-weight: 600; }

/* Media Section — unified gallery */
.media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.media-item { position: relative; border-radius: 0.5rem; overflow: hidden; aspect-ratio: 16/9; background: #111; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.media-item:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); font-size: 2rem; color: rgba(255,255,255,0.3); }
/* Overlay ▶ on videos */
.media-item--video .media-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.35); transition: background 0.2s; pointer-events: none; }
.media-item--video:hover .media-play-btn { background: rgba(0,0,0,0.55); }

/* Lightbox */
.media-lightbox { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; }
.media-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); }
.media-lightbox-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: min(95vw, 1100px); width: 100%; padding: 0 0.5rem; }
.media-lightbox-content { width: 100%; text-align: center; }
.media-lightbox-title { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 0.5rem; }
.media-lightbox-close { position: absolute; top: -2.75rem; right: 0; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; padding: 0.25rem 0.6rem; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
.media-lightbox-close:hover { opacity: 1; }
.media-lightbox-nav { display: flex; gap: 1rem; }
.media-lightbox-prev, .media-lightbox-next { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: white; font-size: 1.1rem; padding: 0.6rem 2.5rem; border-radius: 0.5rem; cursor: pointer; transition: background 0.2s; line-height: 1; }
.media-lightbox-prev:hover, .media-lightbox-next:hover { background: rgba(255,255,255,0.18); }

/* Store Links - using Bootstrap d-flex */
.store-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem; color: var(--g-light-75); text-decoration: none; font-size: 1rem; font-weight: 500; transition: all 0.2s; }
.store-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: white; transform: translateY(-2px); }
.store-icon { font-size: 1.25rem; }

/* VISE/VRI Prediction Card */
.prediction-item { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.prediction-item:last-child { border-bottom: none; }
.prediction-label { display: flex; align-items: center; gap: 0.5rem; color: var(--g-light-75); font-size: 0.9rem; font-weight: 600; }
.prediction-value { font-size: 1.35rem; font-weight: 800; color: white; }
.vri-badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 0.3rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.vri-badge.learning { background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.3); color: #fbbf24; }
.vri-badge.stable { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.vri-badge.f2p { background: rgba(255,58,253,0.12); border: 1px solid rgba(255,58,253,0.3); color: #ff3afd; }
.f2p-unsupported { padding: 1.25rem; text-align: center; background: rgba(255,58,253,0.04); border: 1px solid rgba(255,58,253,0.12); border-radius: 0.5rem; margin-bottom: 0.5rem; }
.f2p-unsupported-icon { font-size: 1.75rem; margin-bottom: 0.4rem; }
.f2p-unsupported-title { font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 0.25rem; }
.f2p-unsupported-desc { font-size: 0.78rem; color: rgba(255,255,255,0.35); line-height: 1.4; }

/* DLC List - Compact version */
.dlc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; grid-auto-rows: 1fr; }
@media (max-width: 1200px) { .dlc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .dlc-grid { grid-template-columns: repeat(2, 1fr); } }
.dlc-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem; overflow: hidden; transition: all 0.2s; }
.dlc-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.dlc-image { width: 100%; aspect-ratio: 460/215; background: #000; object-fit: cover; }
.dlc-info { padding: 0.6rem; }
.dlc-name { font-size: 0.85rem; font-weight: 600; margin: 0 0 0.2rem 0; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dlc-price { font-size: 0.8rem; color: var(--text-light-75); font-weight: 500; }
.dlc-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.2) !important; }
.dlc-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Related content — visibility:hidden+height:0 keeps content in DOM (SEO) without reflow */
.rel-hidden { visibility: hidden; height: 0; overflow: hidden; opacity: 0; padding: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }

/* Adult Blur */
.media-item--blurred img { filter: blur(18px); transition: filter 0.3s; pointer-events: none; }
.media-item--blurred.revealed img { filter: none; pointer-events: auto; }
.media-blur-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; background: rgba(0,0,0,0.35); z-index: 2; cursor: pointer; transition: opacity 0.3s; }
.media-item--blurred.revealed .media-blur-overlay { opacity: 0; pointer-events: none; }
.media-blur-icon { font-size: 1.4rem; line-height: 1; }
.media-blur-label { font-size: 0.7rem; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* Admin Game Panel */
.admin-game-panel { background: rgba(251,191,36,0.05); border: 1px solid rgba(251,191,36,0.2); border-radius: 0.5rem; padding: 0.85rem; margin-top: 1rem; }
.admin-game-panel h4 { font-size: 0.8rem; font-weight: 700; color: #fbbf24; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 0.75rem 0; }
.admin-field { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.admin-field label { font-size: 0.8rem; color: rgba(255,255,255,0.6); min-width: 80px; }
.admin-field input[type="number"] { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 0.35rem; color: white; font-size: 0.85rem; padding: 0.3rem 0.5rem; width: 90px; }
.admin-field input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #fbbf24; }
.admin-save-btn { font-size: 0.75rem; padding: 0.3rem 0.75rem; background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.35); border-radius: 0.35rem; color: #fbbf24; cursor: pointer; transition: all 0.2s; margin-top: 0.25rem; }
.admin-save-btn:hover { background: rgba(251,191,36,0.25); }
.admin-save-status { font-size: 0.75rem; margin-left: 0.5rem; }

/* Similar Games */
.similar-game-img { width: 100%; aspect-ratio: 460/215; object-fit: cover; border-radius: 0.35rem; display: block; transition: transform 0.2s; }
.similar-game-placeholder { width: 100%; aspect-ratio: 460/215; background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.15); border-radius: 0.35rem; }
.similar-game-link:hover .similar-game-img { transform: scale(1.03); }
.similar-game-info { padding: 0.4rem 0 0; }
.similar-game-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: rgba(255,255,255,0.9); }
.similar-game-genres { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
