/* ==========================================
   PANORAMA VIEWER - STYLING
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: white;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(84, 104, 255, 0.2);
    border-top-color: #5468FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #5468FF;
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5468FF, #7d8bff);
    width: 0%;
    transition: width 0.3s ease;
}

#loading-text {
    font-size: 14px;
    opacity: 0.7;
}

/* ==========================================
   VIEWER CONTAINER
   ========================================== */
#viewer-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    cursor: grab;
}

#viewer-container:active {
    cursor: grabbing;
}

/* ==========================================
   UI CONTROLS
   ========================================== */
#ui-controls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

#ui-controls > * {
    pointer-events: all;
}

/* Info Panel - GİZLE */
#info-panel {
    display: none !important;
}

/* Mini Map - GİZLE */
#mini-map {
    display: none !important;
}

/* ==========================================
   PANORAMA CONTROLS - DÜZELTME
   ========================================== */
#panorama-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Genel olarak kapalı */
    z-index: 50;
}

/* Tüm child elementleri aktif et */
#panorama-controls > * {
    pointer-events: all !important;
}

/* ==========================================
   PANORAMA INFO BOX - SOL ÜST KÖŞE, KÜÇÜK ve ŞEFFAF
   ========================================== */
.panorama-info-box {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 160px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: all !important; /* Zorla aktif */
}

.info-title {
    font-size: 10px;
    font-weight: 600;
    color: #5468FF;
    margin: 0 0 4px 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.info-location {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.info-instructions {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-instructions p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Fullscreen Button - DÜZELTME */
#fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer !important; /* Zorla cursor pointer */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000; /* Daha yüksek z-index */
    pointer-events: all !important; /* Zorla aktif */
}

#fullscreen-btn:hover {
    background: #5468FF;
    transform: scale(1.1);
}

#fullscreen-btn img {
    pointer-events: none; /* İkonun tıklamayı engellemesini önle */
}

/* ==========================================
   HOTSPOTS
   ========================================== */
.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(84, 104, 255, 0.8);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    z-index: 50;
    pointer-events: all !important;
}

.hotspot:hover {
    transform: scale(1.3);
    background: #5468FF;
    box-shadow: 0 0 30px rgba(84, 104, 255, 0.8);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(84, 104, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(84, 104, 255, 0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .panorama-info-box {
        min-width: 140px;
        padding: 8px 12px;
        top: 15px;
        left: 15px;
    }

    .info-title {
        font-size: 9px;
    }

    .info-location {
        font-size: 12px;
    }

    .info-instructions {
        display: none;
    }

    #fullscreen-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .panorama-info-box {
        min-width: 120px;
        padding: 6px 10px;
    }

    .info-title {
        font-size: 8px;
    }

    .info-location {
        font-size: 11px;
        margin-bottom: 0;
    }
}

/* Tüm ikonlar orijinal renklerinde */
.instruction-icon {
    opacity: 0.9;
}

.info-icon {
    opacity: 1;
}