/**
 * AlertOwl — Help Center Styles
 * Uses the same design tokens as auth.css / dashboard.css
 */

/* Override auth.css black (#0a0a0b) → landing page navy (#0c1128) */
body {
    background-color: #0c1128;
    --bg-primary: #0c1128;
    --bg-secondary: #131a33;
    --bg-tertiary: #1a2340;
}

/* ── Header ── */
.help-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 17, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.help-header .logo {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.help-header .logo:hover {
    text-decoration: none;
    opacity: 0.85;
}

.help-header-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.help-header .header-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.help-header .header-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.help-header .header-links a:hover {
    color: var(--accent-teal);
}

.help-header .header-links .btn-get-started {
    padding: 8px 20px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    transition: opacity 0.2s;
}

.help-header .header-links .btn-get-started:hover {
    opacity: 0.9;
    color: #fff;
}

/* ── Main ── */
.help-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ── Hero ── */
.help-hero {
    text-align: center;
    margin-bottom: 48px;
}

.help-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.help-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ── Section nav pills (sticky) ── */
.section-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 57px; /* below the header */
    z-index: 90;
    padding: 14px 0;
    background: rgba(12, 17, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.2s;
}

.section-nav.stuck {
    box-shadow: 0 1px 0 0 var(--border);
}

.section-nav a {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.section-nav a:hover {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
    text-decoration: none;
}

.section-nav a.active {
    color: #fff;
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

/* ── Sections ── */
.help-section {
    margin-bottom: 56px;
    scroll-margin-top: 130px; /* header 57px + section-nav ~55px + padding */
}

.help-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.help-section .section-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

/* ── Steps ── */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-step {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.help-step:hover {
    border-color: var(--border-light);
}

.help-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-step-num.emoji {
    background: var(--bg-tertiary);
    font-size: 18px;
}

.help-step-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.help-step-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.help-step-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-teal);
}

/* ── Info cards ── */
.help-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.help-info-card {
    padding: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.help-info-card:hover {
    border-color: var(--border-light);
}

.help-info-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-info-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* ── FAQ ── */
.help-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}

.help-faq-item:hover {
    border-color: var(--border-light);
}

.help-faq-q {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
    user-select: none;
    gap: 12px;
}

.help-faq-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s;
}

.help-faq-item.open .help-faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-teal);
}

.help-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.help-faq-item.open .help-faq-a {
    max-height: 500px;
}

.help-faq-a-inner {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Contact ── */
.help-contact {
    text-align: center;
    padding: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.help-contact h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.help-contact p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 18px;
}

.help-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
}

.help-contact-btn:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

/* ── Footer ── */
.help-footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.help-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.help-footer a:hover {
    color: var(--accent-teal);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .help-hero h1 { font-size: 1.5rem; }
    .help-info-grid { grid-template-columns: 1fr; }
    .help-step { flex-direction: column; gap: 12px; }
    .help-header .header-links { gap: 14px; }
    .section-nav { gap: 6px; }
    .section-nav a { padding: 6px 14px; font-size: 13px; }
}
