/* ====================================
   GAMES PAGE STYLES
   ==================================== */

/* --- Page Header --- */
.page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xxl) 2rem var(--spacing-xl) 2rem;
}

.header-content {
    max-width: 800px;
}

.header-tags {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1.5px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Filters Section --- */
.filters-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem var(--spacing-lg) 2rem;
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-group label,
.sort-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-group select {
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.sort-group select:focus {
    outline: none;
    border-color: var(--border-hover);
}

/* --- Games Grid --- */
.games-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

/* --- Game Cards --- */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.game-card.hidden {
    display: none;
}

/* Game Image */
.game-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5/7;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-status {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.4rem 1rem;
    background: rgba(255, 0, 85, 0.9);
    border: 1px solid rgba(255, 0, 85, 1);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.game-status.prototype {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.game-status.available {
    background: rgba(0, 255, 136, 0.9);
    border-color: rgba(0, 255, 136, 1);
    color: #000;
}

/* Game Info */
.game-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.game-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

/* Game Meta */
.game-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-icon {
    font-size: 1rem;
}

/* Game Tags */
.game-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

/* Game Actions */
.game-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.game-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
}

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

/* --- Philosophy Section --- */
.philosophy-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xxl) 2rem;
}

.philosophy-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.philosophy-card {
    text-align: center;
    padding: var(--spacing-md);
}

.philosophy-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.philosophy-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group,
    .sort-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}
