/* ===================================
   Help Center
   =================================== */

.help {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--content-padding) var(--space-2xl);
}

.help__header {
    margin-bottom: var(--space-xl);
}

.help__title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.help__subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ===================================
   Toolbar (search + platform toggle)
   =================================== */

.help__toolbar {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.help__search {
    flex: 1;
    position: relative;
}

.help__search-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
    min-height: 52px;
}

.help__search-input::placeholder {
    color: var(--text-muted);
}

.help__search-input:focus {
    border-color: var(--primary);
}

.help__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.help__platform-toggle {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    flex-shrink: 0;
    min-height: 52px;
    gap: 4px;
}

.help__platform-btn {
    padding: 12px 24px;
    background: none;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.help__platform-btn:hover {
    color: var(--text-secondary);
    background: var(--surface);
}

.help__platform-btn--active {
    background: var(--surface);
    color: var(--text);
    border-color: var(--primary);
    font-weight: 600;
}

@media only screen and (max-width: 600px) {
    .help__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .help__platform-toggle {
        justify-content: center;
    }
}


/* ===================================
   Categories
   =================================== */

.help__category {
    margin-bottom: var(--space-2xl);
}

.help__category-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
}


/* ===================================
   Platform-specific content
   =================================== */

.faq__answer [data-platform] {
    display: none;
}

.faq__answer [data-platform].platform-visible {
    display: block;
}

.faq__answer img {
    max-width: 100%;
}


/* ===================================
   No results
   =================================== */

/* ===================================
   Copy-link icon on FAQ items
   =================================== */

.help .faq__question {
    flex: 1;
}

.faq__copy-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.faq__copy-link svg {
    width: 16px;
    height: 16px;
}

.faq__item:hover .faq__copy-link,
.faq__copy-link:focus-visible {
    opacity: 1;
}

.faq__copy-link:hover {
    color: var(--text);
    background: var(--surface);
}

.faq__copy-link--copied {
    opacity: 1;
    color: var(--primary);
}

@media (hover: none) {
    .faq__copy-link {
        opacity: 1;
    }
}


/* ===================================
   No results
   =================================== */

.help__no-results {
    display: none;
    text-align: center;
    padding: var(--space-2xl) 0;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.help__no-results.visible {
    display: block;
}


