/* Mobile Layout — Bottom Nav, Full Width Content */

@media (max-width: 767px) {
  #sidebar { display: none; }
  #nav-toggle { display: none; }

  #layout {
    flex-direction: column;
    padding-bottom: var(--bottom-nav-h);
  }

  #content { padding: 12px; }

  #header { padding: 0 14px; }
  #header h1 { font-size: 12px; letter-spacing: 3px; }

  .status-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .panel { padding: 12px; }

  /* ── Bottom Nav ───────────────────────────────── */
  #bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 100;
  }

  .bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.1s;
    border-top: 2px solid transparent;
  }
  .bottom-item:hover { color: var(--text); }
  .bottom-item.active { color: var(--green); border-top-color: var(--green); }
  .bottom-item .bi-icon { font-size: 16px; }

  /* More menu for less-used pages */
  .bottom-more-panel {
    display: none;
    position: fixed;
    bottom: var(--bottom-nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    z-index: 99;
  }
  .bottom-more-panel.open { display: block; }
  .bottom-more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    text-decoration: none;
  }
  .bottom-more-item:hover { color: var(--text); background: var(--surface2); }
  .bottom-more-item.active { color: var(--green); }

  .terminal { height: 200px; }

  #hunt-panel {
    left: 0;
    right: 0;
    width: 100%;
    top: auto;
    bottom: var(--bottom-nav-h);
    max-height: 70vh;
    border-top: 2px solid var(--orange);
    border-left: none;
    border-right: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.7);
  }
}
