/**
 * Help Center Index Styles — Stripe Design System
 */

/* ── Layout ───────────────────────────────────────────── */

.help-index-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--stripe-space-8) var(--stripe-space-6);
}

@media (max-width: 768px) {
    .help-index-container {
        padding: var(--stripe-space-6) var(--stripe-space-4);
    }
}

/* ── Hero ─────────────────────────────────────────────── */

.help-index-hero {
    text-align: center;
    padding: var(--stripe-space-12) 0 var(--stripe-space-10);
    border-bottom: 1px solid var(--stripe-border-light);
    margin-bottom: var(--stripe-space-10);
}

@media (max-width: 768px) {
    .help-index-hero {
        padding: var(--stripe-space-8) 0;
    }
}

.help-index-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: rgba(99, 91, 255, 0.08);
    border-radius: var(--stripe-radius-lg);
    color: var(--stripe-primary);
    font-size: 1.5rem;
    margin-bottom: var(--stripe-space-5);
}

.help-index-title {
    font-size: var(--stripe-fs-3xl);
    font-weight: var(--stripe-fw-bold);
    line-height: var(--stripe-lh-tight);
    color: var(--stripe-text-primary);
    margin: 0 0 var(--stripe-space-3) 0;
}

@media (max-width: 768px) {
    .help-index-title {
        font-size: var(--stripe-fs-2xl);
    }
}

.help-index-subtitle {
    font-size: var(--stripe-fs-lg);
    color: var(--stripe-text-secondary);
    line-height: var(--stripe-lh-relaxed);
    max-width: 480px;
    margin: 0 auto;
}

/* ── Category Section ─────────────────────────────────── */

.help-index-section {
    margin-bottom: var(--stripe-space-10);
}

.help-section-header {
    display: flex;
    align-items: center;
    gap: var(--stripe-space-3);
    margin-bottom: var(--stripe-space-4);
    padding-bottom: var(--stripe-space-3);
    border-bottom: 1px solid var(--stripe-border-light);
}

.help-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(99, 91, 255, 0.08);
    border-radius: var(--stripe-radius-md);
    color: var(--stripe-primary);
    font-size: var(--stripe-fs-sm);
    flex-shrink: 0;
}

.help-section-title {
    font-size: var(--stripe-fs-xl);
    font-weight: var(--stripe-fw-semibold);
    color: var(--stripe-text-primary);
    margin: 0;
    flex: 1;
}

.help-section-count {
    font-size: var(--stripe-fs-sm);
    color: var(--stripe-text-tertiary);
    font-weight: var(--stripe-fw-medium);
    white-space: nowrap;
}

/* ── Article Grid ─────────────────────────────────────── */

.help-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--stripe-space-3);
}

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

/* ── Article Card ─────────────────────────────────────── */

.help-article-card {
    display: flex;
    align-items: center;
    gap: var(--stripe-space-3);
    padding: var(--stripe-space-4);
    background-color: var(--stripe-bg-primary);
    border: 1px solid var(--stripe-border-light);
    border-radius: var(--stripe-radius-md);
    text-decoration: none;
    transition: border-color var(--stripe-transition-fast),
                box-shadow var(--stripe-transition-fast),
                transform var(--stripe-transition-fast);
}

.help-article-card:hover {
    border-color: var(--stripe-border-medium);
    box-shadow: var(--stripe-shadow-sm);
    transform: translateY(-1px);
}

.help-article-card-content {
    flex: 1;
    min-width: 0;
}

.help-article-card-title {
    font-size: var(--stripe-fs-base);
    font-weight: var(--stripe-fw-semibold);
    color: var(--stripe-text-primary);
    margin: 0 0 var(--stripe-space-1) 0;
    line-height: var(--stripe-lh-snug);
}

.help-article-card-desc {
    font-size: var(--stripe-fs-sm);
    color: var(--stripe-text-secondary);
    margin: 0;
    line-height: var(--stripe-lh-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.help-article-card-arrow {
    color: var(--stripe-text-tertiary);
    font-size: var(--stripe-fs-sm);
    flex-shrink: 0;
    transition: color var(--stripe-transition-fast),
                transform var(--stripe-transition-fast);
}

.help-article-card:hover .help-article-card-arrow {
    color: var(--stripe-primary);
    transform: translateX(2px);
}

/* ── Empty State ──────────────────────────────────────── */

.help-index-empty {
    text-align: center;
    padding: var(--stripe-space-16) 0;
    color: var(--stripe-text-tertiary);
}

.help-index-empty p {
    margin-top: var(--stripe-space-4);
    font-size: var(--stripe-fs-lg);
}
