/**
 * Help Center Styles
 *
 * @package StatusDrift
 */

/* ==========================================================================
   Help Center - Hero Section
   ========================================================================== */

.help-hero {
    text-align: center;
}

.help-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--contrast);
}

.help-hero__subtitle {
    font-size: 1.125rem;
    color: var(--wp--preset--color--secondary);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Help Center - Search
   ========================================================================== */

.help-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.help-search__form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.help-search__input-wrapper {
    flex: 1;
    position: relative;
    height: 52px;
}

.help-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wp--preset--color--secondary);
    pointer-events: none;
}

.help-search__input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: var(--wp--preset--color--contrast);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 52px;
    box-sizing: border-box;
    display: block;
    margin: 0;
}

.help-search__input:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.help-search__input::placeholder {
    color: var(--wp--preset--color--secondary);
}

.help-search__button {
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--wp--preset--color--primary);
    color: white;
    border: 2px solid var(--wp--preset--color--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    margin: 0;
    flex-shrink: 0;
}

.help-search__button:hover {
    background: var(--wp--preset--color--primary-dark, #7c3aed);
    border-color: var(--wp--preset--color--primary-dark, #7c3aed);
}

.help-search__button:active {
    transform: scale(0.98);
}

/* Search Results Dropdown */
.help-search__results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.help-search__results.is-active {
    display: block;
}

.help-search__result-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    background: #ffffff;
}

.help-search__result-item:last-child {
    border-bottom: none;
}

.help-search__result-item:hover {
    background-color: #f9fafb;
}

.help-search__result-title {
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
    margin-bottom: 0.25rem;
    text-align: left;
}

.help-search__result-excerpt {
    font-size: 0.875rem;
    color: var(--wp--preset--color--secondary);
    margin-bottom: 0.25rem;
    text-align: left;
}

.help-search__result-category {
    font-size: 0.75rem;
    color: var(--wp--preset--color--primary);
    font-weight: 500;
    text-align: left;
}

.help-search__no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--wp--preset--color--secondary);
}

/* ==========================================================================
   Help Center - Category Cards
   ========================================================================== */

.help-categories {
    display: grid;
    grid-template-columns: repeat(var(--columns, 2), 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .help-categories {
        grid-template-columns: 1fr;
    }
}

.help-category-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.help-category-card:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.help-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--wp--preset--color--tertiary);
    border-radius: 10px;
    color: var(--wp--preset--color--primary);
    flex-shrink: 0;
}

.help-category-card__icon svg {
    width: 24px;
    height: 24px;
}

.help-category-card__content {
    flex: 1;
    min-width: 0;
}

.help-category-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--wp--preset--color--contrast);
}

.help-category-card__desc {
    font-size: 0.875rem;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.help-category-card__count {
    font-size: 0.75rem;
    color: var(--wp--preset--color--primary);
    font-weight: 500;
}

/* ==========================================================================
   Help Center - Section Titles
   ========================================================================== */

.help-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--contrast);
}

/* ==========================================================================
   Help Center - Popular Articles
   ========================================================================== */

.help-popular__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--contrast);
}

.help-popular__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

@media (max-width: 768px) {
    .help-popular__list {
        grid-template-columns: 1fr;
    }
}

.help-popular__item {
    position: relative;
    padding-left: 1.5rem;
}

.help-popular__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--wp--preset--color--primary);
    border-radius: 50%;
}

.help-popular__item a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.help-popular__item a:hover {
    color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Help Center - Breadcrumbs
   ========================================================================== */

.help-breadcrumbs {
    margin-bottom: 1.5rem;
}

.help-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.help-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-breadcrumbs__item:not(:last-child)::after {
    content: "/";
    color: var(--wp--preset--color--secondary);
}

.help-breadcrumbs__item a {
    color: var(--wp--preset--color--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.help-breadcrumbs__item a:hover {
    color: var(--wp--preset--color--primary);
}

.help-breadcrumbs__item--current span {
    color: var(--wp--preset--color--contrast);
    font-weight: 500;
}

/* ==========================================================================
   Help Center - Article Page
   ========================================================================== */

.help-article-page .help-article-layout {
    gap: 3rem;
}

.help-article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.help-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--wp--preset--color--secondary);
}

.help-article-category a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--wp--preset--color--tertiary);
    color: var(--wp--preset--color--primary);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-article-content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.help-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.help-article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.help-article-content p {
    margin-bottom: 1.25rem;
}

