/* Mobile-First Help Center Navigation */
.help-center-navigation {
    background-color: #121212;
    width: 100%;
    padding: 16px 0;
    position: relative;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

/* Sticky navigation support */
.help-center-navigation.is-sticky {
    position: fixed;
    top: 32px; /* Default admin bar height */
}

@media screen and (max-width: 782px) {
    .help-center-navigation.is-sticky {
        top: 46px; /* Mobile admin bar height */
    }
}

/* Admin bar adjustments */
.admin-bar .help-center {
    margin-top: 32px; /* Desktop admin bar height */
}

@media screen and (max-width: 782px) {
    .admin-bar .help-center {
        margin-top: 46px; /* Mobile admin bar height */
    }
}

.nav-container {
    padding: 16px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Make sure nav-content has consistent styling */
.nav-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px;
    width: 100% !important;
}

/* Help Center Title Section */
.nav-logo {
    color: var(--chc-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(255, 0, 212, 0.1), rgba(0, 255, 157, 0.1));
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.nav-logo i {
    color: #00ff9d;
    font-size: 20px;
}

.nav-logo span {
    display: none; /* Hide text on mobile */
}

/* Search Section */
.nav-search {
    width: 100% !important;
    position: relative !important;
    max-width: 500px !important;
    display: flex !important;
    align-items: center !important;
}

.chc-search-form {
    width: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 42px !important;
}

/* Consolidated search input styles to resolve conflicts */
.chc-search-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 30px !important;
    padding: 0 12px 0 40px !important;
    width: 100% !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    height: 42px !important;
    line-height: 42px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.chc-search-input:focus {
    outline: none !important;
    border-color: var(--chc-primary, #00ff9d) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.2) !important;
}

.chc-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Consolidated search icon styles to resolve conflicts */
.chc-search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 34% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 16px !important;
    transition: color 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 16px !important;
    width: 16px !important;
    line-height: 1 !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

.chc-search-icon:hover {
    color: var(--chc-primary, #00ff9d) !important;
}

.chc-search-form.focused .chc-search-icon {
    color: var(--chc-primary, #00ff9d) !important;
}

/* Breadcrumbs */
.chc-breadcrumbs {
    padding: 0 16px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chc-breadcrumbs a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.chc-breadcrumbs a:hover {
    color: var(--chc-primary, #00ff9d);
}

.chc-breadcrumbs .separator,
.chc-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.current-page,
.chc-current {
    color: var(--chc-text-light, #fff);
    font-weight: 500;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .help-center-navigation {
        padding: 24px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        gap: 32px;
        padding: 0 24px;
    }

    .nav-logo {
        font-size: 18px;
        padding: 8px 16px;
        background: linear-gradient(45deg, rgba(255, 0, 212, 0.1), rgba(0, 255, 157, 0.1));
        border: 1px solid rgba(0, 255, 157, 0.2);
        border-radius: 8px;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .nav-logo span {
        display: inline; /* Show text on desktop */
    }

    .nav-logo:hover {
        background: rgba(0, 255, 157, 0.15);
    }

    .nav-search {
        max-width: 400px;
    }

    .chc-search-input {
        font-size: 16px !important;
        padding: 0 16px 0 44px !important;
        height: 42px !important;
        line-height: 42px !important;
    }

    .chc-search-icon {
        left: 14px !important;
        font-size: 18px !important;
    }

    .chc-breadcrumbs {
        padding: 16px 24px;
        font-size: 14px;
    }
}

/* Special heading styles */
.chc-item-title,
.chc-category h1,
.chc-category-header h1,
.help-center-navigation h1 {
    font-size: 30px;
    color: var(--chc-text-primary, #ffffff);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav-search {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}
