/**
 * Games Page Stylesheet
 * 
 * Styling for the dedicated games page with 3D glassmorphism.
 * Features blue and purple gradient theme.
 */

.games-page {
    min-height: 100vh;
    padding: 3rem 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a0a3e 50%, #0a0e27 100%);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.1rem;
    color: #a0aec0;
}

.games-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.search-box {
    padding: 0.9rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 212, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.search-box:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.search-box::placeholder {
    color: #7f8c8d;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease;
    box-shadow: 
        0 8px 32px rgba(0, 212, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-15px);
    border-color: #00d4ff;
    box-shadow: 
        0 20px 50px rgba(0, 212, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}

.game-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    overflow: hidden;
    position: relative;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.game-card-title {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.game-card-description {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #a0aec0;
}

.empty-state i {
    font-size: 4rem;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}

/**
 * File Documentation:
 * Games page stylesheet with 3D glassmorphism design.
 * Features blue and purple gradient theme.
 * Fully responsive for all device sizes.
 */
