/* Game Detail Page Specific Styles */

/* Game Player Section */
.game-player-section {
    background: #000;
    padding: 2rem 0;
    position: relative;
    z-index: 100;
}

.game-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.game-player-header h2 {
    color: white;
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
}

.close-player-btn {
    background: rgba(255, 107, 53, 0.9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-player-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.game-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.game-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.game-detail {
    padding: 3rem 0;
    background: var(--background-color);
}

/* Detail Header */
.game-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.game-category-badge {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Detail Content */
.game-detail-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Media Section */
.game-media-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.game-thumbnail-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-thumbnail-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.game-thumbnail-wrapper:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-thumbnail-wrapper:hover .play-overlay {
    opacity: 1;
}

.play-button-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

.play-button-large:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

/* Tags Section */
.game-tags-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.game-tags-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-tags-section h4 i {
    color: var(--primary-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Info Section */
.game-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.game-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
    font-size: 1rem;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.game-description-box,
.game-instructions-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.game-description-box h3,
.game-instructions-box h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.game-description-box h3 i,
.game-instructions-box h3 i {
    color: var(--primary-color);
}

.game-description-box p,
.game-instructions-box p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

/* Game Actions */
.game-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-large {
    flex: 1;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary.favorited {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    border-color: #ff6b6b;
}

.btn-secondary.favorited:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

/* Related Games */
.related-games {
    padding: 4rem 0;
    background: white;
}

.related-games h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}



/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.video-modal-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Responsive */
@media (max-width: 992px) {
    .game-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-media-section {
        position: static;
    }
    
    .game-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .game-detail-header {
        /* flex-direction: column; */
        gap: 1rem;
    }

    .game-detail-content {
        padding: 1.5rem;
    }

    .game-actions {
        flex-direction: column;
    }

    .game-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-player-section {
        padding: 1rem 0;
    }

    .game-player-header {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .game-player-header h2 {
        font-size: 1.2rem;
        order: 2;
    }

    .close-player-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        order: 1;
    }

    .game-detail {
        padding: 1.5rem 0;
    }

    .game-detail-header {
        /* flex-direction: column; */
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .back-btn {
        width: 50%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .game-category-badge {
        width: 50%;
        text-align: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .game-detail-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        border-radius: 12px;
    }

    .game-media-section {
        position: static;
    }

    .game-thumbnail-wrapper {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .play-button-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .game-tags-section {
        padding: 1rem;
        border-radius: 10px;
    }

    .game-tags-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .tags-container {
        gap: 0.4rem;
    }

    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .game-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .game-meta {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .meta-item {
        font-size: 0.9rem;
    }

    .game-description-box,
    .game-instructions-box {
        padding: 1rem;
        border-radius: 10px;
        border-left: 3px solid var(--primary-color);
    }

    .game-description-box h3,
    .game-instructions-box h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .game-description-box p,
    .game-instructions-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .game-actions {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
        gap: 0.6rem;
    }

    .related-games {
        padding: 2rem 0;
    }

    .related-games h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .video-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .video-modal-content video {
        max-height: 70vh;
    }

    .close-video-modal {
        top: -35px;
        font-size: 1.8rem;
    }
}
