/* Projectopia Tour System Styles */
/* Fast, fun, and matches skeuomorphic design */

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    pointer-events: auto;
}

.tour-highlight {
    position: absolute;
    border: 3px solid #4fc3f7;
    border-radius: 12px;
    box-shadow: 
        0 0 0 4px rgba(79, 195, 247, 0.3),
        0 0 20px rgba(79, 195, 247, 0.5),
        inset 0 0 20px rgba(79, 195, 247, 0.2);
    background: rgba(79, 195, 247, 0.1);
    z-index: 9999;
    pointer-events: none;
    animation: tourPulse 2s ease-in-out infinite;
}

@keyframes tourPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 4px rgba(79, 195, 247, 0.3),
            0 0 20px rgba(79, 195, 247, 0.5),
            inset 0 0 20px rgba(79, 195, 247, 0.2);
    }
    50% {
        box-shadow: 
            0 0 0 6px rgba(79, 195, 247, 0.4),
            0 0 30px rgba(79, 195, 247, 0.7),
            inset 0 0 25px rgba(79, 195, 247, 0.3);
    }
}

.tour-tooltip {
    position: absolute;
    z-index: 10001;
    max-width: min(350px, calc(100vw - 30px));
    min-width: 280px;
    pointer-events: auto;
    animation: tourSlideIn 0.3s ease-out;
    box-sizing: border-box;
}

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

.tour-tooltip-content {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    border: 3px solid #1976d2;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    font-family: 'Fugaz One', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.tour-tooltip-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tour-tooltip-text {
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 1;
    min-height: 0;
}

.tour-progress {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tour-navigation {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
    margin-top: auto;
}

.tour-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-family: 'Fugaz One', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: bold;
    border: 2px solid #1565c0;
    border-radius: 10px;
    background: linear-gradient(to bottom, #1976d2, #1565c0);
    color: #fff;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
    outline: none;
}

.tour-btn:hover {
    background: linear-gradient(to bottom, #1e88e5, #1976d2);
    transform: translateY(-1px);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.tour-btn:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(255, 255, 255, 0.2);
}

.tour-btn.tour-skip {
    background: linear-gradient(to bottom, #ef5350, #e53935);
    border-color: #c62828;
}

.tour-btn.tour-skip:hover {
    background: linear-gradient(to bottom, #f44336, #ef5350);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: calc(100vw - 30px);
        min-width: auto;
        left: 15px !important;
        right: 15px;
    }
    
    .tour-tooltip-content {
        padding: 16px;
        max-height: 85vh;
    }
    
    .tour-tooltip-title {
        font-size: 1.1rem;
    }
    
    .tour-tooltip-text {
        font-size: 0.9rem;
    }
    
    .tour-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 80px;
    }
}


/* Make sure navigation buttons are always visible and clickable */
.tour-btn {
    min-height: 44px; /* Touch target size */
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
    user-select: none;
}

/* Ensure highlighted elements are clickable during tour */
.tour-highlight + * {
    pointer-events: auto;
    position: relative;
    z-index: 10001;
}

