/* /public/assets/css/landing.css
   -------------------------------------------------------
   Landing background slider + fixed footer audio player
   -------------------------------------------------------
   Requirements covered:
   - Slider arrows color: #0099ff
   - Footer text/icons: yellow
   - Music player buttons: 2px yellow border
   - Fully responsive footer controls on mobile
   - No horizontal scrollbar
*/

:root{
  --landing-footer-h: 100px;
  --notes-enabled: 1; /* 1 = enabled, 0 = disabled */

  --brand-blue: #0099ff;
  --accent-yellow: #ffeb3b;
}

/* Prevent sideways scroll on landing (common cause: fixed + min-width children) */
body.public-landing{
  padding-bottom: var(--landing-footer-h);
  overflow-x: hidden;
}

/* Keep nav + main above the slider layer */
body.public-landing nav,
body.public-landing main{
  position: relative;
  z-index: 20;
}

/* ===========================
   Background slider container
   =========================== */
.landing-bg{
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #061827;
}

.landing-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(0,153,255,0.25), rgba(0,0,0,0.65));
  pointer-events:none;
}

/* slides stack */
.landing-bg-slides{
  position:absolute;
  inset:0;
}

/* each slide */
.landing-slide{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 2500ms ease;
  filter: saturate(1.05) contrast(1.05);
}

.landing-slide.is-active{
  opacity: 1;
  transform: scale(1.0);
}

/* ===========================
   Slider nav buttons
   =========================== */
.landing-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 80px;
  border: 1px solid rgba(0,153,255,0.40);
  background: rgba(0,0,0,0.25);
  color: var(--brand-blue);
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-nav:hover{
  background: rgba(0,0,0,0.38);
}

.landing-nav:active{
  transform: translateY(-50%) scale(0.98);
}

.landing-nav-prev{ left: 16px; }
.landing-nav-next{ right: 16px; }

@media (max-width: 680px){
  .landing-nav{
    width: 40px;
    height: 68px;
    font-size: 38px;
    border-radius: 14px;
  }
  .landing-nav-prev{ left: 10px; }
  .landing-nav-next{ right: 10px; }
}

/* ===========================
   Optional floating notes overlay
   =========================== */
.landing-notes-overlay{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  opacity: calc(var(--notes-enabled) * 0.55);
}

.landing-notes-overlay::before,
.landing-notes-overlay::after{
  content:"♪  ♫  ♩  ♬  ♪  ♫  ♩  ♬  ♪  ♫  ♩  ♬";
  position:absolute;
  left:-20%;
  width:140%;
  font-size: 42px;
  letter-spacing: 18px;
  color: rgba(255,255,255,0.08);
  text-shadow: 0 0 18px rgba(0,153,255,0.10);
  transform: rotate(-8deg);
  animation: notesFloat 22s linear infinite;
}

.landing-notes-overlay::after{
  top: 62%;
  font-size: 34px;
  letter-spacing: 22px;
  opacity: 0.9;
  animation-duration: 28s;
  transform: rotate(6deg);
}

.landing-notes-overlay::before{
  top: 26%;
}

@keyframes notesFloat{
  0% { transform: translateX(0) rotate(-8deg); }
  100% { transform: translateX(28%) rotate(-8deg); }
}

/* ===========================
   Landing hero bottom (spectrum + logo)
   - The CONTAINER is longer and closer to logo
   - Canvas spectrum MUST NOT affect layout
   =========================== */
.landing-hero-wrap{
  position: relative;
  padding-bottom: 58px;
}

.landing-hero-bottom{
  position:absolute;
  left:0;
  right:0;
  bottom:0;

  display:flex;
  align-items:center;
  justify-content:flex-end; /* pushes the spectrum toward the right */
  gap: 12px;
  min-height: 46px;

  /* Reserve space for the logo so spectrum never collides */
  padding-right: 66px;
}

/* Spectrum container (LONGER + RESPONSIVE)
   IMPORTANT: fixed height and relative positioning */
.landing-meter{
  position: relative;
  overflow: hidden; /* prevents canvas overflow from causing layout issues */

  display:block;

  width: clamp(220px, 58vw, 780px);
  height: 36px;

  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,153,255,0.22);
  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Canvas is absolute, so it NEVER pushes anything */
.landing-wave{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Mobile: keep it clean and avoid crowding */
@media (max-width: 576px){
  .landing-hero-wrap{ padding-bottom: 62px; }
  .landing-hero-bottom{
    padding-right: 58px;
  }
  .landing-meter{
    width: clamp(180px, 72vw, 460px);
    padding: 8px 12px;
  }
}

/* Logo MUST be pinned, never wrap/drop */
.landing-hero-logo{
  position:absolute !important;
  right: 0;
  bottom: 0;
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
  z-index: 2;
}

/* ===========================
   Fixed footer audio player
   =========================== */
.landing-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: var(--landing-footer-h);
  z-index: 30;
  background: var(--brand-blue);
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 100%;
}

/* Make all footer text/icons yellow */
.landing-footer,
.landing-footer *{
  color: var(--accent-yellow);
}

/* Player layout */
.audio-player{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  height: 100%;
  width: 100%;
  min-width: 0;
}

.audio-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.audio-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.audio-brand-logo{
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  padding: 6px;
  border: 1px solid rgba(255,235,59,0.95);
}

.audio-brand-title{
  font-weight: 700;
  line-height: 1.05;
}

.audio-brand-sub{
  font-size: 12px;
  line-height: 1.05;
  opacity: 0.92;
}

/* Select */
.audio-select-wrap{
  display:flex;
  align-items:center;
  min-width: 0;
}

.audio-select{
  border-radius: 12px;
  border: 1px solid rgba(255,235,59,0.95);
  background: rgba(0,0,0,0.18);
  padding: 8px 10px;
  outline: none;
  max-width: 260px;
}

/* Center */
.audio-center{
  flex: 1;
  min-width: 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 10px;
}

.audio-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.audio-btn{
  border: 2px solid rgba(255,235,59,0.95);
  background: rgba(0,0,0,0.18);
  color: var(--accent-yellow);
  padding: 8px 12px;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.audio-btn:hover{ background: rgba(0,0,0,0.28); }
.audio-btn:active{ transform: scale(0.98); }

.audio-btn-primary{
  background: rgba(255,255,255,0.10);
  font-weight: 700;
  min-width: 56px;
  text-align:center;
}

.audio-btn-loop{
  min-width: 110px;
  text-align:center;
}

/* Seek */
.audio-seek{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.audio-time{
  width: 52px;
  text-align:center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.audio-range{
  width: 100%;
  height: 6px;
  accent-color: var(--accent-yellow);
  min-width: 0;
}

.audio-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  min-width: 0;
}

.audio-volume{
  width: 110px;
}

/* Tablet */
@media (max-width: 992px){
  .audio-brand-sub{ display:none; }
  .audio-select{ max-width: 180px; }
}

/* Mobile */
@media (max-width: 680px){
  :root{
    --landing-footer-h: 176px;
  }

  .landing-footer{
    height: var(--landing-footer-h);
  }

  .audio-player{
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    height: 100%;
  }

  .audio-left,
  .audio-right{
    width: 100%;
    justify-content: space-between;
  }

  .audio-left{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .audio-select{
    max-width: 100%;
    width: 100%;
  }

  .audio-controls{
    justify-content: center;
    gap: 8px;
  }

  .audio-btn{
    padding: 8px 10px;
    border-radius: 12px;
  }

  .audio-seek{
    gap: 8px;
  }

  .audio-time{
    width: 46px;
    font-size: 12px;
  }

  .audio-volume{
    width: 100%;
  }
}
