/* Game Type Tabs - Elegant Card Style with Carousel */
.game-tabs-section {
    background: transparent;
    padding: 2rem 0 3rem;
    position: relative;
    width: 100%;
}

/* Carousel Container */
.game-tabs-carousel-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 35, 61, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color-transparent-3);
    color: var(--accent-color-transparent-9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

.game-tabs-carousel-container.has-overflow .carousel-btn {
    pointer-events: auto;
}

.carousel-btn:not(:disabled):hover {
    background: var(--accent-color-transparent-2);
    border-color: var(--accent-color-transparent-5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px var(--accent-color-transparent-4);
}

.carousel-btn:disabled {
    opacity: 0 !important;
    cursor: not-allowed;
}

.carousel-btn-prev {
    left: -8px;
}

.carousel-btn-next {
    right: -8px;
}

.carousel-btn i {
    font-size: 1.25rem;
}

.game-tabs-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    flex: 1;
}

.game-tabs-nav {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0.5rem 0;
    justify-content: center;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.game-tabs-nav::-webkit-scrollbar {
    display: none;
}

.game-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    min-height: 120px;
    min-width: 160px;
    flex: 0 0 160px;
    max-width: 200px;
    text-decoration: none;
    background: rgba(31, 35, 61, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Top gradient border */
.game-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 215, 0, 0.5),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Glow effect background */
.game-tab::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(255, 215, 0, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-tab i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-tab span {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    letter-spacing: 0.3px;
    line-height: 1.3;
    min-height: 2.275rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Hover State */
.game-tab:hover {
    background: rgba(40, 45, 75, 0.8);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.game-tab:hover::before {
    opacity: 1;
}

.game-tab:hover::after {
    opacity: 0.5;
}

.game-tab:hover i {
    color: rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

.game-tab:hover span {
    color: rgba(255, 255, 255, 0.85);
}

/* Active State */
.game-tab.active {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.15),
        rgba(197, 161, 0, 0.1)
    );
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.2),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-tab.active::before {
    opacity: 1;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 215, 0, 0.9),
        transparent
    );
}

.game-tab.active::after {
    opacity: 1;
}

.game-tab.active i {
    color: rgb(255, 215, 0);
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.game-tab.active span {
    color: rgb(255, 255, 255);
    font-weight: 600;
}

.game-tab.active:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 30px rgba(255, 215, 0, 0.25),
        0 0 0 1px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


/* Responsive Design */
@media (max-width: 1400px) {
    .game-tab {
        flex: 0 0 150px;
        min-width: 150px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 1200px) {
    .game-tab {
        flex: 0 0 140px;
        min-width: 140px;
        padding: 1.25rem 0.875rem;
    }

    .game-tab i {
        font-size: 1.75rem;
    }

    .game-tab span {
        font-size: 0.8125rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        font-size: 1.125rem;
    }
}

@media (max-width: 992px) {
    .game-tab {
        flex: 0 0 130px;
        min-width: 130px;
    }

    .carousel-btn-prev {
        left: 0;
    }

    .carousel-btn-next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .game-tab {
        flex: 0 0 120px;
        min-width: 120px;
        padding: 1rem 0.75rem;
    }

    .game-tab i {
        font-size: 1.5rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .game-tabs-carousel-container {
        gap: 0.5rem;
    }

    .game-tab {
        flex: 0 0 110px;
        min-width: 110px;
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }

    .game-tab span {
        font-size: 0.75rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .carousel-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .game-tab {
        flex: 0 0 100px;
        min-width: 100px;
        min-height: 100px;
    }

    .game-tabs-nav {
        gap: 0.75rem;
    }
}

@media (max-width: 968px) {
    .game-tabs-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .game-tab {
        padding: 1.25rem 0.875rem;
    }

    .game-tab i {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .game-tabs-section {
        padding: 1.5rem 0 2rem;
    }

    .game-tabs-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .game-tab {
        padding: 1.125rem 0.75rem;
        gap: 0.5rem;
    }

    .game-tab i {
        font-size: 1.375rem;
    }

    .game-tab span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .game-tabs-nav {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .game-tab {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        gap: 0.875rem;
    }

    .game-tab i {
        font-size: 1.25rem;
    }

    .game-tab span {
        text-align: left;
        font-size: 0.8125rem;
    }
}
