/* ========================================
   SLOTS LOBBY STYLES
   ======================================== */

/* Slots Lobby Container */
.slots-lobby {
    padding-bottom: 80px;
}

/* ========================================
   PROVIDER NAVIGATION
   ======================================== */

.provider-nav-wrapper {
    background: #fff;
    padding: 0;
}

.provider-nav {
    display: flex;
    gap: 12px;
    padding: 15px;
    /* overflow-x: auto; */
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.provider-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Provider Tab Buttons */
.provider-tab {
    flex: 0 0 auto;
    min-width: 100px;
    height: 70px;
    background: rgb(253 255 255 / 5%);
    border: 1px solid rgb(18 18 18 / 10%);
    border-radius: 12px;
    padding: 8px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}




.provider-tab img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.8) grayscale(0.3);
    transition: all 0.3s ease;
}

.provider-tab span {
    font-size: 14px;
    font-weight: 600;
    color: rgb(0 0 0 / 70%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Active Provider Tab */
.provider-tab.active {
    background: #0176bb !important;
    border-color: #0176bb !important;
}

.provider-tab.active img {
    filter: brightness(1) grayscale(0) !important;
}

.provider-tab.active span {
    color: #ffffff !important;
    font-weight: 700;
}

/* Ensure only one active state */
.provider-nav .provider-tab:not(.active) {
    background: rgb(253 255 255 / 5%);
    border-color: rgb(18 18 18 / 10%);
}

/* Hover Effect */
.provider-tab:hover {background: #0176bb;}

.provider-tab:active {
    transform: scale(0.98);
}

/* ========================================
   GAME GRID
   ======================================== */

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 15px;
}

/* Game Item */
.game-item {
    position: relative;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Game Card */
.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}



.game-card:hover::before {
    opacity: 1;
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-4px);
}

/* Game Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

/* Play Button */
.btn-play {
    background: linear-gradient(to bottom,  #00aaff 0%,#4c55f8 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-play i {
    font-size: 20px;
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-play:active {
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Small Mobile Devices (320px - 374px) */
@media (max-width: 374px) {
    .provider-tab {
        min-width: 85px;
        height: 60px;
    }
    
    .game-grid {
        gap: 10px;
        padding: 15px 10px;
    }
    
    .btn-play {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Medium Mobile Devices (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
    .provider-tab {
        min-width: 95px;
        height: 65px;
    }
    
    .game-grid {
        gap: 12px;
    }
}

/* Large Mobile Devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .provider-tab {
        min-width: 110px;
        height: 75px;
    }
    
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Tablet Devices (768px and up) */
@media (min-width: 768px) {
    .provider-nav-wrapper {
        padding: 20px 0;
    }
    
    .provider-nav {
        padding: 0 30px;
        gap: 15px;
    }
    
    .provider-tab {
        min-width: 120px;
        height: 80px;
    }
    
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 30px;
    }
    
    .btn-play {
        padding: 14px 28px;
        font-size: 18px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */

.game-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.provider-tab:focus,
.btn-play:focus {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .provider-tab,
    .game-card,
    .game-card img,
    .game-overlay,
    .btn-play {
        transition: none;
    }
    
    .game-item {
        animation: none;
    }
}

/* ========================================
   EMPTY STATE
   ======================================== */

.game-grid:empty::after {
    content: 'No games available for this provider';
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 500;
}

