/* Onboarding Wizard — fullPage.js "How to use it"
 * Shared across all tool landing pages
 * --------------------------------------- */

/* Overlay */
.onboarding-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
}
.onboarding-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Card */
.onboarding-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 820px;
    height: 650px;
    max-height: 88%;
    background: #fff;
    border-radius: 37px;
    box-shadow: 0 0 37px -6px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #222;
}

/* Header */
.onboarding-header {
    padding: 28px 35px 0;
    flex-shrink: 0;
}

.onboarding-close {
    position: absolute;
    top: 12px;
    right: 30px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 1;
}
.onboarding-close:hover {
    color: #333;
}

/* Progress bar */
.onboarding-progress {
    display: flex;
    gap: 6px;
    margin-top: 18px;
}
.onboarding-progress-segment {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0;
    transition: background .3s;
}
.onboarding-progress-segment.completed {
    background: #3cc63b;
}
.onboarding-progress-segment.current {
    background: #245deb;
}

.onboarding-step-label {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* Body — scrollable area */
.onboarding-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 35px 10px;
    position: relative;
}

.onboarding-body h2 {
    font-size: 1.9em;
    font-weight: 900;
    color: #111;
    margin: 0 0 26px;
}
.onboarding-body h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #222;
    margin: 34px 0 6px;
    letter-spacing: -0.01em;
}
.onboarding-body p {
    font-size: 1.05em;
    line-height: 1.65;
    color: #444;
    margin: 0 0 14px;
    -webkit-font-smoothing: antialiased;
}
.onboarding-body a {
    color: #4672f1;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid rgba(70, 114, 241, 0.3);
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}
.onboarding-body a:hover {
    color: #245deb;
    border-bottom-color: #245deb;
}

/* Unordered list — inline option buttons */
.onboarding-body ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 18px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}
.onboarding-body ul li {
    margin: 0;
    padding: 0;
}

/* Info list — plain bullet-style text list */
.onboarding-body ul.info-list {
    flex-direction: column;
    gap: 8px;
}
.onboarding-body ul.info-list li {
    padding: 10px 14px 10px 40px;
    background: #fafbfe;
    border-radius: 10px;
    border: 1.5px solid #eef0f8;
    font-size: 0.98em;
    line-height: 1.55;
    color: #333;
    position: relative;
}
.onboarding-body ul.info-list li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #245deb;
}

/* WordPress nav path */
.wp-nav-path {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 14px;
}
.wp-nav-item {
    font-size: 0.84em;
    font-weight: 500;
    color: #4a556e;
    background: #f4f5f7;
    border: 1px solid #d0d5de;
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 7px 2px;
    white-space: nowrap;
}
.wp-nav-arrow {
    color: #b0b8c8;
    font-size: 0.85em;
    font-weight: 700;
}

/* Action chip — for clickable UI button labels */
.action-chip {
    display: inline-block;
    border: 1px solid #d0d5de;
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 7px 2px;
    font-size: 0.84em;
    font-weight: 500;
    color: #4a556e;
    background: #f4f5f7;
    letter-spacing: 0.01em;
    vertical-align: middle;
    position: relative;
    margin: 0 3px;
    top: -1px;
    white-space: nowrap;
}

.onboarding-body ul li a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: #f5f8ff;
    border-radius: 50px;
    color: #245deb;
    font-weight: 600;
    font-size: 0.93em;
    text-decoration: none;
    border: 1.5px solid #dce8ff;
    border-bottom: 1.5px solid #dce8ff;
    padding-bottom: 10px;
    transition: all .2s;
    white-space: nowrap;
}
.onboarding-body ul li a::after {
    content: '↗';
    font-size: 0.85em;
    opacity: 0.55;
}
.onboarding-body ul li a:hover {
    background: #eef3ff;
    border-color: #245deb;
    border-bottom-color: #245deb;
    transform: translateY(-2px);
    color: #1a4fd4;
    box-shadow: 0 4px 12px rgba(36, 93, 235, 0.15);
}

/* Ordered list — numbered steps */
.onboarding-body ol {
    list-style: none;
    padding: 0;
    margin: 4px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: step-counter;
}
.onboarding-body ol li {
    counter-increment: step-counter;
    position: relative;
    padding: 7px 0 7px 36px;
    background: none;
    border-radius: 0;
    border: none;
    font-size: 0.98em;
    line-height: 1.55;
    color: #333;
}
.onboarding-body ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: none;
    border: 1.5px solid #b0bcd8;
    color: #6b7fa8;
    border-radius: 50%;
    font-size: 0.75em;
    font-weight: 700;
    text-align: center;
    line-height: 19px;
}

