/* 
STONE KUZEY - 360° Sanal Tur Stilleri
PhotoSphere Viewer için modern ve responsive tasarım
*/

/* Critical Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Panorama Container */
#panorama {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Loading Screen */
.resolution-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #0f1419 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.resolution-loading:not(.visible) {
    opacity: 0;
    visibility: hidden;
}

.loading-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.loading-o-logo {
    width: 120px;
    height: auto;
    animation: spin 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(58, 123, 213, 0.5));
}

.loading-ozkhan-logo {
    width: 180px;
    height: auto;
    animation: pulse 1.5s ease-in-out infinite;
}

.quality-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

@keyframes spin {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Speed Indicator */
.speed-indicator {
    width: 200px;
    text-align: center;
}

.speed-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.speed-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: loading-progress 2s ease-in-out infinite;
}

.speed-bar-fill.slow {
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    width: 30%;
}

.speed-bar-fill.medium {
    background: linear-gradient(90deg, #ffa500, #ffdd59);
    width: 60%;
}

.speed-bar-fill.fast {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    width: 100%;
}

@keyframes loading-progress {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Top Navigation Menu */
.top-nav-menu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(58, 123, 213, 0.4);
    border-color: rgba(58, 123, 213, 0.6);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.5);
}

/* Startup Info */
.startup-info {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: 16px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.6s ease, fadeOut 0.5s ease 4s forwards;
    max-width: 90vw;
}

.startup-info h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.startup-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* OZKHAN Logo */
.ozkhan-logo-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.ozkhan-logo-link:hover {
    transform: scale(1.1);
}

.ozkhan-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.ozkhan-logo-link:hover .ozkhan-logo {
    opacity: 1;
}

/* PhotoSphere Viewer Customizations */
.psv-container {
    background: #000 !important;
}

.psv-navbar {
    background: rgba(0, 0, 0, 0.7) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.psv-button {
    color: white !important;
    transition: all 0.3s ease !important;
}

.psv-button:hover {
    background: rgba(58, 123, 213, 0.4) !important;
}

.psv-button--active {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff) !important;
}

/* Gallery Plugin */
.psv-gallery {
    background: rgba(0, 0, 0, 0.8) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
}

.psv-gallery-item {
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.psv-gallery-item:hover {
    border-color: #3a7bd5 !important;
    transform: scale(1.05) !important;
}

.psv-gallery-item--active {
    border-color: #00d2ff !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5) !important;
}

/* Markers */
.psv-marker--normal {
    transition: all 0.3s ease !important;
}

.psv-marker--normal:hover {
    transform: scale(1.2) !important;
}

/* Custom Navigation Markers */
.custom-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.8), rgba(0, 210, 255, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.5);
    animation: marker-pulse 2s ease-in-out infinite;
}

.custom-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(0, 210, 255, 0.7);
    animation: none;
}

.custom-marker svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@keyframes marker-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(58, 123, 213, 0.5),
            0 0 0 0 rgba(0, 210, 255, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(58, 123, 213, 0.5),
            0 0 0 15px rgba(0, 210, 255, 0);
    }
}

/* Tooltip for markers */
.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 1px solid rgba(58, 123, 213, 0.5);
}