.help-article-content ul,
.help-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.help-article-content li {
    margin-bottom: 0.5rem;
}

.help-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.help-article-content pre {
    background: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875rem;
    margin: 1.5rem 0;
}

.help-article-content code {
    background: var(--wp--preset--color--tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.help-article-content pre code {
    background: transparent;
    padding: 0;
}

/* Info/Warning/Tip boxes */
.help-article-content .wp-block-group.is-style-info,
.help-article-content .info-box {
    background: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.help-article-content .wp-block-group.is-style-warning,
.help-article-content .warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.help-article-content .wp-block-group.is-style-tip,
.help-article-content .tip-box {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

/* ==========================================================================
   Help Center - Article Feedback
   ========================================================================== */

.help-article-feedback {
    text-align: center;
}

.help-feedback-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline;
    margin-right: 1rem;
}

.help-feedback-buttons {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.help-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--wp--preset--color--primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.help-feedback-btn:hover {
    background: var(--wp--preset--color--tertiary);
}

.help-feedback-btn svg {
    width: 18px;
    height: 18px;
}

.help-feedback-btn--yes:hover {
    color: #10b981;
    background: #ecfdf5;
}

.help-feedback-btn--no:hover {
    color: #ef4444;
    background: #fef2f2;
}

.help-feedback-btn.is-selected {
    background: var(--wp--preset--color--primary);
    color: white;
}

.help-feedback-thanks {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ecfdf5;
    border-radius: 6px;
    color: #059669;
    font-weight: 500;
    font-size: 0.9375rem;
}

.help-feedback-thanks p {
    margin: 0;
}

/* ==========================================================================
   Help Center - Sidebar
   ========================================================================== */

.help-article-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.help-sidebar-card {
    margin-bottom: 1.5rem;
}

.help-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--contrast);
}

.help-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-related-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.help-related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.help-related-list a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
}

.help-related-list a:hover {
    color: var(--wp--preset--color--primary);
}

.help-no-related {
    font-size: 0.875rem;
    color: var(--wp--preset--color--secondary);
    margin: 0;
}

/* ==========================================================================
   Help Center - Category Page
   ========================================================================== */

.help-category-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.help-category-desc {
    font-size: 1.125rem;
    color: var(--wp--preset--color--secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Article List */
.help-articles-list {
    display: block;
}

.help-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.help-article-item:hover {
    background-color: var(--wp--preset--color--tertiary);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.help-article-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.help-article-item-title a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
}

.help-article-item-title a:hover {
    color: var(--wp--preset--color--primary);
}

.help-article-item-excerpt {
    font-size: 0.875rem;
    color: var(--wp--preset--color--secondary);
    margin: 0.25rem 0 0;
}

.help-article-arrow {
    color: var(--wp--preset--color--secondary);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.help-article-item:hover .help-article-arrow {
    transform: translateX(4px);
    color: var(--wp--preset--color--primary);
}

/* Back link */
.help-back-link a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    font-weight: 500;
}

.help-back-link a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Help Center - Contact CTA
   ========================================================================== */

.help-contact-cta h3 {
    margin-bottom: 0.5rem;
}

.help-contact-cta p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Help Center - Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
    .help-article-layout {
        flex-direction: column;
    }

    .help-article-main,
    .help-article-sidebar {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .help-article-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .help-search__form {
        flex-direction: column;
        align-items: stretch;
    }

    .help-search__input-wrapper {
        width: 100%;
    }

    .help-search__button {
        width: 100%;
    }

    /* Make sidebar cards full width on mobile */
    .help-category-articles,
    .help-categories-sidebar {
        margin-left: 0;
        margin-right: 0;
    }

    /* Remove padding from sidebar card wrappers on mobile */
    .help-article-sidebar .wp-block-group.help-sidebar-card {
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .help-article-sidebar .help-category-articles {
        padding: 1.25rem;
        background: linear-gradient(135deg, #f8f7ff 0%, #f3f1ff 100%);
        border-radius: 8px;
        margin: 0;
    }

    /* Make sidebar column full width with no extra padding */
    .help-article-sidebar.wp-block-column {
        padding: 0 !important;
    }
}

@media (max-width: 600px) {
    /* Keep feedback buttons horizontal on mobile */
    .help-feedback-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
    }

    .help-feedback-btn {
        flex: none;
        min-width: auto;
        padding: 0.5rem 1.25rem;
        white-space: nowrap;
    }

    .help-article-feedback {
        text-align: center;
    }

    .help-feedback-title {
        display: block;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    /* Related articles grid single column on mobile */
    .help-related-section__grid {
        grid-template-columns: 1fr;
    }

    /* Make sidebar cards match content width */
    .help-category-articles {
        margin: 0;
        border-radius: 8px;
    }
}

/* ==========================================================================
   Help Center - KB Grid (Two-Column with Articles)
   ========================================================================== */

.help-kb-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 2), 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .help-kb-grid {
        grid-template-columns: 1fr;
    }
}

.help-kb-section {
    background: var(--wp--preset--color--base);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-kb-section:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.help-kb-section__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.help-kb-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 10px;
    color: var(--wp--preset--color--primary);
    flex-shrink: 0;
}

.help-kb-section__icon svg {
    width: 22px;
    height: 22px;
}

.help-kb-section__title-wrap {
    flex: 1;
    min-width: 0;
}

.help-kb-section__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.help-kb-section__title a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    transition: color 0.2s ease;
}

.help-kb-section__title a:hover {
    color: var(--wp--preset--color--primary);
}

.help-kb-section__desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.help-kb-section__articles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-kb-section__articles li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f9fafb;
}

.help-kb-section__articles li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.help-kb-section__articles li:first-child {
    padding-top: 0;
}

.help-kb-section__articles a {
    display: flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.15s ease;
    line-height: 1.4;
}

.help-kb-section__articles a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.help-kb-section__articles a:hover {
    color: var(--wp--preset--color--primary);
}

.help-kb-section__articles a:hover::before {
    background: var(--wp--preset--color--primary);
}

.help-kb-section__view-all {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.help-kb-section__view-all:hover {
    opacity: 0.8;
}

.help-kb-section__empty {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
    font-style: italic;
}

/* ==========================================================================
   Help Center - Category Page (Two-Column Layout)
   ========================================================================== */

.help-category-page .help-category-layout {
    gap: 3rem;
}

.help-category-page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.help-category-page-desc {
    font-size: 1rem;
    color: var(--wp--preset--color--secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Simple Article List */
.help-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-article-list__item {
    border-bottom: 1px solid #e5e7eb;
}

.help-article-list__item:last-child {
    border-bottom: none;
}

.help-article-list__item a {
    display: block;
    padding: 1rem 0;
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.help-article-list__item a:hover {
    color: var(--wp--preset--color--primary);
}

.help-article-list__empty {
    color: var(--wp--preset--color--secondary);
    font-style: italic;
}

/* Categories Sidebar */
.help-categories-sidebar {
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f1ff 100%);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.help-categories-sidebar__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--wp--preset--color--contrast);
}

.help-categories-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-categories-sidebar__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.help-categories-sidebar__item:last-child {
    border-bottom: none;
}

.help-categories-sidebar__item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.help-categories-sidebar__item a:hover {
    color: var(--wp--preset--color--primary);
}

.help-categories-sidebar__item--current a {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
}

.help-categories-sidebar__count {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--secondary);
    font-weight: 400;
}

.help-categories-sidebar__item--current .help-categories-sidebar__count {
    color: var(--wp--preset--color--primary);
}

/* Category sidebar sticky positioning */
.help-category-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

/* Contact support button in sidebar - make it purple */
.help-sidebar-contact .wp-block-button.is-style-outline .wp-block-button__link {
    background: var(--wp--preset--color--primary);
    color: white;
    border-color: var(--wp--preset--color--primary);
}

.help-sidebar-contact .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

/* Category Articles in Sidebar */
.help-category-articles {
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f1ff 100%);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.help-category-articles__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--wp--preset--color--contrast);
}

