/* Game Manager Frontend Styles */

.game-manager-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.game-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-item h3 {
    margin: 0;
    padding: 20px 20px 10px;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.game-item p {
    margin: 0;
    padding: 0 20px;
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

.game-item p strong {
    color: #2c3e50;
    font-weight: 600;
}

.game-play-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    margin: 15px 20px 20px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.game-play-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.game-play-button:active {
    transform: translateY(0);
}

/* Engine Badge Styles */
.game-item .engine-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 20px 0;
}

.engine-unity {
    background: linear-gradient(135deg, #00a1f1, #0088cc);
}

.engine-godot {
    background: linear-gradient(135deg, #478cbf, #2c5aa0);
}

.engine-construct {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.engine-phaser {
    background: linear-gradient(135deg, #5cb85c, #449d44);
}

.engine-other {
    background: linear-gradient(135deg, #6c757d, #495057);
}

/* Game Thumbnail */
.game-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    opacity: 0.8;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Game Info */
.game-info {
    padding: 15px 20px;
}

.game-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Loading State */
.game-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.game-loading .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Empty State */
.game-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.game-empty h3 {
    color: #495057;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-manager-games {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .game-item {
        margin: 0 10px;
    }
    
    .game-item h3 {
        font-size: 1.2em;
        padding: 15px 15px 8px;
    }
    
    .game-item p {
        padding: 0 15px;
        font-size: 0.9em;
    }
    
    .game-play-button {
        margin: 12px 15px 15px;
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .game-thumbnail {
        height: 150px;
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .game-manager-games {
        margin: 15px 0;
    }
    
    .game-item {
        margin: 0 5px;
    }
    
    .game-item h3 {
        font-size: 1.1em;
        padding: 12px 12px 6px;
    }
    
    .game-item p {
        padding: 0 12px;
        font-size: 0.85em;
    }
    
    .game-play-button {
        margin: 10px 12px 12px;
        padding: 8px 16px;
        font-size: 0.85em;
    }
    
    .game-thumbnail {
        height: 120px;
        font-size: 2em;
    }
}

/* Animation Effects */
.game-item {
    animation: fadeInUp 0.6s ease;
}

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

/* Stagger animation for multiple games */
.game-item:nth-child(1) { animation-delay: 0.1s; }
.game-item:nth-child(2) { animation-delay: 0.2s; }
.game-item:nth-child(3) { animation-delay: 0.3s; }
.game-item:nth-child(4) { animation-delay: 0.4s; }
.game-item:nth-child(5) { animation-delay: 0.5s; }

/* Hover Effects */
.game-item:hover .game-play-button {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.game-item:hover .engine-badge {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Focus States for Accessibility */
.game-play-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .game-play-button {
        display: none;
    }
    
    .game-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 