/* Game-specific styles */

.game-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    padding: 1rem 0;
}

.game-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.back-btn {
    color: #00d4ff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid #00d4ff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #00d4ff;
    color: #0f0f23;
    transform: translateY(-2px);
}

.game-nav h1 {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b35, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b35;
}

.game-main {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    gap: 2rem;
}

.game-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    text-align: center;
}

.game-sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Snake Game Styles */
#snake-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#gameCanvas {
    border: 3px solid #ff6b35;
    border-radius: 10px;
    background: #1a1a3e;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.game-controls {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.game-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #ff6b35, #ff3366);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.6);
    background: linear-gradient(45deg, #ff3366, #ff6b35);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.game-instructions {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: left;
    max-width: 400px;
}

.game-instructions p {
    margin: 0.5rem 0;
    color: #ccc;
}

.game-instructions strong {
    color: #00d4ff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .game-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-main {
        flex-direction: column;
    }
    
    .game-sidebar {
        width: 100%;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
    
    .game-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}