/**
 * BookATee Interactive Demo Tour
 * Styles for the demo-only guided walkthrough (booking page + admin handoff).
 * Only injected on the demo tenant (demo.bookatee.net) by demo-tour.js.
 */

/* ===== Floating launcher / replay button ===== */
.demo-tour-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-tour-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.demo-tour-launcher .demo-tour-launcher-icon {
    font-size: 16px;
    line-height: 1;
}

/* ===== Demo mode badge (top, non-layout-shifting) ===== */
.demo-tour-badge {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99997;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 0 0 10px 10px;
    background: rgba(27, 94, 32, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* ===== Shepherd step accent for the demo tour ===== */
/* Use high specificity + !important so per-tenant custom branding CSS
   (which can set header/text colors) cannot override the tour chrome. */
.demo-tour-step.shepherd-element .shepherd-content {
    border-radius: 12px;
    overflow: hidden;
}

.demo-tour-step.shepherd-element .shepherd-header {
    background: #1b5e20 !important;
    background-image: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    padding: 12px 16px !important;
}

.demo-tour-step.shepherd-element .shepherd-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
}

.demo-tour-step.shepherd-element .shepherd-cancel-icon {
    color: rgba(255, 255, 255, 0.85) !important;
}

.demo-tour-step.shepherd-element .shepherd-text {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #243027 !important;
    background: #ffffff;
}

.demo-tour-step.shepherd-element .shepherd-footer {
    padding: 0 16px 14px;
    gap: 8px;
    background: #ffffff;
}

.demo-tour-step.shepherd-element .shepherd-button {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.demo-tour-step.shepherd-element .shepherd-button-primary {
    background: #2e7d32 !important;
    color: #fff !important;
}

.demo-tour-step.shepherd-element .shepherd-button-primary:hover {
    background: #1b5e20 !important;
}

.demo-tour-step.shepherd-element .shepherd-button-secondary {
    background: #eceff1 !important;
    color: #455a64 !important;
}

.demo-tour-step.shepherd-element .shepherd-button-secondary:hover {
    background: #cfd8dc !important;
}

/* Progress text inside steps */
.demo-tour-step .demo-tour-progress {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #78909c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== Closing call-to-action modal ===== */
.demo-cta-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 30, 20, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.demo-cta-overlay.demo-cta-visible {
    opacity: 1;
}

.demo-cta-card {
    position: relative;
    max-width: 440px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}

.demo-cta-visible .demo-cta-card {
    transform: translateY(0) scale(1);
}

.demo-cta-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #90a4ae;
    cursor: pointer;
}

.demo-cta-close:hover {
    color: #546e7a;
}

.demo-cta-emoji {
    font-size: 40px;
    margin-bottom: 8px;
}

.demo-cta-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1b5e20;
}

.demo-cta-card p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.55;
    color: #455a64;
}

.demo-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-cta-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.demo-cta-btn-primary {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
}

.demo-cta-btn-primary:hover {
    background: #1b5e20;
}

.demo-cta-btn-secondary {
    background: #eceff1;
    color: #455a64;
}

.demo-cta-btn-secondary:hover {
    background: #cfd8dc;
}

@media (max-width: 600px) {
    .demo-tour-launcher {
        bottom: 14px;
        right: 14px;
        padding: 10px 14px;
        font-size: 13px;
    }
}
