/* Zypher Play - Game Player Page Styles */

/* Game Player Section */
.game-player {
    padding: 40px 0;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.game-info h1 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.game-info p {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0;
}

.game-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Game Container */
.game-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Game Selector */
.game-selector {
    padding: 40px;
}

.selector-header {
    text-align: center;
    margin-bottom: 40px;
}

.selector-header h2 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.selector-header p {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0;
}

.game-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.game-option {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.game-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4f46e5;
}

.game-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-option:hover::before {
    opacity: 1;
}

.game-option img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

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

.game-option h3 {
    color: #1a1a2e;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.game-option .btn-play {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.game-option .btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
    text-decoration: none;
}

/* Game Frame */
.game-frame {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    min-height: 600px;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* No Game Selected */
.no-game-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: #f8fafc;
    border-radius: 20px;
}

.no-game-content {
    text-align: center;
    max-width: 400px;
}

.no-game-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.no-game-content h2 {
    color: #1a1a2e;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-game-content p {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.game-overlay-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    background: rgba(0, 0, 0, 0.8);
    padding: 16px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    .game-controls {
        justify-content: center;
    }
    
    .game-options {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .game-player {
        padding: 30px 0;
    }
    
    .game-header {
        margin-bottom: 30px;
    }
    
    .game-info h1 {
        font-size: 2rem;
    }
    
    .game-info p {
        font-size: 1rem;
    }
    
    .game-selector {
        padding: 30px 20px;
    }
    
    .selector-header h2 {
        font-size: 1.75rem;
    }
    
    .selector-header p {
        font-size: 1rem;
    }
    
    .game-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .game-option {
        padding: 20px;
    }
    
    .game-option img {
        height: 140px;
    }
    
    .game-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .game-controls .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .game-player {
        padding: 20px 0;
    }
    
    .game-info h1 {
        font-size: 1.75rem;
    }
    
    .game-selector {
        padding: 20px 16px;
    }
    
    .selector-header h2 {
        font-size: 1.5rem;
    }
    
    .game-option {
        padding: 16px;
    }
    
    .game-option img {
        height: 120px;
    }
    
    .game-overlay-controls {
        flex-direction: column;
        width: calc(100% - 40px);
        left: 20px;
        transform: none;
        border-radius: 16px;
    }
}

/* Animation Classes */
.game-option {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.game-frame.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.game-frame.loading::after {
    content: 'Loading game...';
    color: #64748b;
    font-size: 1.125rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a2e;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #059669;
}

.notification-error {
    background: #dc2626;
}

.notification-info {
    background: #2563eb;
}
