﻿/* ========================================
   TOUR GUIDE SYSTEM - COMPLETE CSS
   ======================================== */

/* Character (Sağ Alt Köşe) */
.tour-character {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    transform: scale(0.5) translateY(50px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

    .tour-character.active {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .tour-character img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        animation: float 3s ease-in-out infinite;
    }

    .tour-character:hover {
        transform: scale(1.1) translateY(-5px);
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Speech Bubble */
.tour-speech-bubble {
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: white;
}

    .tour-speech-bubble.active {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: all;
    }

    .tour-speech-bubble::after {
        content: '';
        position: absolute;
        bottom: -15px;
        right: 40px;
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 15px solid #764ba2;
    }

/* Header */
.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .tour-header h4 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 600;
        color: white;
    }

.tour-progress {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Close Button */
.tour-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .tour-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Body */
.tour-body {
    margin-bottom: 15px;
    line-height: 1.6;
}

    .tour-body p {
        margin: 0;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.95);
    }

/* Progress Bar */
.tour-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.tour-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Footer Buttons */
.tour-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tour-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

    .tour-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.tour-btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

    .tour-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    }

.tour-btn-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

    .tour-btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(67, 233, 123, 0.4);
    }

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* ❌ 0.85 yerine 0.3 - ÇOK HAFİF */
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

    .tour-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

/* ========================================
   SPOTLIGHT - PARLAK VE NET
   ======================================== */
/* Spotlight için visibility ekleyin */
.tour-spotlight {
    position: absolute;
    border: 4px solid #4facfe;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.50), 0 0 60px rgba(79, 172, 254, 1), 0 0 120px rgba(79, 172, 254, 0.8), inset 0 0 0 4px rgba(255, 255, 255, 0.5);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden; /* ✅ Eklendi */
    transition: all 0.4s ease;
}

    .tour-spotlight.active {
        opacity: 1;
        visibility: visible; /* ✅ Eklendi */
    }

/* Highlighted element için smooth transition */
.tour-highlighted-element {
    position: relative;
    z-index: 9999 !important;
    filter: brightness(1.4) contrast(1.2) saturate(1.2) !important;
    transform: translateZ(0) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.5) !important;
    transition: all 0.3s ease !important; /* ✅ Eklendi */
}


    

/* Video Modal Styling */
#tourVideoModal .modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

#tourVideoModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

#tourVideoModal .modal-title {
    font-weight: 600;
}

#tourVideoModal .btn-close {
    filter: invert(1);
}

#tourVideoModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .tour-speech-bubble {
        width: calc(100vw - 40px);
        bottom: 110px;
        right: 20px;
        left: 20px;
    }

    .tour-character {
        width: 60px;
        height: 60px;
    }

    .tour-footer {
        flex-direction: column;
    }

    .tour-btn {
        width: 100%;
        justify-content: center;
    }
}
