/* ═══════════════════════════════════════════════════════════════
   ImproveSEO — Onboarding Guide Overlay
   Activates only when window.iseoGuideConfig.active === true
   ═══════════════════════════════════════════════════════════════ */

/* ── Spotlight ──────────────────────────────────────────────────
   A fixed element sized to the target. The massive box-shadow
   extends outward in all directions, dimming everything outside. */
#iseo-guide-spotlight {
    position: fixed;
    z-index: 999990;
    pointer-events: none;
    border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
    transition: top 0.25s ease, left 0.25s ease,
                width 0.25s ease, height 0.25s ease;
    display: none;
}

/* ── Tooltip Card ───────────────────────────────────────────────*/
#iseo-guide-tooltip {
    position: fixed;
    z-index: 999995;
    width: 300px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    display: none;
    transition: top 0.2s ease, left 0.2s ease;
    pointer-events: none;
}

.iseo-guide-tooltip-inner {
    padding: 16px;
    pointer-events: auto;
}

/* ── Progress bar (sits flush at the top of the card) ───────── */
.iseo-guide-progress {
    height: 4px;
    background: #e9ecef;
    margin: -16px -16px 14px -16px;
    border-radius: 0;
}
.iseo-guide-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 0;
    transition: width 0.4s ease;
}

/* ── Header row ─────────────────────────────────────────────── */
.iseo-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.iseo-guide-bot {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
.iseo-guide-step-counter {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Text ───────────────────────────────────────────────────── */
.iseo-guide-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.35;
}
.iseo-guide-message {
    font-size: 12.5px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 14px;
}
.iseo-guide-message em  { font-style: italic; }
.iseo-guide-message strong { font-weight: 700; }
.iseo-guide-message small { font-size: 11px; color: #6c757d; }

/* ── Action Buttons ─────────────────────────────────────────── */
.iseo-guide-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.iseo-guide-btn-next {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}
.iseo-guide-btn-next:hover  { background: #005177; }
.iseo-guide-btn-next:active { transform: scale(0.97); }

.iseo-guide-btn-final           { background: #1a7f37; }
.iseo-guide-btn-final:hover     { background: #145f2a; }

.iseo-guide-btn-skip {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 11.5px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s;
}
.iseo-guide-btn-skip:hover { color: #495057; }

/* ── Docked card ────────────────────────────────────────────────
   Steps whose target sits in a multi-column layout (the three cover-image
   method cards) dock the card instead of anchoring it beside the target,
   where it would cover the neighbouring cards and the Generate button. A
   corner was tried first and rejected: pinned to either corner, a narrow
   card's own height ran through the card row (or, dropped low enough to
   clear the row, through the Previous/Next bar below it instead). top/
   right/width here are only the pre-measurement fallback for the instant
   before dockTooltip()/dockAboveMediaRow() (onboarding-guide.js) run their
   own layout math — they park the card ABOVE the card row, spanning the
   panel's width (which is what makes a short-enough card actually fit in
   that header band), so it never overlaps a card, the upload dropzone, or
   the Previous/Next buttons. This static position is not guaranteed clear
   of them on its own. */
#iseo-guide-tooltip[data-pos="docked"] {
    top: 96px;
    right: 28px;
    left: auto;
    width: 300px;
    max-width: calc(100vw - 56px);
}
/* No arrow when the card is not pointing at anything. */
#iseo-guide-tooltip[data-pos="docked"]::before {
    display: none;
}

/* The docked card is a pure overlay: position:fixed (above, z-index 999995) with NO
   reserved layout space. It used to force a `padding-right` onto the panel so the
   fixed card would never scroll over the content beneath it — but the panel is up
   to 1470px wide (assets/css/step.css:610) while the card is ~300px, so that
   padding did nothing but needlessly shrink the three-card grid (1fr each) into a
   narrower column while empty space sat unused past the card anyway. The panel's
   width (and the method cards' width within it) must be IDENTICAL whether or not
   the card is showing, so no space is reserved for it — see dockTooltip() in
   onboarding-guide.js for how it's positioned instead. */
@media (max-width: 1100px) {
    #iseo-guide-tooltip[data-pos="docked"] {
        width: 240px;
    }
}
/* Narrow screens: the modal goes full width and the method cards stack to a single
   column (made_by_me.css:2890), so the docked card moves to a top banner instead
   of a side corner — still an overlay, not a reflow. */
@media (max-width: 782px) {
    #iseo-guide-tooltip[data-pos="docked"] {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* ── Tooltip Arrow (pseudo-element) ─────────────────────────── */
#iseo-guide-tooltip::before {
    content: '';
    position: absolute;
    border: 9px solid transparent;
    pointer-events: none;
}
#iseo-guide-tooltip[data-pos="bottom"]::before {
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #ffffff;
}
#iseo-guide-tooltip[data-pos="top"]::before {
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #ffffff;
}
#iseo-guide-tooltip[data-pos="right"]::before {
    left: -17px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: #ffffff;
}
#iseo-guide-tooltip[data-pos="left"]::before {
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: #ffffff;
}

/* ── Element Highlight (used inside modal) ──────────────────────
   Blue glow applied directly to the field being guided.
   The Bootstrap modal backdrop already dims the background.     */
.iseo-guide-highlight {
    position: relative !important;
    z-index: 1060 !important;
    outline: 3px solid #0073aa !important;
    outline-offset: 4px;
    border-radius: 4px;
    animation: iseo-guide-pulse 1.8s ease-in-out infinite;
}
@keyframes iseo-guide-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(0, 115, 170, 0.45); }
    55%  { box-shadow: 0 0 0 10px rgba(0, 115, 170, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(0, 115, 170, 0);    }
}

/* ── Disabled buttons (review-publish step) ─────────────────────
   Applied by the guide JS to Save As Draft and Post preview while
   the final step is active, so only Create & Publish Post is clickable.
   Removed when the guide leaves the step or is dismissed.           */
.iseo-guide-disabled {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* End of file */
