/* =========================================================
   ShamelessFest — PWA mobile styles (bottom nav + install)
   ========================================================= */

@media (max-width: 800px) {

  /* The fixed PWA navigation replaces the mobile hamburger menu. */
  #mobile-nav-toggle {
    display: none !important;
  }

  /* On mobile, Line-Up and Programma have dedicated PWA pages. */
  .home-page #lineup,
  .home-page #schedule,
  .home-page .hero-btns .btn-primary-yellow,
  .home-page .nav-menu a[href="#lineup"],
  .home-page .nav-menu a[href="#schedule"],
  .home-page #mobile-nav a[href="#lineup"],
  .home-page #mobile-nav a[href="#schedule"],
  .home-page .footer-links a[href="#lineup"],
  .home-page .footer-links a[href="#schedule"] {
    display: none !important;
  }

  body {
    padding-bottom: 78px; /* space for the fixed bottom nav */
  }

  /* ---------- Bottom Navigation Bar ---------- */
  .pwa-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(10, 10, 15, 0.97);
    border-top: 1px solid rgba(255, 229, 0, 0.25);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .pwa-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 9px;
    color: #b8b8c8;
    text-decoration: none;
    font-family: 'Montserrat', var(--font, sans-serif);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .pwa-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .pwa-nav-item .pwa-nav-label {
    line-height: 1;
  }

  .pwa-nav-item.active {
    color: #ffe500;
  }

  .pwa-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #ffe500;
  }

  /* ---------- Install Prompt (A2HS) ---------- */
  .pwa-install {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 92px;
    z-index: 9998;
    display: none;
    align-items: center;
    gap: 12px;
    background: rgba(22, 22, 31, 0.98);
    border: 1px solid rgba(255, 229, 0, 0.35);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', var(--font, sans-serif);
  }
  .pwa-install.show { display: flex; }

  .pwa-install img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    flex: 0 0 auto;
  }
  .pwa-install-txt {
    flex: 1;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
  }
  .pwa-install-txt small {
    display: block;
    color: #b8b8c8;
    font-weight: 500;
  }
  .pwa-install-btn {
    flex: 0 0 auto;
    background: #ffe500;
    color: #111;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
  }
  .pwa-install-close {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: #b8b8c8;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
  }
}

@media (min-width: 801px) {
  .pwa-nav, .pwa-install { display: none !important; }
}
