/* Global responsive rules for all pages */

@media (max-width: 1200px) {
  .shell,
  .container {
    width: min(96%, 1100px);
  }
}

@media (max-width: 992px) {
  .topbar,
  .top-bar {
    padding: 12px;
  }

  .top-actions {
    gap: 6px;
  }

  .hero {
    padding: 20px;
  }

  .stats,
  .hero-stats,
  .stadium-grid,
  .booking-grid,
  .stadiums {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar,
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filters,
  .filters-primary,
  .advanced-filters,
  .form-grid,
  .time-pair,
  .queue-grid {
    grid-template-columns: 1fr !important;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .owner-row {
    grid-template-columns: 1fr;
  }

  .owner-actions,
  .actions,
  .booking-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .modal-stadium-head {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    margin: 10px;
  }

  .auth-shell {
    grid-template-columns: 1fr !important;
  }

  .brand-panel {
    display: none;
  }

  .search-switch {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .panel {
    padding: 14px;
    border-radius: 14px;
  }

  h1 {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }

  .ghost-link,
  .btn,
  .btn-main,
  .btn-light {
    width: 100%;
    justify-content: center;
  }

  .card img,
  .card-media,
  .row img {
    height: 150px;
  }

  .ticket-no {
    font-size: 0.9rem;
  }

  .meta {
    font-size: 0.75rem;
  }

  .search-mode {
    flex: 1 1 100%;
    justify-content: center;
  }

  .modal-content {
    border-radius: 12px;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 16px);
  }

  .panel {
    padding: 12px;
  }

  .search-mode {
    font-size: 0.78rem;
    padding: 9px 10px;
  }

  .modal-dialog {
    margin: 8px;
  }
}