/* Step transition */
.onboarding-step-content {
    animation: onboardingFadeIn .25s ease;
}
@keyframes onboardingFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Footer */
.onboarding-footer {
    padding: 16px 35px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
}

.onboarding-btn {
    border: none;
    border-radius: 50px;
    padding: .6rem 1.8rem;
    font-size: 1em;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all .2s;
    font-weight: 600;
}
.onboarding-btn-prev {
    background: none;
    color: #666;
    padding-left: 0;
}
.onboarding-btn-prev:hover {
    color: #222;
}
.onboarding-btn-next {
    background: #245deb;
    color: #fff;
}
.onboarding-btn-next:hover {
    background: #1a4fd4;
}
.onboarding-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Tool selection grid — Step 1 */
.onboarding-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0;
}
.onboarding-tool-card {
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.onboarding-tool-card:hover {
    border-color: #b0c4ff;
    background: #f7f9ff;
}
.onboarding-tool-card.selected {
    border-color: #245deb;
    background: #eef3ff;
}
.onboarding-tool-card.blink {
    animation: onboardingBlink 0.3s ease 2;
}
@keyframes onboardingBlink {
    0%, 100% { border-color: #245deb; }
    50%      { border-color: transparent; }
}
.onboarding-tool-card svg {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 10px;
}
.onboarding-tool-card .tool-title {
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 4px;
    color: #222;
}
.onboarding-tool-card .tool-desc {
    font-size: 0.82em;
    color: #777;
    line-height: 1.4;
}


/* Code blocks */
.onboarding-code-block {
    position: relative;
    background: #1e1e2e;
    border-radius: 10px;
    margin: 12px 0;
    overflow: hidden;
}
.onboarding-code-block pre {
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.onboarding-code-block pre code {
    display: block;
    padding: 18px 20px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.88em;
    line-height: 1.65;
    white-space: pre;
    border-radius: 10px;
}
.onboarding-code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,.1);
    border: none;
    color: #cdd6f4;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background .2s;
}
.onboarding-code-copy:hover {
    background: rgba(255,255,255,.2);
}
.onboarding-code-copy.copied {
    background: #3cc63b;
    color: #fff;
}

/* Tip box */
.onboarding-tip {
    background: #f7f8fa;
    border-left: 3px solid #c5cad8;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 14px 0;
    font-size: 0.92em;
    line-height: 1.55;
    color: #555;
}

/* Final step CTA */
.onboarding-cta-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
}
.onboarding-body .onboarding-cta-primary {
    background: linear-gradient(135deg, #245deb, #7b2ff7, #245deb);
    background-size: 200% 200%;
    animation: ctaGradient 3s ease infinite, ctaPulse 2s ease-in-out infinite;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .75rem 2rem;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform .2s, box-shadow .2s;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 0 20px rgba(36, 93, 235, 0.4);
    position: relative;
}
.onboarding-body .onboarding-cta-primary:hover {
    transform: scale(1.07);
    box-shadow: 0 0 30px rgba(123, 47, 247, 0.6);
    color: #fff;
}
@keyframes ctaGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.onboarding-cta-secondary {
    color: #245deb;
    font-weight: 600;
    text-decoration: none;
}

/* ─── "How to use it" trigger button (dark theme) ─── */
.fp-onboarding-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-size: .9rem;
    font-family: inherit;
    font-weight: 700;
    transition: background .2s, border-color .2s, transform .15s;
    text-decoration: none;
    box-shadow: none;
}
.fp-onboarding-trigger:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.8);
    box-shadow: none;
    transform: translateY(-1px);
    text-decoration: none;
}
.fp-onboarding-trigger svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Responsive — Tablet */
@media only screen and (max-width: 768px) {
    .onboarding-card {
        max-width: 95%;
        border-radius: 24px;
    }
    .onboarding-header {
        padding: 22px 24px 0;
    }
    .onboarding-body {
        padding: 16px 24px 8px;
    }
    .onboarding-footer {
        padding: 14px 24px 22px;
    }
    .onboarding-body h2 {
        font-size: 1.5em;
    }
    .onboarding-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .onboarding-close {
        top: 12px;
        right: 20px;
        font-size: 30px;
    }
}

/* Responsive — Mobile */
@media only screen and (max-width: 480px) {
    .onboarding-card {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }
    .onboarding-header {
        padding: 18px 18px 0;
    }
    .onboarding-body {
        padding: 14px 18px 8px;
    }
    .onboarding-footer {
        padding: 12px 18px 18px;
    }
    .onboarding-body h2 {
        font-size: 1.3em;
    }
    .onboarding-body p {
        font-size: 0.95em;
    }
    .onboarding-tools-grid {
        grid-template-columns: 1fr;
    }
    .onboarding-code-block pre {
        font-size: 0.78em;
        padding: 14px 14px;
    }
}
