/* Nature Hotspot v7.3 */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden;
  font-family: 'Fredoka', sans-serif; color: #fff;
  background: #0f1a16 url('background.jpg') center/cover no-repeat;
}

main {
  position: relative; display: flex; justify-content: center; align-items: center;
  width: 100%; height: 100dvh; padding: 20px;
}

.glass-panel {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(92vw, 480px); padding: 3rem 2rem 2rem;
  background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); z-index: 20;
}

/* Info Button */
.info-btn {
  position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; padding: 0;
  display: flex; justify-content: center; align-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8); cursor: pointer; transition: background 0.3s; z-index: 30;
}
.info-btn:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.info-btn svg { width: 60%; height: 60%; fill: currentColor; }

/* Info Overlay */
.info-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 100;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.info-overlay.is-visible { opacity: 1; pointer-events: auto; }

.info-content {
  position: relative; width: min(90vw, 500px); max-height: 80vh; padding: 2rem;
  background: rgba(20, 20, 20, 0.9); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); overflow-y: auto; text-align: center;
}
.info-content h2 { margin-top: 0; font-weight: 400; color: #4CAF50; }
.info-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.1); display: inline-block; }
.info-content p { font-weight: 300; line-height: 1.6; margin-bottom: 1rem; }
.info-content ul { text-align: left; padding-left: 20px; font-size: 0.9em; opacity: 0.9; margin: 0.5rem 0; }
.info-content li { margin: 0.3rem 0; }
.info-link { margin-top: 2rem; }
.info-link a { color: #4CAF50; text-decoration: none; border-bottom: 1px solid rgba(76,175,80,0.5); }
.info-version { font-size: 0.8em; opacity: 0.5; margin-top: 1rem; }

.close-btn {
  position: absolute; top: 15px; right: 15px; background: none; border: none;
  font-size: 1.5rem; color: rgba(255,255,255,0.6); cursor: pointer;
}
.close-btn:hover { color: #fff; }

/* Controls */
.static-controls-zone { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 10px; }

.play-assembly {
  position: relative; width: clamp(130px, 30vw, 160px); height: clamp(130px, 30vw, 160px);
  display: flex; justify-content: center; align-items: center;
}

.headphones-glass {
  position: absolute; width: 380%; height: 380%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0.25; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  animation: float 6s ease-in-out infinite;
}
.headphones-glass svg { width: 100%; height: 100%; }
.headphones-glass path { fill: #fff !important; }
@keyframes float { 0%, 100% { transform: translate(-50%, -51%); } 50% { transform: translate(-50%, -49%); } }

#play {
  width: 80%; height: 80%; padding: 0; display: flex; justify-content: center; align-items: center;
  border-radius: 50%; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.95); cursor: pointer; transition: transform 0.3s, background 0.3s; z-index: 2;
}
#play:active { transform: scale(0.95); background: rgba(0,0,0,0.5); }
#play svg { width: 40%; height: 40%; fill: currentColor; }

/* Transport */
.transport-controls { display: flex; justify-content: space-between; width: 100%; margin-top: -30px; position: relative; z-index: 10; }

.nav-btn {
  width: clamp(50px, 12vw, 55px); height: clamp(50px, 12vw, 55px); padding: 0;
  display: flex; justify-content: center; align-items: center; border-radius: 50%;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.9);
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.5s, transform 0.3s;
}
.nav-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-btn.is-visible.is-disabled { opacity: 0.3 !important; pointer-events: none !important; }
.nav-btn:active { transform: scale(0.85); background: rgba(255,255,255,0.4); }
.nav-btn svg { width: 55%; height: 55%; }

