/* ── PWA / Mobile Optimisation ─────────────────── */

/* Full screen when installed as PWA */
@media (display-mode: standalone) {
  .browser-only { display: none !important; }
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .navbar {
    padding-top: max(12px, env(safe-area-inset-top));
  }
}

/* Mobile touch targets */
@media (max-width: 768px) {
  button, a, .clickable {
    min-height: 44px;
    min-width: 44px;
  }
  input, select, textarea {
    font-size: 16px !important;
  }
  .scrollable {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
  }
  * {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ── Bottom Navigation for Mobile ─────────────── */
.bottom-nav { display: none; }

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg2, #090d18);
    border-top: 1px solid rgba(153,102,255,0.3);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text3, #4a5568);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
    min-height: auto;
    min-width: auto;
  }
  .bottom-nav-item.active { color: var(--accent, #9966ff); }
  .bottom-nav-item svg { width: 22px; height: 22px; }
  body { padding-bottom: 70px; }
}
