/**
 * Bee Local Tour Guide Styles
 * Professional dark theme with golden bee yellow accents
 */

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none !important;
    pointer-events: none;
}

.tour-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.tour-tooltip {
    position: fixed;
    z-index: 10000;
    max-width: 400px;
    min-width: 320px;
    display: none;
    pointer-events: auto;
    animation: tourFadeIn 0.3s ease-out;
}

.tour-content {
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    border: 2px solid #FFD700;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(255, 215, 0, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%);
    color: #1A1A1A;
    font-weight: 600;
}

.tour-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.tour-logo i {
    font-size: 18px;
    color: #1A1A1A;
}

.tour-close {
    background: none;
    border: none;
    color: #1A1A1A;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tour-close:hover {
    background: rgba(26, 26, 26, 0.1);
}

.tour-body {
    padding: 20px;
    color: #E0E0E0;
}

.tour-title {
    color: #FFD700;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-description {
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tour-features {
    margin-top: 16px;
}

.tour-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tour-feature-list li {
    padding: 6px 0;
    font-size: 13px;
    color: #B0B0B0;
    display: flex;
    align-items: center;
}

.tour-feature-list i {
    font-size: 12px;
    color: #28A745;
}

.tour-footer {
    padding: 16px 20px;
    background: rgba(255, 215, 0, 0.05);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.tour-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tour-step-counter {
    font-size: 13px;
    color: #FFD700;
    font-weight: 600;
    min-width: 80px;
}

.tour-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.tour-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.tour-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.tour-buttons .btn {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.tour-buttons .btn-outline-secondary {
    border-color: #6C757D;
    color: #CCCCCC;
}

.tour-buttons .btn-outline-secondary:hover {
    background: #6C757D;
    color: white;
}

.tour-buttons .btn-warning {
    background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%);
    border: none;
    color: #1A1A1A;
    font-weight: 600;
}

.tour-buttons .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.tour-buttons .btn-success {
    background: linear-gradient(90deg, #28A745 0%, #20C997 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.tour-buttons .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Element highlighting */
.tour-highlight {
    position: relative;
    z-index: 9998;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.8),
                0 0 0 8px rgba(255, 215, 0, 0.4),
                0 0 20px rgba(255, 215, 0, 0.6) !important;
    border-radius: 8px !important;
    animation: tourPulse 2s infinite;
}

/* Tour completion message */
.tour-completion-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
}

.tour-completion-message .alert {
    border: 2px solid #28A745;
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    color: #E0E0E0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tour-completion-message .alert-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
}

.tour-completion-message .alert-link:hover {
    color: #FFC107;
    text-decoration: underline;
}

/* Tour trigger button */
.tour-trigger-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #1A1A1A;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tour-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.tour-trigger-btn i {
    margin-right: 8px;
}

/* Animations */
@keyframes tourFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tourPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.8),
                    0 0 0 8px rgba(255, 215, 0, 0.4),
                    0 0 20px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.9),
                    0 0 0 12px rgba(255, 215, 0, 0.5),
                    0 0 25px rgba(255, 215, 0, 0.7);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: 90vw;
        min-width: 280px;
        left: 5vw !important;
        right: 5vw !important;
    }
    
    .tour-buttons {
        flex-direction: column;
    }
    
    .tour-buttons .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .tour-trigger-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Dark theme integration */
body.dark-theme .tour-content {
    background: linear-gradient(135deg, #1F1F1F 0%, #0D0D0D 100%);
    border-color: #FFD700;
}

body.dark-theme .tour-header {
    background: linear-gradient(90deg, #FFD700 0%, #F1C40F 100%);
}

body.dark-theme .tour-footer {
    background: rgba(255, 215, 0, 0.08);
    border-top-color: rgba(255, 215, 0, 0.3);
}

/* Integration with existing platform styles */
.tour-tooltip .btn-primary {
    background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%);
    border: none;
    color: #1A1A1A;
}

.tour-tooltip .btn-primary:hover {
    background: linear-gradient(90deg, #FFC107 0%, #F1C40F 100%);
}

/* Tour navigation helpers */
.tour-nav-hint {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.9);
    color: #1A1A1A;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    animation: tourBounce 1s infinite;
}

@keyframes tourBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-5px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}