/* Game Detail Page Specific Styles */

/* Game Player Section */
.game-player {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.game-player:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.game-iframe-container {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #eee;
}

#gameIframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#gameIframe.focused {
    box-shadow: 0 0 0 3px #ff6b6b;
}

/* Glass overlay */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.5s ease;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.glass-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Play button */
.play-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 3;
    margin-bottom: 20px;
}

.play-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
}

.play-button:active {
    transform: translateY(-1px);
}

/* Fullscreen button */
.fullscreen-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-size: 1.2rem;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.fullscreen-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.fullscreen-button:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Game Info Section */
.game-info-detail {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.game-info-detail:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.game-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.game-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.game-category {
    background: linear-gradient(135deg, #4ecdc4, #1a936f);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.game-rating {
    color: #ffc107;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.game-description h3,
.game-instructions h3,
.game-tags h3 {
    margin: 25px 0 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
}

.game-description h3 i,
.game-instructions h3 i,
.game-tags h3 i {
    font-size: 1.2rem;
    color: #4ecdc4;
}

.game-description p,
.game-instructions p {
    line-height: 1.8;
    color: #666;
    font-size: 1.1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag:hover {
    background: #4ecdc4;
    color: white;
    border-color: #4ecdc4;
    transform: translateY(-2px);
}

/* Game Video Section */
.game-video {
    margin: 40px 0;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-video:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.game-video h2 {
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
}

.game-video h2 i {
    font-size: 1.4rem;
    color: #4ecdc4;
}

.video-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#gameVideo {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    outline: none;
}

/* Recommended Games Section */
.recommended-games {
    margin: 40px 0;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.recommended-games:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.recommended-games h2 {
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
}

.recommended-games h2 i {
    font-size: 1.4rem;
    color: #4ecdc4;
}

/* Recommended Games Grid */
.recommended-games .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Game Card in Recommended Games */
.recommended-games .game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.recommended-games .game-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.recommended-games .game-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.recommended-games .game-card:hover::before {
    transform: scaleX(1);
}

.recommended-games .game-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
    position: relative;
}

.recommended-games .game-card:hover .game-thumbnail {
    transform: scale(1.08);
}

.recommended-games .game-thumbnail::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.recommended-games .game-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.recommended-games .game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-games .game-info p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.recommended-games .play-button {
    display: block;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.recommended-games .play-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.recommended-games .play-button:hover::before {
    left: 100%;
}

.recommended-games .play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.recommended-games .play-button:active {
    transform: translateY(-1px);
}

.recommended-games .play-button i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.8rem;
    }

    .game-iframe-container,
    .video-container {
        height: 300px;
    }



    .game-info-detail,
    .game-video,
    .recommended-games {
        padding: 20px;
    }

    .game-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

   

    .game-iframe-container {
        height: 400px;
    }

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

    .game-info-detail,
    .game-video,
    .recommended-games {
        padding: 15px;
    }

    .game-description h3,
    .game-instructions h3,
    .game-tags h3 {
        font-size: 1.2rem;
    }
}