/* Games Hub Styles */
/* Extends main style.css */

.games-header {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 50% 50% / 20px;
}

.games-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.games-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.game-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-color);
    opacity: 0.5;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.game-thumbnail {
    height: 140px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.game-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.game-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.tag {
    background: var(--secondary-surface);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tag.multi {
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
}

.tag.single {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

/* Coming Soon Overlay */
.game-card.coming-soon {
    opacity: 0.7;
    pointer-events: none;
}

.game-card.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: var(--danger-color);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Specific Game UI */
.game-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

canvas {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    max-width: 100%;
    max-height: 80vh;
}

.game-controls-help {
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.key {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--surface-color);
    font-family: monospace;
    font-weight: bold;
    box-shadow: 0 2px 0 var(--border-color);
}