/* Featured / catalog */
.badge-featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
}
.card-game.is-featured-card {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 12px 40px rgba(0,0,0,0.25);
}
.games-grid-featured {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Catalog Hero Badges & Quick Stats */
.catalog-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.catalog-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #cbd5e1);
    backdrop-filter: blur(8px);
}
.catalog-badge-pill strong {
    color: #38bdf8;
    font-weight: 700;
}

/* Toolbar & Controls */
.catalog-toolbar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    background: var(--glass, rgba(15, 23, 42, 0.65));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.catalog-search-box {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
    display: flex;
    align-items: center;
}
.catalog-search-box .search-icon {
    position: absolute;
    left: 0.85rem;
    font-size: 0.95rem;
    color: var(--muted, #94a3b8);
    pointer-events: none;
}
.catalog-search-input {
    width: 100%;
    padding: 0.55rem 2.25rem 0.55rem 2.35rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.catalog-search-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: rgba(0, 0, 0, 0.55);
}
.catalog-search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s ease;
}
.catalog-search-clear:hover {
    color: #fff;
}

.catalog-count {
    font-size: 0.9rem;
    color: var(--muted, #94a3b8);
}
.catalog-count strong {
    color: #fff;
    font-weight: 700;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.catalog-sort label {
    font-size: 0.82rem;
    color: var(--muted, #94a3b8);
    font-weight: 600;
}
.catalog-sort select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.catalog-sort select:focus {
    border-color: #38bdf8;
    outline: none;
}

/* Category Filter Tabs */
.catalog-tabs-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
.game-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-filter-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.18);
}
.game-filter-tab.is-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.15));
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}
.game-filter-tab .tab-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Catalog Groups */
.catalog-group { margin-bottom: 2.5rem; }
.catalog-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}
.catalog-group-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #f8fafc;
}
.catalog-group-header .group-count {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
}

/* Card Casino enhancements */
.card-casino {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.card-casino::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    opacity: 0.7;
}
.card-casino:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.15);
}
.card-casino-body {
    margin-bottom: 1.25rem;
}
.game-icon-lg {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.card-casino-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #f8fafc;
}
.card-casino-body .meta {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}
.card-casino-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.casino-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
}

/* Game Card dual actions: Play + View */
.game-card-actions {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.15rem;
}
.game-card-actions .game-card-play {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}
.game-card-actions .game-card-view {
    flex: 0 0 auto;
    min-width: 3.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.game-card-actions .btn-block {
    width: 100%;
}

/* Hidden items class for filtering */
.game-card-item {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.game-card-item.is-hidden {
    display: none !important;
}

/* Empty search result state */
.catalog-no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    margin-top: 1rem;
}
.catalog-no-results .no-results-icon {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}
.catalog-no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}
.catalog-no-results p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

/* HOME MOBILE FIX catalog */
@media (max-width: 720px) {
    .games-grid-featured {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }
    .catalog-group-header h2 {
        font-size: 1rem;
    }
}
