/* Navigation Menu Style Updates — ΩPedia Design Language */
.nav-tabs {
    display: flex;
    list-style: none;
    overflow-x: auto;
    background-color: rgba(17, 17, 32, 0.6);
    border-bottom: 1px solid rgba(123, 47, 255, 0.08);
    position: relative;
    z-index: 10;
    padding: 0 5px;
}

.nav-tabs::after {
    display: none;
}

.nav-tabs .tab {
    padding: 12px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0;
}

.nav-tabs .tab a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    display: block;
}

/* Remove underlines from all links */
.nav-tabs .tab a:hover,
.nav-tabs .tab a:focus,
.nav-tabs .tab.active a {
    text-decoration: none;
}

/* Clean hover effect */
.nav-tabs .tab:hover a {
    color: var(--primary-color);
}

/* Active tab styling */
.nav-tabs .tab.active a {
    color: var(--primary-color);
}

/* Underline animation — clean */
.nav-tabs .tab a::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
    opacity: 0;
    z-index: 2;
}

.nav-tabs .tab:hover a::after {
    transform: scaleX(0.6);
    opacity: 0.5;
}

.nav-tabs .tab.active a::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Main navigation items styling */
.nav-tabs .tab[data-tab="home"] a,
.nav-tabs .tab[data-tab="blocks"] a,
.nav-tabs .tab[data-tab="transactions"] a,
.nav-tabs .tab[data-tab="tokens"] a,
.nav-tabs .tab[data-tab="wallets"] a,
.nav-tabs .tab[data-tab="token-factory"] a,
.nav-tabs .tab[data-tab="smart-contracts"] a,
.nav-tabs .tab[data-tab="network"] a {
    font-weight: 500;
    font-size: 13px;
    position: relative;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

/* Hover effects for main navigation items */
.nav-tabs .tab[data-tab="home"]:hover a,
.nav-tabs .tab[data-tab="blocks"]:hover a,
.nav-tabs .tab[data-tab="transactions"]:hover a,
.nav-tabs .tab[data-tab="tokens"]:hover a,
.nav-tabs .tab[data-tab="wallets"]:hover a,
.nav-tabs .tab[data-tab="token-factory"]:hover a,
.nav-tabs .tab[data-tab="smart-contracts"]:hover a,
.nav-tabs .tab[data-tab="network"]:hover a {
    color: var(--primary-color);
}

/* Active state for main navigation items */
.nav-tabs .tab.active[data-tab="home"] a,
.nav-tabs .tab.active[data-tab="blocks"] a,
.nav-tabs .tab.active[data-tab="transactions"] a,
.nav-tabs .tab.active[data-tab="tokens"] a,
.nav-tabs .tab.active[data-tab="wallets"] a,
.nav-tabs .tab.active[data-tab="token-factory"] a,
.nav-tabs .tab.active[data-tab="smart-contracts"] a,
.nav-tabs .tab.active[data-tab="network"] a {
    color: var(--primary-color);
}

/* Special tab styling for Krvia Pump */
.nav-tabs .tab.special-tab a {
    background: linear-gradient(90deg, #FF3CAC, #784BA0, #2B86C5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    position: relative;
}

.nav-tabs .tab.special-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FF3CAC, #784BA0, #2B86C5);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease;
}

.nav-tabs .tab.special-tab:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Media queries for responsive design */
@media (max-width: 991px) {
    .nav-tabs {
        padding-bottom: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tabs .tab {
        padding: 10px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .nav-tabs .tab[data-tab="home"] a,
    .nav-tabs .tab[data-tab="blockchain"] a,
    .nav-tabs .tab[data-tab="tokens"] a,
    .nav-tabs .tab[data-tab="wallet"] a,
    .nav-tabs .tab[data-tab="data"] a,
    .nav-tabs .tab[data-tab="governance"] a,
    .nav-tabs .tab[data-tab="ecosystem"] a,
    .nav-tabs .tab[data-tab="developers"] a,
    .nav-tabs .tab[data-tab="earn"] a,
    .nav-tabs .tab[data-tab="more"] a,
    .nav-tabs .tab[data-tab="krvia-pump"] a {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .nav-tabs .tab {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .nav-tabs .tab[data-tab="home"] a,
    .nav-tabs .tab[data-tab="blockchain"] a,
    .nav-tabs .tab[data-tab="tokens"] a,
    .nav-tabs .tab[data-tab="wallet"] a,
    .nav-tabs .tab[data-tab="data"] a,
    .nav-tabs .tab[data-tab="governance"] a,
    .nav-tabs .tab[data-tab="ecosystem"] a,
    .nav-tabs .tab[data-tab="developers"] a,
    .nav-tabs .tab[data-tab="earn"] a,
    .nav-tabs .tab[data-tab="more"] a,
    .nav-tabs .tab[data-tab="krvia-pump"] a {
        font-size: 12px;
    }
    
    /* Adjust submenu for mobile */
    .submenu {
        max-width: 100%;
    }
    
    .submenu-tabs {
        flex-direction: column;
    }
}
