/*
Akyazı Belediyesi Müzesi - Tour Sayfası Stilleri
PhotoSphere Viewer entegrasyonu
*/

:root {
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* 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, #2e7d32, #1b5e20);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 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;
}

@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);
  }
}

.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 svg {
  fill: rgba(255, 255, 255, 0.8) !important;
  width: 20px !important;
  height: 20px !important;
  transition: fill 0.3s ease !important;
}

.psv-navbar-button:hover svg {
  fill: #ffffff !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, #2e7d32, #1b5e20) !important;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4) !important;
}

/* Loading Screen */
.resolution-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.resolution-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

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

.loading-o-logo {
  width: 120px;
  height: auto;
  animation: loadingSpin 2s ease-in-out infinite;
}

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

.quality-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-transform: uppercase;
}

@keyframes loadingSpin {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Tour Logo Overlays */
.logo-link {
  position: fixed;
  bottom: 48px;
  right: 50px;
  transform: translateY(50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  height: 44px;
}

.logo-link:hover {
  transform: translateY(50%) scale(1.05);
}

.logo {
  height: 50px;
  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-link {
  position: fixed;
  bottom: 48px;
  left: 50px;
  transform: translateY(50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  height: 44px;
}

.ozkhan-logo-link:hover {
  transform: translateY(50%) scale(1.05);
}

.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);
}

/* Nav Hotspots */
.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));
  }
}

/* Mobile */
@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;
  }

  .logo-link {
    bottom: 42px;
    right: 10px;
    transform: none;
    height: 28px;
    display: flex;
    align-items: center;
  }

  .logo {
    height: 35px;
  }

  .ozkhan-logo-link {
    bottom: 44px;
    left: 25px;
    transform: none;
    height: 24px;
    display: flex;
    align-items: center;
  }

  .ozkhan-logo {
    height: 24px;
  }

  .hotspot-logo {
    width: 40px;
    height: 40px;
    padding: 4px;
  }

  .hotspot-label {
    font-size: 11px;
    padding: 5px 10px;
  }
}
