/* Game Page Styles */

.game-container {
    padding: 120px 0 80px;
}

.game-header {
    font-size: 42px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 10px var(--primary-glow);
    position: relative;
}

.game-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.game-frame-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--corner-radius);
    padding: 4px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.game-frame-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary), transparent 30%, transparent 70%, var(--secondary));
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.game-iframe {
    position: relative;
    z-index: 1;
    background: #000;
    transition: opacity 0.5s ease;
}

.game-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(5, 8, 18, 0.9);
    z-index: 2;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.game-info {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.game-description, .game-controls {
    flex: 1;
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--corner-radius);
    position: relative;
    overflow: hidden;
}

.game-description::before, .game-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.game-description h2, .game-controls h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.game-description p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.game-controls ul {
    list-style: none;
}

.game-controls li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.control-key {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    margin-right: 10px;
    min-width: 35px;
    text-align: center;
}

.game-navigation {
    display: flex;
    justify-content: center;
}

.back-button {
    position: relative;
    padding: 12px 30px;
    background: var(--bg-card);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 16px;
    border: 2px solid var(--primary);
    border-radius: var(--corner-radius);
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, background 0.3s ease;
}

.back-button:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Responsive styles */
@media (max-width: 991px) {
    .game-iframe {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .game-header {
        font-size: 32px;
    }
    
    .game-iframe {
        height: 400px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .game-iframe {
        height: 300px;
    }
}