.help-category-articles__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-category-articles__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.help-category-articles__list li:last-child {
    border-bottom: none;
}

.help-category-articles__list a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s ease;
    display: block;
    line-height: 1.4;
}

.help-category-articles__list a:hover {
    color: var(--wp--preset--color--primary);
}

.help-category-articles__view-all {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.help-category-articles__view-all:hover {
    text-decoration: underline;
}

.help-no-articles {
    font-size: 0.875rem;
    color: var(--wp--preset--color--secondary);
    margin: 0;
}

/* Related Articles Section (Bottom of Article) */
.help-related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.help-related-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--wp--preset--color--contrast);
}

.help-related-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .help-related-section__grid {
        grid-template-columns: 1fr;
    }
}

.help-related-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: #f8f7ff;
    border: 1px solid #e9e5ff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.help-related-card:hover {
    background: #ede9fe;
    border-color: #d4c8ff;
    transform: translateY(-2px);
}

.help-related-card__category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp--preset--color--primary);
    margin-bottom: 0.5rem;
}

.help-related-card__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    color: var(--wp--preset--color--contrast);
    line-height: 1.4;
}

/* Responsive adjustments for category page */
@media (max-width: 991px) {
    .help-category-page .help-category-layout,
    .help-search-page .help-category-layout {
        flex-direction: column;
    }

    .help-category-main,
    .help-category-sidebar {
        flex-basis: 100% !important;
    }

    .help-category-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* ==========================================================================
   Help Center - Search Results Page
   ========================================================================== */

.help-search-results-header {
    margin-bottom: 2rem;
}

.help-search-results-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: var(--wp--preset--color--contrast);
}

