/* Genel stiller */
* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

#panorama {
  width: 100%;
  height: 100vh;
}

/* Loading animasyonu */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.loading-container {
  text-align: center;
  padding: 40px;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
  max-width: 400px;
  width: 90%;
  border: 1px solid rgba(0, 51, 102, 0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100000;
}

.loading-logo img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(0, 51, 102, 0.2));
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  height: 50px;
}

.spinner-circle {
  width: 12px;
  height: 12px;
  margin: 0 8px;
  background-color: #003366;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.loading-text {
  color: #003366;
  font-size: 18px;
  margin: 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Kontrol paneli */
#control-panel {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  background-color: rgba(0, 51, 102, 0.85);
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
  min-width: 300px;
  transition: all 0.3s ease;
  gap: 12px;
  display: none; /* Mobilde varsayılan olarak gizli */
}

#scene-selector {
  width: 100%;
  text-align: center;
}

#scene-dropdown {
  width: 100%;
  max-width: 250px;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #003366;
  background-color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  color: #003366;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}

#scene-dropdown option {
  color: #003366;
  text-align: left;
}

#navigation-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: #003366;
  color: white;
  transform: scale(1.1);
}

.nav-btn i {
  pointer-events: none;
}

/* Yardım butonu */
#help-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#help-btn:hover {
  background-color: #003366;
  color: white;
  transform: scale(1.1);
}


/* Sosyal Medya Paneli - Hidden on mobile */
.social-media-panel {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  background-color: rgba(0, 51, 102, 0.85);
  padding: 15px 10px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: none; /* Varsayılan olarak gizli */
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links li a:hover {
  background-color: #003366;
  color: white;
  transform: scale(1.1);
}

.social-links li a::after {
  content: attr(title);
  position: absolute;
  right: 60px;
  background-color: #003366;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.social-links li a:hover::after {
  opacity: 1;
}

/* UI Butonları Container - Hidden on mobile */
.ui-buttons-container {
  position: fixed;
  right: 25px;
  top: calc(50% + 150px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
  display: none; /* Varsayılan olarak gizli */
}

/* UI Butonları */
.ui-btn {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 51, 102, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid white;
}

.ui-btn:hover {
  background-color: rgba(0, 51, 102, 1);
  transform: scale(1.1);
}

.ui-btn i {
  font-size: 20px;
}

/* Gelişmiş Yardım Modalı Stilleri */
.help-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  animation: scaleFadeIn 0.4s ease forwards;
}

@keyframes scaleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.help-content {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin: 3% auto;
  padding: 30px;
  border-radius: 15px;
  width: 85%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.help-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.help-header h2 {
  color: #003366;
  margin: 15px 0 5px;
  font-size: 28px;
}

.help-header p {
  color: #6c757d;
  margin: 0;
  font-size: 16px;
}

.help-logo {
  height: 60px;
  width: auto;
}

.close-help {
  color: #6c757d;
  position: absolute;
  right: 25px;
  top: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.close-help:hover {
  color: #003366;
  transform: scale(1.1);
}

.help-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 5px;
}

.tab-button {
  padding: 10px 20px;
  background: #e9ecef;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  color: #495057;
  transition: all 0.3s;
}

.tab-button:hover {
  background: #dee2e6;
}

.tab-button.active {
  background: #003366;
  color: white;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.help-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  align-items: flex-start;
}

.help-icon {
  font-size: 28px;
  background: #003366;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-item h3 {
  color: #003366;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.help-item ul {
  padding-left: 20px;
  margin: 0;
}

.help-item li {
  margin-bottom: 8px;
  color: #495057;
  line-height: 1.5;
}

.help-item strong {
  color: #212529;
}

.help-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.start-tour-btn {
  background: #003366;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.start-tour-btn:hover {
  background: #002244;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .help-content {
    width: 90%;
    padding: 20px;
  }
  
  .help-item {
    flex-direction: column;
    gap: 15px;
  }
  
  .help-tabs {
    flex-wrap: wrap;
  }
}

/* UI Durumları */
body.ui-hidden #control-panel,
body.ui-hidden .social-media-panel,
body.ui-hidden .ui-buttons-container {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

body.ui-hidden .ui-btn {
  opacity: 1;
  pointer-events: all;
  transform: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  border-color: #003366;
}

/* Hotspot stilleri */
.custom-icon {
  background-image: url("../images/mtü-logo.png");
  background-size: cover;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #003366;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
/* Zoom butonu */


/* .custom-icon-zoom {
  background-image: url("../images/search.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: white; 
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #003366;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
} */


.custom-icon-zoom {
  width: 30px;
  height: 30px;
  background-color: transparent; 
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  z-index: 10;
}

.custom-icon-zoom:hover {
  background-color: rgba(0, 0, 0, 0.05); 
}



/* Pannellum özelleştirmeleri */
.pnlm-loader, 
.pnlm-loader-container,
.pnlm-load-box {
  display: none !important;
}

.pnlm-controls {
  background-color: transparent !important;
}

/* Masaüstü Stilleri - Panelleri daha büyük ekranlarda göster */
@media (min-width: 992px) {
  #control-panel,
  .social-media-panel,
  .ui-buttons-container {
    display: flex;
  }
  
  #control-panel {
    flex-direction: column;
    padding: 15px 20px;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  #scene-dropdown {
    font-size: 16px;
    margin-bottom: 10px;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
  #control-panel {
    display: flex;
    flex-direction: column;
  }
  
  .social-media-panel,
  .ui-buttons-container
  .music-control-panel.left  {
    display: none;
  }
}

/* Mobile Landscape */
@media (orientation: landscape) and (max-height: 500px) {
  #control-panel {
    bottom: 5px;
    padding: 8px 15px;
    max-width: 95%;
    min-width: auto;
  }
  
  .nav-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  #scene-dropdown {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  #control-panel {
    border-radius: 20px;
    padding: 12px;
    min-width: 280px;
  }
  
  #scene-dropdown {
    padding: 8px 12px;
    max-width: 220px;
  }
  
  .nav-btn {
    width: 32px;
    height: 32px;
  }
}


