/* ============================================================
   Guided Tour theme — overrides Shepherd.js defaults to match
   the Project Ignaz "tactical / CRT" aesthetic from style.css.
   ============================================================ */

/* Modal overlay — slightly darker, matches site backdrop */
.shepherd-modal-overlay-container {
    transition: opacity 0.25s ease;
}
.shepherd-modal-overlay-container.shepherd-modal-is-visible path {
    fill: rgba(2, 8, 20, 0.72);
}

/* The floating popover */
.shepherd-element {
    background: #ffffff;
    border: 1px solid rgba(0, 162, 237, 0.35);
    border-radius: 10px;
    box-shadow:
        0 0 0 1px rgba(0, 162, 237, 0.15),
        0 14px 40px rgba(2, 8, 20, 0.45),
        0 0 30px rgba(0, 162, 237, 0.18);
    max-width: 420px;
    font-family: inherit;
    color: #0f172a;
    overflow: visible;
}

/* Tactical corner brackets, like the map frames */
.shepherd-element::before,
.shepherd-element::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #00a2ed;
    pointer-events: none;
    z-index: 1;
}
.shepherd-element::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid;
    border-left: 2px solid;
}
.shepherd-element::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* Arrow */
.shepherd-arrow::before {
    background: #ffffff;
    border: 1px solid rgba(0, 162, 237, 0.35);
}

/* Header */
.shepherd-header {
    background: linear-gradient(90deg, #003566 0%, #002d5c 100%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.shepherd-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
}
.shepherd-cancel-icon {
    color: rgba(255, 255, 255, 0.55);
    font-size: 18px;
    line-height: 1;
    padding: 0 0.25rem;
    transition: color 0.15s ease;
}
.shepherd-cancel-icon:hover {
    color: #ffffff;
}

/* A small step counter rendered into the title via JS data attr */
.shepherd-element[data-tour-step]::before {
    /* leave the corner bracket alone */
}

/* Body text */
.shepherd-text {
    padding: 0.875rem 1rem 0.5rem 1rem;
    font-size: 13.5px;
    line-height: 1.55;
    color: #1e293b;
}
.shepherd-text p {
    margin: 0 0 0.65rem 0;
}
.shepherd-text p:last-child {
    margin-bottom: 0;
}
.shepherd-text strong {
    color: #0f172a;
    font-weight: 700;
}
.shepherd-text code {
    background: rgba(0, 53, 102, 0.08);
    color: #002d5c;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.shepherd-text .wopr-tour-eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #00a2ed;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* Footer + buttons */
.shepherd-footer {
    padding: 0.65rem 1rem 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.shepherd-button {
    background: #003566;
    color: #ffffff;
    border: 1px solid #003566;
    border-radius: 6px;
    padding: 0.45rem 0.95rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease,
        color 0.15s ease, box-shadow 0.15s ease;
}
.shepherd-button:hover:not(:disabled) {
    background: #002a52;
    border-color: #002a52;
    box-shadow: 0 0 0 2px rgba(0, 162, 237, 0.25);
}
.shepherd-button:focus-visible {
    outline: 2px solid #00a2ed;
    outline-offset: 2px;
}
.shepherd-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.shepherd-button.shepherd-button-secondary {
    background: transparent;
    color: #475569;
    border-color: #cbd5e1;
}
.shepherd-button.shepherd-button-secondary:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}
.shepherd-button.wopr-tour-exit {
    background: transparent;
    color: #b91c1c;
    border-color: transparent;
    margin-right: auto; /* push to the left */
    padding-left: 0;
    letter-spacing: 0.08em;
}
.shepherd-button.wopr-tour-exit:hover:not(:disabled) {
    background: transparent;
    color: #7f1d1d;
    border-color: transparent;
    box-shadow: none;
    text-decoration: underline;
}

/* Highlight applied to the spotlighted element */
.wopr-tour-highlight {
    position: relative;
    z-index: 9998;
    box-shadow:
        0 0 0 3px rgba(0, 162, 237, 0.55),
        0 0 0 6px rgba(0, 53, 102, 0.25),
        0 0 24px rgba(0, 162, 237, 0.35) !important;
    border-radius: 6px;
    transition: box-shadow 0.25s ease;
}

/* "Take a Tour" button in the top nav */
.wopr-tour-btn {
    background: transparent;
    border: 1px solid rgba(0, 162, 237, 0.45);
    color: #cbd5e1;
    font-family: var(--font-tech, ui-monospace, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s ease, color 0.15s ease,
        border-color 0.15s ease, box-shadow 0.15s ease;
}
.wopr-tour-btn:hover {
    background: rgba(0, 162, 237, 0.12);
    color: #ffffff;
    border-color: #00a2ed;
    box-shadow: 0 0 12px rgba(0, 162, 237, 0.35);
}
.wopr-tour-btn i {
    font-size: 11px;
    color: #00a2ed;
}

/* Reduce-motion respect */
@media (prefers-reduced-motion: reduce) {
    .shepherd-modal-overlay-container,
    .wopr-tour-highlight,
    .shepherd-button {
        transition: none !important;
    }
}