.help-search-results-count {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Search Results List */
.help-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hide any non-card elements added by wpautop or other filters */
.help-search-results-list > *:not(.help-search-result-card) {
    display: none;
}

/* Search Result Card */
.help-search-result-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--wp--preset--color--base);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.help-search-result-card:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.help-search-result-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 10px;
    color: var(--wp--preset--color--primary);
    flex-shrink: 0;
}

.help-search-result-card__icon svg {
    width: 24px;
    height: 24px;
}

.help-search-result-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.help-search-result-card__category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp--preset--color--primary);
    background: var(--wp--preset--color--tertiary);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.help-search-result-card__title {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--wp--preset--color--contrast);
    line-height: 1.4;
    transition: color 0.15s ease;
}

.help-search-result-card:hover .help-search-result-card__title {
    color: var(--wp--preset--color--primary);
}

.help-search-result-card__excerpt {
    display: block;
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.help-search-result-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    flex-shrink: 0;
    transition: all 0.2s ease;
    align-self: center;
}

.help-search-result-card:hover .help-search-result-card__arrow {
    color: var(--wp--preset--color--primary);
    transform: translateX(4px);
}

/* Search Highlight */
.help-search-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: inherit;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-weight: inherit;
}

/* Mobile adjustments for search results */
@media (max-width: 600px) {
    .help-search-result-card {
        padding: 1rem;
    }

    .help-search-result-card__icon {
        width: 40px;
        height: 40px;
    }

    .help-search-result-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .help-search-result-card__arrow {
        display: none;
    }
}

/* No Results State */
.help-search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f1ff 100%);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
}

.help-search-no-results__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.help-search-no-results__icon svg {
    width: 40px;
    height: 40px;
}

.help-search-no-results__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--wp--preset--color--contrast);
}

.help-search-no-results__text {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
