/* File: /Users/liborballaty/LocalProjects/GitHubProjectsDocuments/go-madeira/assets/css/tour.css
 * Description: Non-intrusive tour guide styles with no page darkening
 * Author: Libor Ballaty <libor@arionetworks.com>
 * Created: 2026-03-17
 */

/* Shepherd.js custom theme - Madeira Green */

/* Tour highlight effect - pulsing green glow */
.shepherd-enabled.shepherd-element {
    border: 4px solid #059669 !important;
    border-radius: 12px !important;
    box-shadow:
        0 0 0 6px rgba(5, 150, 105, 0.3),
        0 0 20px rgba(5, 150, 105, 0.4),
        0 0 40px rgba(5, 150, 105, 0.2) !important;
    animation: tour-pulse 2s infinite !important;
}

@keyframes tour-pulse {
    0% {
        box-shadow:
            0 0 0 6px rgba(5, 150, 105, 0.3),
            0 0 20px rgba(5, 150, 105, 0.4),
            0 0 40px rgba(5, 150, 105, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 8px rgba(5, 150, 105, 0.4),
            0 0 30px rgba(5, 150, 105, 0.6),
            0 0 50px rgba(5, 150, 105, 0.3);
    }
    100% {
        box-shadow:
            0 0 0 6px rgba(5, 150, 105, 0.3),
            0 0 20px rgba(5, 150, 105, 0.4),
            0 0 40px rgba(5, 150, 105, 0.2);
    }
}

/* No modal overlay - keep page fully visible */
.shepherd-modal-overlay-container {
    display: none !important;
}

/* Tour content styling */
.shepherd-element {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    max-width: 400px !important;
    z-index: 999999 !important;
}

.shepherd-arrow {
    display: none !important;
}

/* Tour header */
.shepherd-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;  /* Dark gray instead of green */
    padding: 1rem 1.5rem !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 3px solid #059669 !important;  /* Green accent line */
}

.shepherd-title {
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.shepherd-cancel-icon {
    color: white !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s !important;
}

.shepherd-cancel-icon:hover {
    opacity: 1 !important;
}

/* Tour content */
.shepherd-text {
    padding: 1.5rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
}

.shepherd-text strong {
    color: #059669 !important;
    font-weight: 600 !important;
}

/* Tour footer/buttons */
.shepherd-footer {
    padding: 0 1.5rem 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Tour buttons */
.shepherd-button {
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.shepherd-button-primary {
    background: #059669 !important;  /* Solid green, not gradient to differentiate */
    color: white !important;
    border: 2px solid #047857 !important;
}

.shepherd-button-primary:hover {
    background: #047857 !important;  /* Darker green on hover */
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3) !important;
}

.shepherd-button-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.shepherd-button-secondary:hover {
    background: #e2e8f0 !important;
}

/* Skip link style */
.shepherd-button-secondary[data-shepherd-action="cancel"] {
    background: transparent !important;
    color: #64748b !important;
    text-decoration: underline !important;
}

/* Tour trigger button (Take Tour) */
.tour-trigger-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e293b;  /* Dark background to stand out */
    color: white;
    border: 2px solid #059669;  /* Green border */
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-trigger-button:hover {
    background: #059669;  /* Green on hover */
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .shepherd-element {
        max-width: 90vw !important;
        margin: 0 5vw !important;
    }

    .shepherd-text {
        font-size: 0.95rem !important;
    }

    .shepherd-button {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .tour-trigger-button {
        bottom: 70px; /* Higher on mobile to avoid navigation */
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Stack buttons vertically on small screens */
    .shepherd-footer {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .shepherd-button {
        width: 100% !important;
    }
}

/* Ensure tour elements stay above everything else */
.shepherd-element,
.shepherd-element *,
.tour-trigger-button {
    z-index: 999999 !important;
}

/* Progress indicators (if using custom ones) */
.tour-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 0.5rem;
}

.tour-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s;
}

.tour-progress-dot.active {
    background: #059669;
    transform: scale(1.5);
}

.tour-progress-dot.completed {
    background: #0891b2;
}

/* Accessibility improvements */
.shepherd-element:focus,
.shepherd-button:focus,
.tour-trigger-button:focus {
    outline: 3px solid #059669 !important;
    outline-offset: 2px !important;
}

/* Print styles - hide tour elements when printing */
@media print {
    .shepherd-element,
    .tour-trigger-button,
    .shepherd-modal-overlay-container {
        display: none !important;
    }
}

/* Animation for tour entrance */
@keyframes tour-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shepherd-element {
    animation: tour-slide-in 0.3s ease-out !important;
}