/* Neumorphic Overlay */
#hints-overlay {
  display: none;
  position: absolute;
  top: 20px;
  right: 40px;
  /* Exactly 60px from the right */
  width: min(82vw, 629px);
  /* Maximum width as specified */
  max-height: calc(100% - 60px);
  /* Account for top/bottom spacing */
  z-index: 5000;
  overflow: auto;
  font-family: 'Share Tech Mono', sans-serif;
  font-weight: 300;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.85);
  padding: 0;
  pointer-events: auto;
  transition: opacity 0.5s ease-in;

}

/* WebKit browsers (Chrome, Safari) */
#hints-overlay::-webkit-scrollbar {
  display: none;
}


#hints-overlay[style*="display: block"] {
  animation: fadeInUp 0.4s ease;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


/* Hint Toggle Button */
#hints-toggle {
  position: fixed;
 top: 12px; 
  right: 12px;
  width: 45px;
  height: 45px;
  background: transparent;
  border: none;
  z-index: 15;
}

#hints-toggle object {
  width: 100%;
  height: 100%;
  transition: 0.8s filter ease-in-out;
  pointer-events: none;
}

/* Active state (when near hotspot) */
#hints-toggle.active object {
  content: url('../assets/gfx/svg-ui/101-web-ui-button-active.svg');
  filter: brightness(1.2);
}

/* Default state */
#hints-toggle:not(.active) object {
  content: url('../assets/gfx/svg-ui/101-web-ui-button-light.svg');
}


#hints-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
}

/* Mobile Responsiveness */


/* Main Hints Content */
.hints-content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Scroll only content */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  align-items: center;
  /* Center sections horizontally */
  box-sizing: border-box;
  padding: 0px;
  gap: 5px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hints-content::-webkit-scrollbar {
  display: none;
}

/* First section (banner/header) */
.hints-section:first-child {
  width: 100%;
  height: 40px;
  background: url('../assets/gfx/svg-ui/ui-player-header.svg') no-repeat center/cover !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
}

.hints-section:first-child::after {
  display: none;
}

.hints-section:first-child h1 {
  font-weight: 200;
  font-size: 15px;
  letter-spacing: -1.5px;
  text-transform: lowercase;
  text-align: left;
  margin: 0;
  padding-left: 18px;
  padding-top: 2px;
  color: #fffddd;
  width: 100%;
}

/* Other sections */
.hints-section:not(:first-child) {
  width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
  border: none;
  position: relative;
  background: #cccccc;
  box-sizing: border-box;
}

.hints-section:not(:first-child)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* Typography inside sections */
.hints-section h1 {
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 1.2px;
  text-transform: lowercase;
  margin-bottom: 0px;
  color: #446668;
}

.hints-section h2 {
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #446668;
  padding-bottom: 8px;
}

.hints-section h3 {
  font-weight: 300;
  font-size: 16px;
  color: #446668;
}

.hints-section p {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 0px 0;
  color: #446668;
}

/* Images */
.hints-image {
  width: 100%;
  margin: 10px 0;
}

.hints-image-container {
  background: #333;
  margin: 18px 0;
  text-align: center;
}

.hints-section img {
  max-width: 100%;
}

/* Media containers */
.hints-media-container {
  background: #2a2a2a;
  padding: 10px;
  margin: 10px 0;
  box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.5),
    inset -3px -3px 5px rgba(255, 255, 255, 0.05);
}

.hints-media-caption {
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
}

.hints-media-navigation {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
}

