/* ==========================================================================
   Game Details Page Specific Styles
   ========================================================================== */

/* Skeleton shimmer keyframes */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

/* Header Info & Background */
.game-header-wrapper {
    position: relative;
    margin-bottom: 24px;
    padding-top: 32px;
}

/* Hidden — background applied directly to .main-content via JS */
.game-header-bg { display: none; }


.game-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1; /* Stay above background */
}

.game-icon-small {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.game-categories {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 500;
}

/* Layout Columns */
.game-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.game-main-col {
    flex: 1;
    min-width: 0; /* Prevents overflow */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.game-sidebar-col {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
    /* GPU layer to prevent flicker on scroll */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Hero Gallery */
.hero-gallery {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-card);
}

.gallery-main-img {
    width: 100%;
    height: auto;
    display: block;
    color: transparent;
    cursor: zoom-in;
    /* Skeleton shimmer while loading */
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 1200px 100%;
    animation: shimmer 1.6s infinite linear;
    transition: opacity 0.25s ease;
}
.gallery-main-img.loaded {
    animation: none;
    background: none;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hero-gallery:hover .gallery-controls {
    opacity: 1;
}

.gallery-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(4px);
}

.gallery-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #FFF;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.gallery-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.indicator {
    width: 32px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.indicator.active {
    background-color: #FFF;
}

/* Content Boxes (Tabs, FAQ, etc) */
.content-box {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.tabs-header {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tab-btn {
    background: transparent;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.tab-content {
    font-size: 14px;
    line-height: 1.6;
    color: #D1D1D6;
}

.tab-content p {
    margin-bottom: 16px;
}

.tab-content strong {
    color: var(--text-primary);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--accent-blue);
    font-size: 15px;
    font-weight: 500;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    color: var(--text-secondary);
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Support Banner (Boosty style) */
.support-banner {
    background: linear-gradient(135deg, #FF6B35 0%, #F53844 100%);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
    cursor: pointer;
    transition: transform var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.support-banner:hover {
    transform: translateY(-2px);
}

.banner-title {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.banner-icons {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 16px;
    font-size: 48px;
    opacity: 0.2;
    pointer-events: none;
}

.banner-arrow {
    font-size: 20px;
    position: relative;
    z-index: 2;
}

/* Comments */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.count-badge {
    color: var(--text-secondary);
}

.telegram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 500;
}

.telegram-link i {
    font-size: 20px;
}

.comment-form-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 32px;
}

.comment-input {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    resize: vertical;
    min-height: 80px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color var(--transition-fast);
}

.comment-input:focus {
    border-color: var(--accent-blue);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-tools {
    display: flex;
    gap: 8px;
}

.send-comment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-card);
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.btn-icon.circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Sidebar Meta Cards */
.meta-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.meta-row {
    margin-bottom: 16px;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.meta-value {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.highlight-green {
    color: var(--accent-green);
}

.download-actions {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    width: 100%;
    padding: 16px;
    font-size: 15px;
}

.security-check {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-check a {
    color: var(--accent-blue);
}

.action-links {
    display: flex;
    padding: 16px 20px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}

.action-link:hover {
    color: var(--text-primary);
}

.action-link.align-right {
    justify-content: flex-end;
}

.post-stats {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-val {
    color: var(--accent-blue);
}
