/*
 * Walkthrough Pulsing Animation
 * Add class "pulse-guide" to any button/link to make it pulse and guide users
 */

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-guide {
    animation: pulseGlow 2s infinite, pulseScale 2s infinite;
    position: relative;
    z-index: 10;
}

/* Stronger pulse for primary CTAs */
.pulse-guide.pulse-strong {
    animation: pulseGlow 1.5s infinite, pulseScale 1.5s infinite;
}

/* For link elements (not buttons) */
a.pulse-guide {
    display: inline-block;
}

/* Fix hover issues - pause animation on hover */
.pulse-guide:hover,
.pulse-guide.pulse-strong:hover {
    animation-play-state: paused !important;
}

/* Walkthrough mode indicator - optional banner */
.walkthrough-banner {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.walkthrough-banner .close-walkthrough {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    margin-left: 12px;
    cursor: pointer;
    font-size: 12px;
}

.walkthrough-banner .close-walkthrough:hover {
    background: rgba(255,255,255,0.3);
}

/* Walkthrough Tooltip */
.walkthrough-tooltip {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    width: 90vw;
    border: 1px solid #2563eb;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.walkthrough-tooltip-header {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 7px 7px 0 0;
    color: #1e40af;
    font-size: 13px;
}

.walkthrough-tooltip-body {
    padding: 12px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.walkthrough-tooltip-footer {
    padding: 10px 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-tooltip {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tooltip-primary {
    background: #2563eb;
    color: white;
}

.btn-tooltip-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-tooltip-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.btn-tooltip-secondary:hover {
    background: #e2e8f0;
}

/* Walkthrough Offer Modal */
.walkthrough-offer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

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

.walkthrough-offer-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .walkthrough-tooltip {
        max-width: 95vw;
    }

    .walkthrough-banner {
        font-size: 12px;
        padding: 6px 12px;
    }

    .walkthrough-banner .close-walkthrough {
        font-size: 11px;
        padding: 3px 8px;
    }

    .walkthrough-tooltip-footer {
        flex-direction: column;
    }

    .btn-tooltip {
        width: 100%;
    }

    .walkthrough-offer-content {
        padding: 24px;
    }
}
