/* ==========================================================================
   JPG to PDF - Responsive Stylesheet
   Breakpoints: 320px, 480px, 768px, 1024px, 1280px+
   ========================================================================== */

/* Tablet & Smaller Desktop (Max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets and Mobile (Max-width: 768px) */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle-btn {
    display: flex;
  }

  .hero-section {
    padding: 1.75rem 0 1rem 0;
  }

  .upload-dropzone {
    padding: 2.25rem 1.25rem;
    margin: 1rem;
  }

  .upload-icon-circle {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }

  .upload-icon-circle svg {
    width: 28px;
    height: 28px;
  }

  .upload-title {
    font-size: 1.2rem;
  }

  .btn-upload-select {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }

  .workspace-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-actions {
    width: 100%;
    justify-content: space-between;
  }

  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
  }

  .thumbnail-box {
    height: 120px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .btn-convert-primary {
    width: 100%;
  }

  .result-meta-card {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
  }

  .btn-download-primary {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile Screens (Max-width: 480px) */
@media screen and (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .image-card {
    padding: 0.5rem;
  }

  .thumbnail-box {
    height: 100px;
  }

  .card-btn {
    padding: 4px;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* Very Small Mobile Screens (320px) */
@media screen and (max-width: 340px) {
  .images-grid {
    grid-template-columns: 1fr;
  }
}
