/* Help Center Variables - Dark Premium Theme */
:root {
    --help-bg: var(--bg-main);
    --help-card-bg: var(--card-bg);
    --help-text-main: var(--text-primary);
    --help-text-muted: var(--text-secondary);
    --help-border: var(--border-glass);
    --help-primary: var(--brand-green);
    --help-primary-gradient: var(--gradient-primary);
    --help-shadow: var(--shadow-soft);
    --help-glow: var(--shadow-glow);
}

/* Page Layout */
body {
    background-color: var(--help-bg);
    color: var(--help-text-main);
    background-image: radial-gradient(circle at 50% 0%, #0b1220 0%, #020205 100%);
    min-height: 100vh;
}

.help-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

/* Header Section */
.help-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.help-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--help-text-main);
    letter-spacing: -0.02em;
}

.help-header .subtitle {
    font-size: 1.1rem;
    color: var(--help-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--help-border);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--help-text-main);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--help-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 25px rgba(34, 197, 94, 0.15);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--help-text-muted);
    pointer-events: none;
}

/* Popular Topics Grid */
.popular-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.topic-card {
    background: var(--help-card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--help-border);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--help-shadow);
    backdrop-filter: blur(10px);
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.topic-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-green-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--help-primary);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.topic-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--help-text-main);
}

.topic-card p {
    font-size: 0.9rem;
    color: var(--help-text-muted);
    line-height: 1.4;
}

/* Popular Questions List */
.popular-questions {
    margin-bottom: 3rem;
}

.popular-questions h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--help-text-main);
}

.question-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.question-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--help-text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem;
    background: var(--help-card-bg);
    border-radius: 12px;
    border: 1px solid var(--help-border);
    transition: all 0.2s ease;
}

.question-link:hover {
    border-color: var(--help-primary);
    color: white;
    background: var(--brand-green-soft);
    transform: translateX(5px);
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--help-border);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--help-text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--help-primary);
    color: white;
    background: var(--brand-green-soft);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--help-primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

.faq-item {
    background: var(--help-card-bg);
    border-radius: 16px;
    border: 1px solid var(--help-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--help-shadow);
    border-color: rgba(34, 197, 94, 0.2);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--help-text-main);
    user-select: none;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--help-text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--help-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0 1.5rem;
    color: var(--help-text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.faq-answer ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* Inline Help Tip */
.help-tip {
    margin-top: 1rem;
    background: var(--brand-green-soft);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.help-tip svg {
    color: var(--help-primary);
    flex-shrink: 0;
}

/* Help Resources */
.help-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--help-card-bg);
    border-radius: 16px;
    border: 1px solid var(--help-border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--help-primary);
    transform: translateY(-3px);
    box-shadow: var(--help-shadow);
    background: rgba(255, 255, 255, 0.05);
}

.resource-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--help-text-main);
}

.resource-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--help-text-main);
    margin-bottom: 0.2rem;
}

.resource-info p {
    font-size: 0.85rem;
    color: var(--help-text-muted);
}

/* CTA Section */ /*Update*/
.cta-section {
    background: var(--help-card-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--help-shadow);
    border: 1px solid var(--help-border);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--help-text-main);

}

.cta-section p {
    color: var(--help-text-muted);
    margin-bottom: 2rem;

}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--help-primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--help-text-main);
    border: 1px solid var(--help-border);
    box-shadow: none;
}

.cta-btn.secondary:hover {
    border-color: var(--help-primary);
    color: white;
    background: var(--brand-green-soft);
}

.no-results {
    text-align: center;
    padding: 3rem;
    display: none;
}

.no-results.visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .help-header h1 {
        font-size: 2rem;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        font-weight: 400;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        gap: 0.8rem;
    }

    .cta-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        box-sizing: border-box;
    }

}