/**
 * ZORVIKON — Mobile Responsive Styles (Breakpoints < 1024px and < 768px)
 */

@media (max-width: 1023.98px) {
  .site-header {
    height: 64px;
  }

  .mobile-nav-drawer {
    top: 64px;
  }

  .brand-logo img,
  .brand-logo svg {
    height: 32px;
  }

  .header-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding-top: var(--zv-space-12);
    padding-bottom: var(--zv-space-12);
  }

  .section-header {
    margin-bottom: var(--zv-space-8);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--zv-space-8);
  }

  .card {
    padding: var(--zv-space-5);
  }

  .card-media {
    height: 160px;
  }

  /* Make sure tables or code blocks scroll gracefully without breaking page layout */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: var(--zv-space-4);
  }

  /* Filter bar touch friendliness */
  .filter-bar {
    padding-left: var(--zv-space-1);
    padding-right: var(--zv-space-1);
  }

  /* Search input mobile */
  .search-box {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--zv-space-4);
    padding-right: var(--zv-space-4);
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-footer .btn {
    width: 100%;
  }

  .section-tag {
    font-size: 0.7rem;
  }

  .toast-container {
    left: var(--zv-space-4);
    right: var(--zv-space-4);
    bottom: var(--zv-space-4);
  }

  .toast {
    max-width: 100%;
    width: 100%;
  }
}
