/**
 * Shared Sports / Trading / Casino — top section nav + promo banner carousel.
 * Keep dimensions identical across index (sports), cassino, and trading.
 */

.main-nav {
    background: var(--bg-darker, #0f212e);
    border-bottom: 1px solid var(--bg-hover, #2f4553);
    position: sticky;
    top: 60px;
    z-index: 100;
    padding: 0;
}

.nav-container {
    max-width: 1560px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 20px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: var(--text-secondary, #b1bad3);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--text-primary, #fff);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--text-primary, #fff);
    border-bottom-color: var(--accent-green, #00e701);
}

.nav-link i {
    font-size: 16px;
    flex-shrink: 0;
}

.nav-link .nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.banner-carousel-container {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1560px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 35%;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-indicator.active {
    background: var(--accent-green, #00e701);
    width: 30px;
    border-radius: 5px;
}

body.trading-page-body .trading-terminal {
    min-height: calc(100dvh - 108px);
}

@media (max-width: 768px) {
    .banner-carousel-container {
        margin: 15px 0;
        border-radius: 0;
        width: 100%;
        max-width: 100vw;
    }

    .banner-carousel {
        padding-bottom: 50%;
    }

    .banner-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .banner-indicator {
        width: 8px;
        height: 8px;
    }

    .banner-indicator.active {
        width: 24px;
    }

    .banner-slide img {
        object-fit: contain;
    }

    .nav-container {
        padding: 0 10px;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .nav-link .nav-icon {
        width: 15px;
        height: 15px;
    }
}
