/* Dark Empires — Help Center page */

body.help-page {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(99,102,241,0.08), transparent 60%),
        radial-gradient(900px 600px at 110% 5%, rgba(236,72,153,0.06), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

[data-theme="dark"] body.help-page {
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(99,102,241,0.15), transparent 60%),
        radial-gradient(900px 600px at 110% 5%, rgba(236,72,153,0.12), transparent 55%),
        #0f172a;
}

/* Container */
.help-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.help-hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    padding: 2rem 0.75rem;
    text-align: center;
    border-radius: 16px;
    margin: 1rem 0;
    animation: fadeIn 0.5s ease-out;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(99,102,241,0.3);
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

[data-theme="dark"] .help-hero {
    background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.2), rgba(15,23,42,0.4));
    border: 1px solid rgba(99,102,241,0.35);
    box-shadow: 0 10px 30px -10px rgba(99,102,241,0.4);
}

.help-hero h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.help-hero p {
    font-size: 0.85rem;
    color: var(--subtext);
    max-width: 500px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    margin: 1rem 0;
}

.contact-info {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .contact-info {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.25);
}

.contact-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.contact-info p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--subtext);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .contact-info p {
    color: var(--subtext);
}

.contact-info i {
    font-size: 1rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.contact-info a {
    font-weight: 500;
    color: var(--primary);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-hover);
}

/* Help Center */
.help-center {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .help-center {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.25);
}

.help-center h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

[data-theme="dark"] .help-center h2 {
    color: var(--text);
}

.faq-category {
    margin-bottom: 1.5rem;
}

.faq-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .faq-item {
    border-bottom-color: rgba(99, 102, 241, 0.25);
}

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

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

[data-theme="dark"] .faq-question {
    color: var(--text);
}

.faq-question:hover {
    background: var(--bg-light);
    transform: translateX(4px);
}

[data-theme="dark"] .faq-question:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(4px);
}

.faq-question i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--subtext);
}

[data-theme="dark"] .faq-question i {
    color: var(--subtext);
}

.faq-answer {
    display: none;
    padding: 0.5rem 0 0.5rem 1.75rem;
    font-size: 0.8rem;
    color: var(--subtext);
}

[data-theme="dark"] .faq-answer {
    color: var(--subtext);
}

.faq-answer.show {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile-First Responsive Styles */
@media (min-width: 768px) {
    .help-hero {
        padding: 2.5rem 1rem;
        margin: 1.5rem 0;
    }

    .help-hero h1 {
        font-size: 1.75rem;
    }

    .help-hero p {
        font-size: 0.95rem;
    }

    .contact-info {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .contact-info h3 {
        font-size: 1.1rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    .contact-info i {
        font-size: 1.25rem;
        width: 24px;
    }

    .help-center {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .help-center h2 {
        font-size: 1.5rem;
    }

    .faq-category h3 {
        font-size: 1.1rem;
    }

    .faq-question {
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .faq-question i {
        font-size: 1.25rem;
        width: 24px;
    }

    .faq-answer {
        font-size: 0.85rem;
        padding: 0.75rem 0 0.75rem 2rem;
    }
}

@media (min-width: 1024px) {
    .help-container {
        padding: 0 1.5rem;
    }

    .help-hero {
        padding: 3rem 1.5rem;
        margin: 2rem 0;
    }

    .help-hero h1 {
        font-size: 2rem;
    }

    .help-hero p {
        font-size: 1rem;
    }

    .contact-info {
        padding: 2rem;
        margin: 2rem 0;
    }

    .contact-info h3 {
        font-size: 1.25rem;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .help-center {
        padding: 2rem;
        margin: 2rem 0;
    }

    .help-center h2 {
        font-size: 1.75rem;
    }

    .faq-category h3 {
        font-size: 1.25rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
}
