/* Help Center */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #0a0a0a;
    -webkit-font-smoothing: antialiased;
}

/* Top bar */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #8a8a8a;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.back-link:hover {
    background: #e5e5e5;
    color: #0a0a0a;
}

.top-bar-divider {
    width: 1px;
    height: 16px;
    background: #d9d9d9;
}

.top-bar-title {
    font-size: 16px;
    font-weight: 600;
    color: #8a8a8a;
}

/* Hero */
.help-hero {
    text-align: center;
    padding: 48px 24px 40px;
}

.help-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

/* Search */
.search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b5b5b5;
    pointer-events: none;
}

.search-wrap input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    font-family: inherit;
    color: #0a0a0a;
    background: #f5f5f5;
    border: 1.5px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.15s ease;
}

.search-wrap input:focus {
    background: #fff;
    border-color: #e5e5e5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.search-wrap input::placeholder {
    color: #b5b5b5;
}

/* Content */
.help-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 48px;
}

.category-card {
    padding: 24px;
    border-radius: 14px;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    border: 1.5px solid transparent;
}

.category-card:hover {
    background: #f5f5f5;
    border-color: #e5e5e5;
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #0a0a0a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.category-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 13px;
    color: #8a8a8a;
    line-height: 1.4;
}

/* FAQ sections */
.faq-group {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

.faq-group h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-item {
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.faq-item summary:hover {
    background: #fafafa;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b5b5b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px 16px;
    font-size: 14px;
    color: #8a8a8a;
    line-height: 1.7;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact */
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    transition: background 0.15s ease;
}

.contact-option:hover {
    background: #f5f5f5;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0a0a0a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.contact-option strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 2px;
}

.contact-option p {
    font-size: 13px;
    color: #8a8a8a;
    margin-bottom: 6px;
}

.contact-link {
    font-size: 13px;
    font-weight: 500;
    color: #0a0a0a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-link:hover {
    color: #2a2a2a;
}

/* No results */
.no-results {
    text-align: center;
    padding: 48px 24px;
}

.no-results p {
    font-size: 15px;
    font-weight: 500;
    color: #8a8a8a;
    margin-bottom: 4px;
}

.no-results span {
    font-size: 13px;
    color: #b5b5b5;
}

.no-results a {
    color: #0a0a0a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Footer */
.help-footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
}

.help-footer p {
    font-size: 14px;
    color: #b5b5b5;
}

.help-footer a {
    color: #0a0a0a;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

/* Hidden class for search filtering */
.faq-group.hidden,
.category-card.hidden {
    display: none;
}

.faq-item.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar { padding: 0 20px; }
    .help-hero { padding: 32px 20px 28px; }
    .help-hero h1 { font-size: 26px; }
    .help-content { padding: 0 20px 40px; }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 20px;
    }
}
