/* css/components/responsive.css */

/*
 * Mobile layout applies when:
 * - viewport width ≤768px (phones portrait, narrow windows), or
 * - landscape with limited height (typical phone horizontal: wide width would otherwise skip mobile-only rules).
 */
/* ============================================
   DESKTOP DEFAULTS
   ============================================ */
.header-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ============================================
   LEGACY MOBILE-ONLY SCREEN
   Kept hidden so the real app remains available
   on phones.
   ============================================ */
#mobile-only-screen {
  display: none !important;
}

@media (max-width: 768px), (max-height: 520px) and (orientation: landscape) and (max-width: 1024px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    min-height: 100dvh;
    background: linear-gradient(180deg, #e9f7ff 0%, #f7fbff 44%, #f4f7ff 100%);
    -webkit-text-size-adjust: 100%;
  }

  .main-header,
  .main-footer {
    display: none !important;
  }

  #app {
    display: block;
    min-width: 0;
  }

  .app-container {
    max-width: 100%;
    width: 100%;
    padding: max(14px, env(safe-area-inset-top)) 12px max(26px, env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  #main-content {
    min-width: 0;
    width: 100%;
  }

  img,
  svg,
  canvas,
  video {
    max-width: 100%;
  }

  button,
  [role="button"],
  .part-number {
    min-height: 44px;
  }

  .page-skeleton {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
  }

  .page-skeleton-sidebar {
    display: none;
  }
}