/* ==================== OPTIMIZED IMAGE OVERLAY ==================== */
#image-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.image-container {
  max-width: 85%;
  max-height: 65vh;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  position: relative;
}

#overlay-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 4px;
}

.image-caption {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  width: 85%;
  max-width: 900px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: #333;
  overflow-y: auto;
  max-height: 25vh;
  scrollbar-width: thin;
  scrollbar-color: #0066cc #f1f1f1;
}

/* resim zoom butonları */
#image-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#image-controls button {
  padding: 10px 14px;
  font-size: 18px;
  border: 2px solid #003366;
  border-radius: 6px;
  background-color: #003366;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

#image-controls button:hover {
  background-color: white;
  color: #003366;
}



.image-caption::-webkit-scrollbar {
  width: 6px;
}

.image-caption::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.image-caption::-webkit-scrollbar-thumb {
  background: #0066cc;
  border-radius: 3px;
}

.caption-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0066cc;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.caption-detail {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
}

.caption-detail span {
  font-weight: 500;
  color: #0066cc;
  min-width: 100px;
}

.caption-description {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

#close-overlay {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: #0066cc;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 1001;
}

#close-overlay:hover {
  background: #ff3333;
  transform: scale(1.05);
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 1440px) {
  .image-container {
    max-width: 90%;
  }
  .image-caption {
    width: 90%;
  }
}

@media (max-width: 1024px) {
  #image-overlay {
    padding: 1.5rem;
  }
  .image-container {
    max-height: 60vh;
  }
  #overlay-img {
    max-height: 55vh;
  }
  .image-caption {
    max-height: 30vh;
  }
}

@media (max-width: 768px) {
  .caption-detail {
    flex-direction: column;
  }
  .caption-detail span {
    margin-bottom: 0.2rem;
    min-width: auto;
  }
}

/* MÜZİK KONTROL PANELİ - SOL ORTA */
.music-control-panel.left {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  background-color: rgba(0, 51, 102, 0.85);
  padding: 15px 10px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 60px;
}

.music-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.music-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.music-btn:hover {
  background-color: #003366;
  color: white;
  transform: scale(1.1);
}

.music-info {
  display: none; /* Mobilde gizli */
}

.music-dropdown {
  position: fixed;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 51, 102, 0.95);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  gap: 15px;
  width: 220px;
  z-index: 9997;
  animation: fadeIn 0.3s ease;
}

.music-dropdown.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-10px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

#music-list {
  width: 100%;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.music-controls {
  display: flex;
  justify-content: space-between;
}

.music-control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #003366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-control-btn:hover {
  background-color: #003366;
  color: white;
  transform: scale(1.1);
}

/* Ortak Stil */
#sound-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #003366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.9);
}

/* SOUND OFF (Sesi kapalı, ikon mavi) */
#sound-toggle.sound-off {
  color: #003366;
}

/* SOUND ON (Sesi açık, ikon mavi) */
#sound-toggle.sound-on {
  color: #003366;
}

/* HOVER Efekti */
#sound-toggle:hover {
  background-color: #003366;
  color: white;
  transform: scale(1.1);
}

/* Tooltip (ortak) */
#sound-toggle::after {
  content: attr(title);
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #003366;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Tooltip hoverda görünsün */
#sound-toggle:hover::after {
  opacity: 1;
}


/* MÜZİK İLERLEME ÇUBUĞU */
.music-progress-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

#music-progress-bar {
  height: 100%;
  width: 0%;
  background-color: white;
  transition: width 0.1s linear;
}

/* TOOLTIP STİLLERİ */
.music-btn::after {
  content: attr(title);
  position: absolute;
  left: 70px;
  background-color: #003366;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.music-btn:hover::after {
  opacity: 1;
}

/* TABLET VE MOBİL UYUMLULUK */
@media (max-width: 768px) {
  .music-control-panel.left {
    left: 10px;
    width: 50px;
    padding: 12px 8px;
  }
  
  .music-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .music-dropdown {
    left: 70px;
    width: 200px;
  }
}

@media (max-width: 480px) {
  .music-control-panel.left {
    bottom: 20px;
    top: auto;
    transform: none;
    flex-direction: row;
    width: auto;
    padding: 10px 15px;
    border-radius: 25px;
  }
  
  .music-player {
    flex-direction: row;
  }
  
  .music-dropdown {
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px;
    top: auto;
    width: 90%;
    max-width: 300px;
  }
  
  .music-btn::after {
    left: 50%;
    transform: translateX(-50%);
    top: -40px;
    bottom: auto;
  }
}

@media (max-width: 767px) {
  .music-control-panel.left {
    display: none;
  }
}

/* Özel bilgi butonu için stil */
#info-btn {
  /* Diğer nav-btn özellikleri korunuyor */
  padding: 0; /* İç boşlukları sıfırla */
}

.info-icon {
  width: 100%; /* Butonun tam iç alanını kapla */
  height: 100%;
  object-fit: cover; /* Resmi tam sığdır */
  border-radius: 50%; /* Yuvarlak yap */
  display: block; /* Resmin tam görünmesini sağla */
  /* Hover efekti yok */
  filter: none; /* Varsa filtreleri kaldır */
  transition: none; /* Geçiş efekti yok */
}

/* Eğer resimde beyaz arkaplan varsa */
.info-icon[src*="white-bg"] {
  background-color: #003366; /* Buton rengiyle uyumlu */
}