/* Parkulo Demo Mode & Guided Tour Styles */

/* 1. Global Demo Elements */
.parkulo-demo-banner {
    background: linear-gradient(90deg, #1d2430 0%, #153c38 50%, #1d2430 100%);
    border-bottom: 2px solid var(--parkulo-mint, #74dfd3);
    color: #ffffff;
    font-size: 0.85rem;
    z-index: 1040;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.parkulo-demo-banner .badge-demo {
    background-color: #ffd166;
    color: #1d2430;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 0.72rem;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.parkulo-demo-banner .code-pill {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(116, 223, 211, 0.5);
    color: var(--parkulo-mint, #74dfd3);
    font-family: monospace;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 2. Demo Callout Card (Login & Verify pages) */
.demo-info-card {
    background: linear-gradient(135deg, rgba(116, 223, 211, 0.12) 0%, rgba(29, 36, 48, 0.04) 100%);
    border: 1.5px solid rgba(116, 223, 211, 0.45);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.demo-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--parkulo-mint, #74dfd3);
}

.demo-persona-btn {
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: var(--parkulo-navy, #1d2430);
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-persona-btn:hover {
    background: #f1f5f9;
    border-color: var(--parkulo-mint, #74dfd3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 3. Welcome Modal Styles */
.modal-welcome-demo .modal-content {
    border-radius: 28px;
    border: 0;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.modal-welcome-demo .modal-header {
    background: linear-gradient(135deg, #1d2430 0%, #153c38 100%);
    color: #ffffff;
    padding: 2rem 2rem 1.75rem;
    border-bottom: 0;
    position: relative;
}

.modal-welcome-demo .welcome-icon-bubble {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(116, 223, 211, 0.15);
    border: 1px solid rgba(116, 223, 211, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: var(--parkulo-mint, #74dfd3);
    margin-bottom: 1rem;
}

.modal-welcome-demo .feature-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.2s ease;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.modal-welcome-demo .feature-pill:hover {
    background: #ffffff;
    border-color: var(--parkulo-mint, #74dfd3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.modal-welcome-demo .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(33, 143, 133, 0.1);
    color: var(--parkulo-dark-teal, #218f85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 4. Guided Popups & Spotlight Overlay */
.parkulo-tour-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9990;
    pointer-events: auto;
    animation: fadeIn 0.25s ease;
}

/* Highlighted target element styling */
.parkulo-tour-target-highlight {
    position: relative !important;
    z-index: 9995 !important;
    box-shadow: 0 0 0 4px var(--parkulo-mint, #74dfd3), 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    border-radius: 16px !important;
    transition: box-shadow 0.3s ease;
}

/* Tour Popover Card - Fixed to Viewport so Next & Close X are ALWAYS in view */
.parkulo-tour-popover {
    position: fixed !important;
    z-index: 99999 !important;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 1.4rem;
    animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    overflow: hidden;
}

.parkulo-tour-popover .tour-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.parkulo-tour-popover .tour-step-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(116, 223, 211, 0.2);
    color: var(--parkulo-dark-teal, #218f85);
    border-radius: 8px;
    padding: 0.25rem 0.55rem;
}

.parkulo-tour-popover .tour-close-btn {
    border: 0;
    background: rgba(0, 0, 0, 0.04);
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.parkulo-tour-popover .tour-close-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
    transform: scale(1.05);
}

.parkulo-tour-popover .tour-body-container {
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(100vh - 170px);
    padding-right: 4px;
}

.parkulo-tour-popover .tour-title {
    font-family: var(--parkulo-heading-font, 'Barlow', sans-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--parkulo-navy, #1d2430);
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.parkulo-tour-popover .tour-body {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.parkulo-tour-popover .tour-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
}

.parkulo-tour-popover .tour-dots {
    display: flex;
    gap: 6px;
}

.parkulo-tour-popover .tour-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.25s ease;
}

.parkulo-tour-popover .tour-dot.active {
    width: 20px;
    border-radius: 4px;
    background: var(--parkulo-mint, #74dfd3);
}

/* 5. Floating Tour Button for Returning Users */
.parkulo-floating-tour-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1030;
    background: var(--parkulo-navy, #1d2430);
    color: var(--parkulo-mint, #74dfd3);
    border: 2px solid var(--parkulo-mint, #74dfd3);
    border-radius: 50rem;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.parkulo-floating-tour-btn:hover {
    background: var(--parkulo-mint, #74dfd3);
    color: var(--parkulo-navy, #1d2430);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.parkulo-floating-tour-btn.tour-active {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