.hints-media-nav-btn {
  background: #3a3a3a;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

/* Audio */
.hints-section audio {
  width: 100%;
  margin: 15px 0;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
}

audio::-webkit-media-controls-panel {
  background: #3a3a3a;
  border-radius: 8px;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
  filter: brightness(0.8);
}

/* Playlist/video containers */
.playlist-container,
.video-playlist {
  margin: 10px 0;
}

.track-list,
.video-list {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.track-item,
.video-item {
  padding: 8px;
  cursor: pointer;
}

.track-item:hover,
.video-item:hover {
  background: #f5f5f5;
}

.track-item.active,
.video-item.active {
  background: #e0e0e0;
  font-weight: bold;
}

.playlist-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.playlist-controls button {
  padding: 5px 10px;
  cursor: pointer;
}

/* Video thumbnails */
.video-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.video-thumb {
  cursor: pointer;
}

.video-thumb img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.close-video {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

/* Carousel */
.image-carousel {
  position: relative;
}

.carousel-images img {
  width: 100%;
  height: auto;
  display: none;
}

.carousel-images img:first-child {
  display: block;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.carousel-nav button {
  padding: 5px 15px;
  cursor: pointer;
}

/* Footer section */
.hints-content .hints-footer {
  width: 100%;
  height: 85px;
  background: url('../assets/gfx/svg-ui/101-web-ui-player-footer.svg') no-repeat center/cover !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin: 0;
  padding: 0;
  margin-top: auto;
  /* Push footer to bottom */
}

/* Ensure the hints content has proper flex layout */
.hints-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  /* Important for proper scrolling */
}

/* Make sure sections take up available space */
.hints-section {
  flex: 1 0 auto;
}

/* Update footer styles in hints.css */
.hints-footer {
  width: 100%;
  height: 85px;
  background: url('../assets/gfx/svg-ui/101-web-ui-player-footer.svg') no-repeat center/cover !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 0 20px;
  box-sizing: border-box;
}

.player-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.player-media-area {
  position: relative;
  /* Critical for caption positioning */
  width: 100%;
  aspect-ratio: 1/1;
  /* Match your image ratio (e.g., 1:1 or 16:9) */
  margin: 0 auto;
  overflow: hidden;
      background: rgba(36, 36, 74, 0.88); 
  /* Prevents content spill */
}

.player-control-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.player-control-btn:hover {
  opacity: 1;
}

.player-control-btn object {
  width: 100%;
  height: 100%;
  pointer-events: none;
}


.controls-left {
  display: flex;
  gap: 15px;
  justify-self: start;
}

.counter-center {
  justify-self: center;
  font-family: 'Share Tech Mono';
}

.track-right {
  justify-self: end;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;
  text-transform: lowercase;
  padding-right: 12px;
}



.player-track-info {
  flex-grow: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Share Tech Mono', sans-serif;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 20px;
}

/* Player Footer Styles */
.player-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
}

.playlist-meta {
  flex: 1;
  min-width: 0;
  padding-right: 15px;
}

.playlist-title {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.9);
}

.player-description {
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
  background: rgba(0, 0, 0, 0.15);
  max-height: 104px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(240, 197, 65, 1.0);
  border-right: 1px solid rgba(240, 197, 65, 1.0);
  width: 100%;
}


.player-text {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 1.2em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  max-width: 80%;
  border-radius: 4px;
  pointer-events: none;
  /* Allows clicks through to controls */
  text-transform: lowercase;
  

}


.playlist-description {
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding-left: 13px;
  padding-top: 2px;
  text-transform: lowercase;
}

.track-description {
  opacity: 0.85;
  font-size: 11px;
  padding-left: 13px;
  text-transform: lowercase;
}

.no-description {
  font-style: italic;
  opacity: 0.6;
  text-align: center;
  padding: 8px 0;
}

/* Scrollbar styling */
.player-description::-webkit-scrollbar {
  width: 6px;
}

.player-description::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.track-info {
  flex: 1;
  text-align: right;
  min-width: 0;
  padding-left: 15px;
}

.track-position {
  font-size: 12px;
  opacity: 0.7;
  margin-right: 8px;
}

.track-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.track-caption {
  font-size: 11px;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.track-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures image fills container */
  display: block;
}

.artwork-subtitle {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 5px 10px;
}

.artwork-title {
  position: absolute;
  top: 0;
  /* Position at top */
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  font-family: 'Share Tech Mono', sans-serif;
  font-size: 16px;
  font-weight: bold;
  z-index: 2;
  text-align: left;
  text-transform: lowercase;
}

.artwork-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  font-family: 'Share Tech Mono', sans-serif;
  font-size: 14px;
  z-index: 2;
  text-transform: lowercase;
   text-align: right;
}

/* Hotspot Hint */
#hotspot-hint {
  position: fixed;
  top: 6px;
  left: 160px;
  width: 20px;
  height: 20px;
  background: url('../assets/gfx/svg-ui/ui-hint-io.svg') no-repeat center/contain;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  
  /* KEY: Use visibility instead of display for animations */
  visibility: hidden;
  opacity: 0;
  
  /* Animation ready to go */
  animation: pulse 2s infinite;
}

/* When JavaScript sets display:flex, also make it visible */
#hotspot-hint[style*="display: flex"],
#hotspot-hint[style*="display:block"] {
  visibility: visible;
  opacity: 1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}


/* Hotspot Hint text
#hotspot-hint p {
  transform: translate(min(2vw, 20px), min(4vw, 34px));
    color: white;
  font-size: min(4vw, 48px);

}

*/

video.track-artwork {
  background: black;
  /* For letterboxing */
}

/* Add to hints.css */
.scene3d-container {
  background: #000;
  border: 1px solid #333;
  margin-bottom: 15px;
}

.scene-info {
  padding: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 15px;
}

.scene-info h3 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 18px;
}

.scene-info p {
  margin: 0;
  color: #ccc;
  font-size: 14px;
}

.scene-info h3 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 18px;
}

.scene-caption {
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 8px;
}

.scene-info p {
  margin: 0 0 8px 0;
  color: #ccc;
  font-size: 14px;
  line-height: 1.4;
}

.scene-metadata {
  color: #888;
  font-size: 12px;
  font-style: italic;
}

/* Add to your main CSS file */
.iframe-container iframe {
  border-left: 1px solid rgba(240, 197, 65, 1.0);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

iframe::-webkit-scrollbar {
    display: none;
}


.corner-hover {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  color: #333;
  background: #fff;
  border: none;
  text-decoration: none;
  overflow: hidden;
}

/* Base: invisible corners */
.corner-hover::before,
.corner-hover::after,
.corner-hover span::before,
.corner-hover span::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Top-left */
.corner-hover::before {
  top: 0;
  left: 0;
  border-top-color: transparent;
  border-left-color: transparent;
}

/* Top-right */
.corner-hover::after {
  top: 0;
  right: 0;
  border-top-color: transparent;
  border-right-color: transparent;
}

/* Bottom-left */
.corner-hover span::before {
  bottom: 0;
  left: 0;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

/* Bottom-right */
.corner-hover span::after {
  bottom: 0;
  right: 0;
  border-bottom-color: transparent;
  border-right-color: transparent;
}

/* Hover: show corners */
.corner-hover:hover::before,
.corner-hover:hover::after,
.corner-hover:hover span::before,
.corner-hover:hover span::after {
  border-color: #ff6600;
}
