/* Games Page */

/* Games Hero */
.games-hero {
    background: #0099CC !important;
    padding: 60px 40px 50px !important;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.games-hero-inner {
    position: relative;
    z-index: 2;
}

.games-hero h1 {
    color: #2C3E50 !important;
    font-size: 42px;
    font-weight: 700;
}

.games-hero-deco {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
}

.deco-card {
    position: absolute;
    width: 80px;
    height: 110px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transform: rotate(-5deg);
    animation: floatCard 4s ease-in-out infinite;
}

.deco-card:nth-child(2) {
    animation-delay: 1.5s;
    transform: rotate(3deg);
}

.deco-card:nth-child(3) {
    animation-delay: 3s;
    transform: rotate(-8deg);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

/* Filter Bar */
.filter-bar {
    background: #ffffff;
    padding: 25px 40px;
    border-bottom: 1px solid #eee;
}

.filter-bar-inner {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-chip {
    background: none;
    border: none;
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    color: #888;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
}

.filter-chip:hover { color: #0099CC; }
.filter-chip.active { color: #E91E63; font-weight: 600; }

.search-chip {
    border: 1px solid #ddd;
    font-size: 13px;
}

.search-chip:hover {
    border-color: #0099CC;
    color: #0099CC;
}

/* Catalog */
.catalog {
    background: #ffffff;
    padding: 50px 40px;
    min-height: 60vh;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.catalog-card {
    display: block;
    text-align: center;
    transition: transform 0.3s;
    color: inherit;
}

.catalog-card:hover {
    transform: translateY(-8px);
}

.catalog-image {
    aspect-ratio: 3/4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E91E63;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 2;
}

.catalog-emoji {
    font-size: 80px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    transition: transform 0.3s;
}

.catalog-card:hover .catalog-emoji {
    transform: scale(1.1);
}

.catalog-info {
    padding: 18px 10px 10px;
}

.tag {
    color: #E91E63;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
}

.catalog-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
    margin: 6px 0 4px;
}

.catalog-info p {
    color: #888;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .games-hero {
        padding: 35px 16px 30px !important;
        min-height: auto;
    }

    .games-hero h1 {
        font-size: 30px !important;
    }

    .games-hero-deco {
        display: none;
    }

    .filter-bar {
        padding: 18px 16px;
    }

    .filter-bar-inner {
        gap: 8px;
    }

    .filter-chip {
        font-size: 13px;
        padding: 8px 14px;
    }

    .catalog {
        padding: 30px 16px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .catalog-emoji {
        font-size: 55px;
    }

    .catalog-info {
        padding: 12px 5px 8px;
    }

    .catalog-info h3 {
        font-size: 14px;
    }

    .catalog-info p {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .filter-bar-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .catalog-emoji {
        font-size: 45px;
    }
}