/* Stay Here */
.stay-here-btn {
  margin: 15px auto 10px; padding: 10px 24px; border-radius: 50px;
  background: transparent; border: 1px solid rgba(255,255,255,0.5); color: rgba(255,255,255,0.8);
  font-family: inherit; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; opacity: 0; pointer-events: none; transition: all 0.4s;
}
.stay-here-btn.is-visible { opacity: 1; pointer-events: auto; }
.stay-here-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); color: #fff; }
.stay-here-btn.is-active { background: #4CAF50; border-color: #4CAF50; color: #fff; box-shadow: 0 0 15px rgba(76,175,80,0.4); font-weight: 500; }

/* Text */
.text-container { display: flex; justify-content: center; align-items: flex-start; width: 100%; min-height: 80px; }

.location {
  margin: 0; font-size: clamp(1.2rem, 5vw, 1.6rem); font-weight: 300; line-height: 1.4;
  letter-spacing: 0.03em; opacity: 0.95; text-shadow: 0 2px 4px rgba(0,0,0,0.4); transition: opacity 0.5s;
}
.location.fade-out { opacity: 0; }
.location .subtext { font-size: 0.85em; opacity: 0.8; }

.startup-line { opacity: 0; animation: fadeIn 0.6s forwards; }
.line-1 { animation-delay: 0.6s; }
.line-2 { animation-delay: 1.9s; }
@keyframes fadeIn { to { opacity: 1; } }

/* Privacy Notice */
.privacy-notice {
  display: none;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  margin-bottom: 5px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  animation: fadeIn 0.6s forwards 2.1s;
}
.privacy-notice.is-visible { display: block; }
.privacy-notice.fade-out { opacity: 0 !important; }
.privacy-notice a { color: inherit; text-decoration: underline; }

/* Headphone Hint */
.headphone-hint {
  margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: clamp(0.75rem, 2.5vw, 0.85rem); color: rgba(255,255,255,0.5);
  opacity: 0; animation: fadeIn 1s forwards 2.5s;
}

/* Partner Logo */
.partner-logo-container { display: none; width: 100%; margin: 10px 0 5px; text-align: center; opacity: 0; transition: opacity 0.5s; }
.partner-logo-container.is-visible { display: block; opacity: 1; }
.partner-logo { max-height: 140px; max-width: 85%; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }

/* Corner Logo */
.corner-logo-container {
  position: absolute; bottom: 0; right: 0; width: clamp(150px, 20vw, 250px); height: clamp(150px, 20vw, 250px);
  padding: 20px; display: flex; align-items: flex-end; justify-content: flex-end;
  background: radial-gradient(circle at bottom right, rgba(0,0,0,0.8) 0%, transparent 70%);
  pointer-events: none; z-index: 10;
}
.corner-logo { width: clamp(80px, 15vw, 120px); height: auto; }

/* Desktop */
@media (min-width: 769px) and (min-height: 501px) {
  .glass-panel { padding-top: 4rem; }
  .play-assembly { margin-bottom: 40px; }
  .headphones-glass { width: 340%; height: 340%; }
  .transport-controls { margin-top: -20px; }
}

/* Landscape */
@media (max-height: 500px) and (orientation: landscape) {
  .glass-panel {
    display: grid; grid-template-columns: 40% 60%;
    grid-template-areas: "controls text" "controls privacy" "controls logo" "controls stay" "hint hint";
    width: min(85vw, 650px); min-height: min(75vh, 280px); padding: 1rem; align-content: center;
  }
  .static-controls-zone { grid-area: controls; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 0.5rem; margin: 0; }
  .play-assembly { width: 90px; height: 90px; margin-bottom: 0; }
  .transport-controls { margin-top: 15px; position: static; justify-content: space-evenly; }
  .nav-btn { width: 40px; height: 40px; transform: none; }
  .text-container { grid-area: text; align-self: end; padding: 0 10px; min-height: auto; }
  .location { font-size: 1rem; }
  .privacy-notice { grid-area: privacy; align-self: start; font-size: 0.65rem; margin-top: 5px; }
  .partner-logo-container { grid-area: logo; align-self: center; margin: 5px 0; }
  .partner-logo { max-height: 90px; }
  .stay-here-btn { grid-area: stay; align-self: start; padding: 6px 16px; font-size: 0.8rem; margin: 5px auto; }
  .headphone-hint { grid-area: hint; margin-top: 5px; padding-top: 5px; font-size: 0.7rem; }
  .info-btn { top: 10px; right: 10px; width: 28px; height: 28px; }
}

/* Mobile Portrait */
@media (max-width: 600px) and (orientation: portrait) {
  .glass-panel { width: min(88vw, 400px); padding: 5rem 1.5rem 1.5rem; }
  .play-assembly { width: 110px; height: 110px; margin-bottom: 25px; }
  .transport-controls { margin-top: -30px; }
  .text-container { min-height: 60px; }
  .location { font-size: 1.25rem; }
  .partner-logo { max-height: 90px; }
  .stay-here-btn { margin-top: 10px; margin-bottom: 5px; padding: 8px 20px; }
  .headphone-hint { margin-top: 10px; padding-top: 10px; font-size: 0.7rem; }
}
