/* ========================================
   SLOTS LOBBY - PREMIUM REDESIGN
   ======================================== */

.slots-lobby-page {
    padding: 24px var(--content-padding);
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.lobby-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.lobby-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.lobby-title h1 {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #9eb1bd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lobby-title h1 i {
    -webkit-text-fill-color: var(--accent-blue);
    font-size: 32px;
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-bar-lobby {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-element-primary);
    border-radius: 8px;
    padding: 12px 16px;
    width: 280px;
    transition: background-color 0.2s;
}

.search-bar-lobby:focus-within {
    background-color: var(--bg-element-secondary);
}

.search-bar-lobby i {
    font-size: 18px;
    color: var(--text-secondary);
}

.search-bar-lobby input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
}

.search-bar-lobby input::placeholder {
    color: var(--text-secondary);
}

/* ========================================
   PROVIDERS LIST - FLEX WRAP
   ======================================== */
.providers-container {
    width: 100%;
}

.providers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(145deg, #1a3347 0%, #152c3f 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.provider-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1a64fc 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.provider-chip span {
    position: relative;
    z-index: 1;
}

.provider-count {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.provider-chip.active .provider-count {
    background-color: rgba(255, 255, 255, 0.2);
}

.provider-chip:hover {
    border-color: rgba(46, 155, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.provider-chip.active {
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(46, 155, 255, 0.35);
}

.provider-chip.active::before {
    opacity: 1;
}

.provider-chip i {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Scroll - clean without fade indicators */

/* ========================================
   GAMES GRID
   ======================================== */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* ========================================
   GAME CARD - PREMIUM STYLE
   ======================================== */
.game-card-lobby {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #1a3347 0%, #0d1f2d 100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.game-card-lobby.hidden {
    display: none;
}

.game-card-lobby::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card-lobby:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(46, 155, 255, 0.15);
    z-index: 10;
}

.game-card-lobby:hover::before {
    opacity: 1;
}

.game-card-lobby img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card-lobby:hover img {
    transform: scale(1.1);
}

/* Game Overlay */
.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.35s ease;
}

.game-card-lobby:hover .game-overlay {
    opacity: 1;
}

.game-overlay i {
    font-size: 56px;
    color: #ffffff;
    transform: scale(0.7) translateY(10px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 20px rgba(46, 155, 255, 0.5));
}

.game-card-lobby:hover .game-overlay i {
    transform: scale(1) translateY(0);
}

/* Play button glow effect */
.game-overlay i::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(46, 155, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* ========================================
   NO RESULTS MESSAGE
   ======================================== */
.no-results-message {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.no-results-message.hidden {
    display: none;
}

.no-results-message i {
    font-size: 80px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1a64fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
}

.no-results-message h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results-message p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   LOADING SKELETON (bonus)
   ======================================== */
.game-card-skeleton {
    background: linear-gradient(145deg, #1a3347 0%, #0d1f2d 100%);
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
}

.game-card-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .slots-lobby-page {
        padding: 20px 16px;
    }

    .lobby-title h1 {
        font-size: 24px;
    }

    .search-bar-lobby {
        width: 280px;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 14px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .slots-lobby-page {
        padding: 16px 12px;
        padding-bottom: calc(var(--bottom-nav-height) + 24px);
    }

    .lobby-header {
        gap: 16px;
        margin-bottom: 20px;
    }

    .lobby-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .lobby-title h1 {
        font-size: 22px;
        justify-content: center;
    }

    .lobby-title h1 i {
        font-size: 26px;
    }

    .search-bar-lobby {
        width: 100%;
        padding: 14px 16px;
    }

    /* Providers chips mobile */
    .providers-list {
        gap: 8px;
    }

    .provider-chip {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 30px;
    }

    .provider-chip i {
        font-size: 14px;
    }

    /* Grid mobile */
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .game-card-lobby {
        border-radius: 12px;
        aspect-ratio: 3 / 4;
    }

    .game-overlay i {
        font-size: 36px;
    }

    /* Disable hover effects on mobile */
    .game-card-lobby:hover {
        transform: none;
        box-shadow: none;
    }

    .game-card-lobby:active {
        transform: scale(0.97);
    }

    /* No results mobile */
    .no-results-message {
        padding: 60px 16px;
    }

    .no-results-message i {
        font-size: 60px;
    }

    .no-results-message h3 {
        font-size: 20px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
    .slots-lobby-page {
        padding: 12px 8px;
        padding-bottom: calc(var(--bottom-nav-height) + 20px);
    }

    .lobby-title h1 {
        font-size: 20px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .game-card-lobby {
        border-radius: 10px;
    }

    .provider-chip {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .game-card-lobby:hover {
        transform: none;
        box-shadow: none;
    }

    .game-card-lobby:hover img {
        transform: none;
    }

    .game-card-lobby:hover .game-overlay {
        opacity: 0;
    }

    .game-card-lobby:active .game-overlay {
        opacity: 1;
    }

    .provider-chip:hover {
        transform: none;
        box-shadow: none;
    }

    .provider-chip:active {
        transform: scale(0.97);
    }
}