.custom-marker:hover .marker-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .top-nav-menu {
        top: 15px;
        padding: 6px 10px;
        gap: 8px;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 0.75rem;
    }

    .startup-info {
        bottom: 80px;
        padding: 20px 25px;
    }

    .startup-info h2 {
        font-size: 1.1rem;
    }

    .startup-info p {
        font-size: 0.85rem;
    }

    .ozkhan-logo {
        width: 90px;
    }

    .ozkhan-logo-link {
        bottom: 15px;
        right: 15px;
    }

    .loading-o-logo {
        width: 90px;
    }

    .loading-ozkhan-logo {
        width: 140px;
    }

    .quality-info {
        font-size: 12px;
    }

    .custom-marker {
        width: 50px;
        height: 50px;
    }

    .custom-marker svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .top-nav-menu {
        top: 10px;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: 95vw;
        border-radius: 20px;
        padding: 6px 8px;
        gap: 6px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .startup-info {
        bottom: 70px;
        padding: 15px 20px;
    }

    .startup-info h2 {
        font-size: 1rem;
    }

    .startup-info p {
        font-size: 0.8rem;
    }

    .ozkhan-logo {
        width: 70px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .loading-o-logo,
    .loading-ozkhan-logo,
    .ozkhan-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .loading-o-logo,
    .loading-ozkhan-logo,
    .custom-marker {
        animation: none;
    }

    .startup-info {
        animation: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    .resolution-loading {
        background: linear-gradient(135deg, #000 0%, #0f1419 50%, #000 100%);
    }
}

/* ==========================================
   QUALITY BUTTONS - Kalite Değiştirme
   Navigasyon menüsünün altında dikey düzen
   ========================================== */

/* Kalite Butonları Container - Navigasyonun Altında */
.quality-buttons {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: none;
    /* JS tarafından gösterilecek */
    flex-direction: row;
    gap: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Kalite Butonu */
.quality-btn {
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    min-width: 140px;
}

.quality-btn:hover {
    background: rgba(58, 123, 213, 0.3);
    border-color: rgba(58, 123, 213, 0.5);
    color: white;
    transform: scale(1.02);
}

.quality-btn.active {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.5);
}

/* Kalite İkonu */
.quality-btn .quality-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Medium Kalite Butonu - Sarı/Turuncu Tema */
.quality-btn.quality-medium:hover:not(.active) {
    background: rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.5);
}

.quality-btn.quality-medium.active {
    background: linear-gradient(135deg, #ffa500, #ffdd59);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

/* High Kalite Butonu - Mavi/Cyan Tema */
.quality-btn.quality-high:hover:not(.active) {
    background: rgba(0, 210, 255, 0.3);
    border-color: rgba(0, 210, 255, 0.5);
}

.quality-btn.quality-high.active {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

/* Kalite Bildirimi */
.quality-notification {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid rgba(58, 123, 213, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quality-notification.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.quality-notification::before {
    content: '✓';
    margin-right: 8px;
    color: #00d2ff;
}

/* Kalite Etiketi (Panorama üzerinde) */
.quality-label {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quality-label .quality-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: quality-dot-pulse 2s ease-in-out infinite;
}

.quality-label.high .quality-dot {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
}

.quality-label.medium .quality-dot {
    background: linear-gradient(135deg, #ffa500, #ffdd59);
}

@keyframes quality-dot-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

/* Responsive - Kalite Butonları */
@media (max-width: 768px) {
    .quality-buttons {
        top: 65px;
        padding: 5px;
        gap: 6px;
    }

    .quality-btn {
        padding: 8px 18px;
        font-size: 0.7rem;
        min-width: 100px;
    }

    .quality-btn .quality-icon {
        width: 14px;
        height: 14px;
    }

    .quality-notification {
        top: 130px;
        padding: 10px 24px;
        font-size: 0.8rem;
    }

    .quality-label {
        top: 70px;
        font-size: 0.65rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .top-nav-menu {
        top: 10px;
    }

    .quality-buttons {
        top: 60px;
        padding: 4px;
        gap: 5px;
        border-radius: 20px;
        max-width: 90vw;
    }

    .quality-btn {
        padding: 7px 16px;
        font-size: 0.65rem;
        min-width: 85px;
        border-radius: 15px;
        letter-spacing: 0.3px;
    }

    .quality-btn .quality-icon {
        width: 11px;
        height: 11px;
    }

    .quality-notification {
        top: 115px;
        padding: 8px 18px;
        font-size: 0.7rem;
    }

    .quality-label {
        top: 60px;
        right: 10px;
        font-size: 0.6rem;
    }
}

/* ==========================================
   NAVIGATION CONTROLS - İleri-Geri Butonları
   Ekranın altından %30 yukarıda, ortalanmış
   ========================================== */

.navigation-controls {
    position: fixed;
    bottom: 30vh;
    /* Ekranın altından %30 yukarıda */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-control-btn {
    padding: 16px 32px;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-control-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.nav-control-btn:hover {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(58, 123, 213, 0.6);
}

.nav-control-btn:hover svg {
    transform: scale(1.2);
}

.nav-control-btn:active {
    transform: translateY(-1px);
}

.nav-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-control-btn:disabled:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Prev Button - Sol ok animasyonu */
.prev-btn:hover svg {
    transform: translateX(-5px) scale(1.2);
}

/* Next Button - Sağ ok animasyonu */
.next-btn:hover svg {
    transform: translateX(5px) scale(1.2);
}

/* Responsive - Navigation Controls */
@media (max-width: 768px) {
    .navigation-controls {
        bottom: 25vh;
        gap: 15px;
    }

    .nav-control-btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .nav-control-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .navigation-controls {
        bottom: 22vh;
        gap: 12px;
    }

    .nav-control-btn {
        padding: 12px 24px;
        font-size: 0.8rem;
        letter-spacing: 1px;
        border-radius: 40px;
    }

    .nav-control-btn svg {
        width: 18px;
        height: 18px;
    }

    .nav-control-btn span {
        font-size: 0.75rem;
    }
}

/* Landscape mode için özel ayar */
@media (max-height: 500px) and (orientation: landscape) {
    .navigation-controls {
        bottom: 15vh;
    }

    .nav-control-btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .nav-control-btn svg {
        width: 16px;
        height: 16px;
    }
}