/* stylelint-disable */
/* ============================================================
   REGISTRATION HELP — dashboard / Article meta mint palette
============================================================ */

:root {
    --nfb-help-green: #1a7f4a;
    --nfb-help-green-600: #156b3f;
    --nfb-help-mint: #ecf8f1;
    --nfb-help-mint-warm: #e8f4ee;
    --nfb-help-line: rgba(26, 127, 74, 0.28);
    --nfb-help-bg: #f1f7f4;
    --nfb-help-ink: #0f2133;
    --nfb-help-muted: #5c6d7a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--nfb-help-bg);
}

.nfb-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 50, 60, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 4vw;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nfb-help-modal {
    width: 820px;
    max-width: 90vw;
    max-height: 90vh;
    background: linear-gradient(180deg, #ffffff 0%, var(--nfb-help-mint-warm) 100%);
    border-radius: 20px;
    border: 1px solid var(--nfb-help-line);
    box-shadow: 0 20px 60px rgba(15, 33, 51, 0.12), 0 2px 12px rgba(26, 127, 74, 0.06);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nfb-help-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--nfb-help-line);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, var(--nfb-help-mint) 100%);
}

.nfb-help-header h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nfb-help-green);
    letter-spacing: -0.02em;
}

.nfb-help-header .subtitle {
    font-size: 0.875rem;
    color: var(--nfb-help-muted);
    font-weight: 400;
    margin-top: 0.125rem;
}

.nfb-help-content {
    padding: 1.75rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.nfb-help-content::-webkit-scrollbar {
    width: 8px;
}

.nfb-help-content::-webkit-scrollbar-track {
    background: transparent;
}

.nfb-help-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.nfb-help-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.help-section {
    margin-bottom: 2rem;
}

.help-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--nfb-help-green);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--nfb-help-line);
}

.help-card {
    max-width: 720px;
    background: #ffffff;
    border-radius: 14px;
    padding: 1.125rem 1.25rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 33, 51, 0.08), 0 2px 10px rgba(26, 127, 74, 0.06);
    border-color: var(--nfb-help-line);
}

.help-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--nfb-help-mint) 0%, var(--nfb-help-mint-warm) 100%);
    color: var(--nfb-help-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.help-icon i {
    font-size: 1rem;
    color: inherit;
    display: inline-block;
    line-height: 1;
    width: auto;
    height: auto;
}

.help-icon svg {
    width: 1rem;
    height: 1rem;
    color: inherit;
    display: block;
}

.help-card:hover .help-icon {
    background: linear-gradient(135deg, #d4eedf 0%, #b8e0cc 100%);
    color: var(--nfb-help-green-600);
    transform: scale(1.05);
}

.help-body h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.help-body p {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
}

.help-body p:last-child {
    margin-bottom: 0;
}

.help-shortcuts {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.help-shortcuts .row {
    display: grid;
    grid-template-columns: 140px auto;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.help-shortcuts .row:last-child {
    margin-bottom: 0;
}

.help-shortcuts .os {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.help-shortcuts .keys {
    font-size: 0.8125rem;
    color: #0f172a;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: #ffffff;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: inline-block;
}

.hint {
    opacity: 0.6;
    font-size: 0.75rem;
    margin-left: 0.375rem;
    font-weight: 400;
    font-style: italic;
}

.help-example {
    margin: 0.75rem 0 0 0;
    padding: 0.75rem;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #78350f;
    line-height: 1.6;
}

.help-example strong {
    color: #92400e;
    font-weight: 600;
}

.help-example code {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.8125rem;
}

.tag-preview {
    background: linear-gradient(135deg, var(--nfb-help-mint) 0%, #d4eedf 100%);
    border: 1px solid var(--nfb-help-line);
    color: var(--nfb-help-green-600);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(26, 127, 74, 0.12);
}

.nfb-help-close {
    height: 36px;
    min-width: 80px;
    padding: 0 1rem;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.nfb-help-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.nfb-help-close:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.15);
}

.about {
    opacity: 0.7;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

/* Badge styles */
.required-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.optional-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--nfb-help-mint);
    color: var(--nfb-help-green-600);
    border: 1px solid var(--nfb-help-line);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Benefits List */
.benefits-list {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.benefits-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.6;
    color: #475569;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: -0.5rem;
    color: var(--nfb-help-green);
    font-weight: 700;
}

.benefits-list li strong {
    color: #1e293b;
}

/* Ordered lists in help body */
.numbered-list {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: #475569;
    line-height: 1.6;
    list-style: decimal;
}

.numbered-list li {
    margin-bottom: 0.5rem;
}

.numbered-list li strong {
    color: #1e293b;
}

/* Intro Card */
.intro-card {
    background: linear-gradient(135deg, var(--nfb-help-mint) 0%, #d4eedf 100%);
    border: 2px solid var(--nfb-help-line);
}

.intro-card .help-icon {
    background: linear-gradient(135deg, var(--nfb-help-green) 0%, var(--nfb-help-green-600) 100%);
    color: #ffffff;
}

/* Callout Boxes */
.callout {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid;
    line-height: 1.6;
    font-size: 0.875rem;
}

.callout-note {
    background: var(--nfb-help-mint-warm);
    border-left-color: var(--nfb-help-green);
    color: var(--nfb-help-ink);
}

.callout-note strong {
    color: var(--nfb-help-green-600);
    font-weight: 600;
}

.callout-tip {
    background: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

.callout-tip strong {
    color: #047857;
    font-weight: 600;
}

.callout-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.callout-warning strong {
    color: #78350f;
    font-weight: 600;
}

.callout-important {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.callout-important strong {
    color: #7f1d1d;
    font-weight: 600;
}

.callout-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    color: #78350f;
}

.callout-highlight h4 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-size: 1rem;
}

.callout-update {
    background: var(--nfb-help-mint);
    border-left-color: var(--nfb-help-green);
    color: var(--nfb-help-ink);
}

.callout-update h4 {
    margin: 0 0 0.5rem 0;
    color: var(--nfb-help-green-600);
    font-size: 1rem;
}

/* Links in help body */
.help-body a {
    color: var(--nfb-help-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.help-body a:hover {
    color: var(--nfb-help-green-600);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nfb-help-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .nfb-help-overlay {
        padding-right: 0;
        justify-content: center;
        align-items: center;
    }

    .help-card {
        flex-direction: column;
    }

    .help-icon {
        align-self: flex-start;
    }
}

