/* 
HIZAL Sanal Tur Stilleri
PhotoSphere Viewer için ortak stiller
BUILD v1.0.9 - 2025-12-04 - STABLE
*/

/* Temel body ve sayfa ayarları */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x pan-y;
}

/* Top Navigation Menu */
.top-nav-menu {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    padding: 0;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    will-change: transform;
    contain: layout style paint;
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 16px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.nav-btn:last-child {
    border-right: none;
}

.nav-btn:first-child {
    border-radius: 20px 0 0 20px;
}

.nav-btn:last-child {
    border-radius: 0 20px 20px 0;
}

.nav-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Kalite Seçici Butonu */
.quality-toggle-btn {
    position: fixed;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: qualityPulse 2s ease-in-out infinite;
}

/* Yüksek Kalite butonu için parlama animasyonu */
@keyframes qualityPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3), 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.5), 0 0 15px 3px rgba(40, 167, 69, 0.3);
    }
}

/* Düşük kalite butonunda animasyon YOK */
.quality-toggle-btn.low-quality {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    animation: none;
}

.quality-toggle-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    background: linear-gradient(135deg, #1e7e34, #28a745);
    animation: none;
}

.quality-toggle-btn.low-quality:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.5);
}

.quality-toggle-btn:active {
    transform: translateX(-50%) translateY(0);
}

/* PhotoSphere Viewer Base Styles */
.psv-navbar {
    background: rgba(40, 44, 52, 0.05) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3) !important;
    padding: 8px !important;
    z-index: 200 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 0 20px 20px 20px !important;
    max-width: calc(100vw - 40px) !important;
}

.psv-navbar-button {
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    margin: 4px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.psv-navbar-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.psv-navbar-button:hover::before {
    opacity: 1 !important;
}

.psv-navbar-button:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}

.psv-navbar-button.psv-navbar-button--active {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4) !important;
}

/* Panorama container */
#panorama {
    width: 100%;
    height: 100%;
}

