/**
 * Help Center home page only (/help/index.html) — hero, search, category cards, article index.
 */

.help-hero {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none"/><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.4;
}

.help-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    position: relative;
}

.help-hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.search-section {
    position: relative;
    z-index: 10;
    margin-top: -28px;
    padding: 0 24px;
}

.search-wrap {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 52px;
    font-size: 17px;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: border-color 0.2s;
}

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

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    max-height: 380px;
    overflow-y: auto;
}

.search-results.open {
    display: block;
}

.search-result-item {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item .sr-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.search-result-item .sr-category {
    font-size: 13px;
    color: var(--text-light);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
}

.categories {
    padding: 60px 0 40px;
    background: var(--bg-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.category-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #7cb342 0%, #8bc34a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.category-icon svg {
    width: 26px;
    height: 26px;
}

.category-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-card .cat-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

.category-card .cat-count {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.articles {
    padding: 40px 0 100px;
    background: var(--bg-light);
}

.article-section {
    max-width: 800px;
    margin: 0 auto 48px;
}

.article-section:last-child {
    margin-bottom: 0;
}

.article-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    padding-top: 20px;
}

.articles .article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

.article-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.article-card .arrow {
    flex-shrink: 0;
    color: var(--text-light);
    transition: color 0.2s;
}

.article-card:hover .arrow {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .help-hero h1 {
        font-size: 32px;
    }

    .help-hero p {
        font-size: 17px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

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

    .article-card {
        padding: 16px 20px;
    }

    .article-card h3 {
        font-size: 15px;
    }
}

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