/* ============================================================================
   NATURE HOTSPOT v8.0 - Stylesheet
   ============================================================================ */


/* ═══════════════════════════════════════════════════════════════════════════
   1. RESET & GLOBALS
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::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;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

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

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


/* ═══════════════════════════════════════════════════════════════════════════
   3. SURVEY PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.survey-panel {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 40px);
  max-width: 340px;
  background: rgba(15, 25, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 20px;
  padding: 15px 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.survey-panel.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.survey-question {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  letter-spacing: 0.02em;
}

.survey-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.survey-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  width: 45px;
}

.survey-icon {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.7);
}

.survey-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.icon-anxious { 
  color: #ff8a80; 
}

.icon-calm { 
  color: #81c784; 
}

.survey-scale {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-shrink: 0;
}

.survey-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.survey-option:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.survey-option:active {
  background: #4CAF50;
  border-color: #4CAF50;
  transform: scale(1.15);
}

.survey-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
}

.survey-option:hover .survey-dot {
  background: rgba(255, 255, 255, 0.7);
}

.survey-option:active .survey-dot {
  background: #fff;
  transform: scale(1.2);
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. PLAY BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

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

#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: 32%;
  height: 32%;
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. TRANSPORT BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.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%;
  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);
  background-color: transparent;
  transition: 
    opacity 0.5s, 
    transform 0.3s, 
    background-color 2.5s ease-out;
}

.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.flash-active {
  background-color: rgba(126, 221, 129, 0.6);
  transition: none;
}

.nav-btn:active {
  transform: scale(0.85);
}

.nav-btn svg {
  width: 55%;
  height: 55%;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. TEXT & STATUS
   ═══════════════════════════════════════════════════════════════════════════ */

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

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


/* ═══════════════════════════════════════════════════════════════════════════
   7. 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;
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. STAY HERE BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

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


/* ═══════════════════════════════════════════════════════════════════════════
   9. INFO BUTTON & OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

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


/* ═══════════════════════════════════════════════════════════════════════════
   10. 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));
}


/* ═══════════════════════════════════════════════════════════════════════════
   11. 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;
}


/* ═══════════════════════════════════════════════════════════════════════════
   12. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

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

@keyframes float {
  0%, 100% { transform: translate(-50%, -51%); }
  50% { transform: translate(-50%, -49%); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   13. MEDIA QUERIES
   ═══════════════════════════════════════════════════════════════════════════ */

/* 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 Mobile */
@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-between;
    width: 110%;
    padding: 0 5px;
  }
  
  .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;
  }
  
  .survey-panel {
    bottom: 20px;
    right: 20px;
    left: auto;
    transform: translateY(20px);
    width: 280px;
  }
  
  .survey-panel.is-visible {
    transform: translateY(0);
  }
}

/* Portrait Mobile */
@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: 0;
    width: 120%;
    justify-content: space-between;
    padding: 0 10px;
  }
  
  .nav-btn {
    width: 50px;
    height: 50px;
  }
  
  .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;
  }
  
  .survey-option {
    width: 26px;
    height: 26px;
  }
  
  .survey-scale {
    gap: 4px;
  }
  
  .survey-icon {
    width: 24px;
    height: 24px;
  }
  
  .survey-icon-wrapper {
    width: 40px;
  }
  
  .survey-label {
    font-size: 0.6rem;
  }
}
