/**
 * 导航条组件样式
 * 参考腰部导航菜单样式，适配全局主题
 */

/* 导航条容器 */
.navigation-bar-container {
    width: 100%;
    margin: 8px 0;
    padding: 0 12px;
    background: var(--bg-primary);
    border-top: 1px solid var(--bg-border);
    border-bottom: 1px solid var(--bg-border);
    border-left: none;
    border-right: none;
    border-radius: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    position: relative; /* 为箭头按钮定位提供参考 */
}

/* 极简模式样式 */
body.minimal-style .navigation-bar-container {
    background: var(--bg-primary);
    border-top: 1px solid var(--bg-border);
    border-bottom: 1px solid var(--bg-border);
    border-left: none;
    border-right: none;
    box-shadow: none;
}

/* 导航条显示包装器 - 包含箭头按钮 */
.navigation-display-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 导航条内容包装器 - 80%宽度居中 */
.navigation-bar-wrapper {
    width: 78%; /* 占整体宽度的80% */
    margin: 0 auto; /* 水平居中 */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 内容从左侧开始显示 */
    gap: 0px;
    padding: 8px 0;
    overflow: hidden; /* 隐藏溢出，用箭头控制 */
    white-space: nowrap;
    position: relative; /* 为箭头按钮定位提供参考 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 导航条内容区域 - 实际包含按钮的容器 */
.navigation-content {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 内容从左侧开始对齐 */
    gap: 0px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

/* 隐藏导航条内容滚动条 */
.navigation-content::-webkit-scrollbar {
    display: none;
}

/* 隐藏滚动条 */
.navigation-bar-wrapper::-webkit-scrollbar {
    display: none;
}

/* 导航条文字 - 移除边框样式 */
.nav-bar-text {
    padding: 0px 0px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.nav-bar-text:hover {
    color: var(--link-color);
    background: var(--hover-bg);
}

/* 分隔符 */
.nav-bar-separator {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 0 8px;
    opacity: 0.5;
}

/* 导航条箭头按钮 */
.nav-bar-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 左侧箭头 - 紧贴80%显示区域左侧外部 */
.nav-bar-arrow-left {
    left: 10%; /* 80%区域的左边界 */
    transform: translateX(-100%) translateY(-50%); /* 完全移到80%区域外部 */
}

/* 右侧箭头 - 紧贴80%显示区域右侧外部 */
.nav-bar-arrow-right {
    right: 10%; /* 80%区域的右边界 */
    transform: translateX(100%) translateY(-50%); /* 完全移到80%区域外部 */
}

/* 箭头按钮禁用状态 */
.nav-bar-arrow-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 加载和错误状态 */
.nav-bar-loading,
.nav-bar-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.nav-bar-loading .loading-text,
.nav-bar-error .error-text {
    white-space: nowrap;
}



/* 响应式适配 */
@media (max-width: 768px) {
    .navigation-bar-container {
        padding: 0 8px;
        margin: 6px 0;
    }
    
    .nav-bar-text {
        padding: 5px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .navigation-bar-container {
        padding: 0 6px;
        margin: 4px 0;
    }
    
    .nav-bar-text {
        padding: 4px 8px;
        font-size: 12px;
    }
}