/* Logo - Alt navbar'ın (psv-navbar) sağ yanında */
.logo-link {
    position: fixed;
    bottom: 48px; /* Navbar ile dikey ortada (navbar bottom:20px + padding:8px = 28px merkez) */
    right: 50px; /* Navbar'ın sağ kenarının hemen yanında */
    transform: translateY(50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 44px;
}

.logo {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Ozkhan Logo - Sol alt köşeye sabit */
.ozkhan-logo-link {
    position: fixed;
    bottom: 25px; 
    left: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 44px;
}

.ozkhan-logo {
    height: 30px;
    width: auto;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ozkhan-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Loading Screen */
.resolution-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.resolution-loading.visible {
    opacity: 1;
    visibility: visible;
}

.loading-logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Dönen, Büyüyen ve Kalp Atışlı O Logo */
.loading-o-logo {
    width: 120px;
    height: auto;
    z-index: 2;
    animation: spinPulseHeartbeat 2s ease-in-out infinite;
}

/* Yanıp sönen Ozkhan Logo */
.loading-ozkhan-logo {
    width: 180px;
    height: auto;
    z-index: 2;
    animation: pulseLogo 1.5s ease-in-out infinite;
}

/* Kalite ve Hız Bilgisi */
.quality-info {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.speed-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.speed-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.speed-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 50%;
}

.speed-bar-fill.low { width: 25%; background: #ff6b6b; }
.speed-bar-fill.medium { width: 60%; background: #feca57; }
.speed-bar-fill.high { width: 100%; background: #1dd1a1; }

@keyframes spinPulseHeartbeat {
    0% { 
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }
    15% { 
        transform: rotate(54deg) scale(1.15);
        filter: brightness(1.3);
    }
    30% { 
        transform: rotate(108deg) scale(1);
        filter: brightness(1);
    }
    45% { 
        transform: rotate(162deg) scale(1.1);
        filter: brightness(1.2);
    }
    60% { 
        transform: rotate(216deg) scale(1);
        filter: brightness(1);
    }
    75% { 
        transform: rotate(270deg) scale(1.12);
        filter: brightness(1.25);
    }
    100% { 
        transform: rotate(360deg) scale(1);
        filter: brightness(1);
    }
}

@keyframes spinLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Eski loading stilleri (geriye uyumluluk) */
.loading-logo {
    width: 100px;
    height: auto;
    z-index: 2;
    position: relative;
}

.loading-spinner-ring {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 140px !important;
    height: 140px !important;
    margin-top: -70px !important;
    margin-left: -70px !important;
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 3px solid #007bff !important;
    border-radius: 50% !important;
    animation: spin 1.5s linear infinite !important;
    z-index: 1 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Startup Info */
.startup-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 25px 35px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.5s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
}

.startup-info h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.startup-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.startup-info.fade-out {
    opacity: 0;
}

/* Navigation Hotspot Styling */
.navigation-hotspot {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
}

.navigation-hotspot:hover {
    background: rgba(0, 123, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Gallery Container Position */
.psv-gallery-container {
    position: relative !important;
    top: 10% !important;
    left: 5% !important;
    right: 5% !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .psv-navbar {
        margin: 0 10px 35px 10px !important;
        max-width: calc(100vw - 20px) !important;
        padding: 6px !important;
        border-radius: 15px !important;
    }
    
    .top-nav-menu {
        top: 5px !important;
        padding: 0 !important;
        border-radius: 15px !important;
    }
    
    .nav-btn {
        padding: 8px 12px !important;
        font-size: 10px !important;
    }
    
    .quality-toggle-btn {
        top: 45px;
        padding: 5px 12px;
        font-size: 9px;
        border-radius: 12px;
    }
    
    /* Logolar mobilde - köşelere sabit */
    .logo-link {
        bottom: 33px;
        right: 15px; /* Sağ alt köşeye sabit */
        transform: none;
        height: 38px;
    }
    
    .logo {
        height: 32px;
    }
    
    .ozkhan-logo-link {
        bottom: 33px;
        left: 15px;
        height: 38px;
    }
    
    .ozkhan-logo {
        height: 24px;
    }
    
    .startup-info {
        padding: 20px 25px;
    }
    
    .startup-info h2 {
        font-size: 1.1rem;
    }
    
    .startup-info p {
        font-size: 0.85rem;
    }
    
    .navigation-hotspot {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 80px;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

@media (max-width: 480px) {
    .psv-navbar {
        margin: 0 8px 25px 8px !important;
    }
}

/* ========================================
   NAVIGATION HOTSPOT STİLLERİ
   ======================================== */

.nav-hotspot {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-hotspot:hover {
    transform: scale(1.15);
}

.hotspot-logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    animation: hotspot-pulse 2s ease-in-out infinite;
    background: rgba(62, 0, 233, 0.247);
    padding: 5px;
}

.hotspot-label {
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-hotspot:hover .hotspot-label {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hotspot-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }
}

/* Mobilde hotspot boyutları */
@media (max-width: 768px) {
    .hotspot-logo {
        width: 40px;
        height: 40px;
        padding: 4px;
    }
    
    .hotspot-label {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ========================================
   DAİRE LİNK HOTSPOT STİLLERİ
   (Outdoor'dan daire sayfalarına geçiş)
   ======================================== */

.apartment-link-hotspot {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto !important;
    z-index: 10000;
}

/* PSV marker container'ının da tıklanabilir olması */
.psv-marker--html[data-marker-id^="apartment-link"] {
    pointer-events: auto !important;
    cursor: pointer;
}

.apartment-link-hotspot:hover {
    transform: scale(1.1);
}

.apartment-thumbnail {
    width: 240px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    animation: apartment-glow 2.5s ease-in-out infinite;
}

.apartment-link-hotspot:hover .apartment-thumbnail {
    border-color: #007bff;
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.5);
}

.apartment-link-label {
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
}

.apartment-link-hotspot:hover .apartment-link-label {
    background: linear-gradient(135deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

@keyframes apartment-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

/* Mobilde daire link hotspot boyutları */
@media (max-width: 768px) {
    .apartment-thumbnail {
        width: 90px;
        height: 68px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .apartment-link-label {
        font-size: 11px;
        padding: 6px 12px;
        margin-top: 8px;
    }
}
