/* Navigation Menu Fixes - Force horizontal layout */
.main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.main-nav .nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-secondary);
    /* Ensure readable color */
    font-weight: 500;
}

.main-nav .nav-link i {
    font-size: 1.1em;
    margin-bottom: 0 !important;
    /* Remove bottom margin if set by other styles */
    display: inline-block;
}

/* Search Bar Sizing - Fix width to 50% relative to typical container or max 400px */
.search-bar {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px !important;
    /* Force smaller max-width as requested */
    margin: 0 20px;
    width: 50% !important;
    /* Try to respect "half width" request if feasible context */
}

.search-form {
    width: 100%;
}

/* Auth Buttons Fix - Ensure pill shape and horizontal text */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-buttons .btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 16px !important;
    border-radius: 9999px !important;
    /* Fully rounded/pill */
    white-space: nowrap;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
}

/* Header Search Menu (Tencent Style) */
.header-search-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 10px;
    margin-right: 20px;
}

.search-menu-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 60px;
    height: 100%;
    gap: 2px !important;
}

.search-menu-item i {
    font-size: 1.4rem !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.search-menu-item span {
    font-size: 12px !important;
    white-space: nowrap;
    font-weight: 400;
    line-height: 1.2;
}

.search-menu-item:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.search-menu-item:hover span {
    color: #fff !important;
}

/* Mobile specific overrides */
@media (max-width: 768px) {
    .main-nav, .header-search-menu {
        display: none;
        /* Hide main nav on mobile, use sidebar */
    }

    .search-bar {
        display: none;
        /* Often hidden on mobile header or simplified */
    }

    .auth-buttons {
        display: none;
        /* Use sidebar auth on mobile */
    }
}