/* ==========================================================================
   HomeBased Jobs Portal - Responsive Design Media Queries
   Strict Vanilla CSS3
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Laptop / Desktop Breakpoint (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  .nav-pill-bar {
    display: none; /* Switch to mobile drawer menu */
  }

  .mobile-menu-trigger {
    display: flex;
  }

  .jobs-page-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
    margin-bottom: 24px;
  }

  .job-details-grid {
    grid-template-columns: 1fr;
  }

  .job-details-sidebar {
    position: static;
    order: -1;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   2. Tablet Breakpoint (max-width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-main-title {
    font-size: 2.25rem;
  }

  .hero-search-box {
    flex-direction: column;
    border-radius: var(--radius-xl);
    padding: 12px;
  }

  .hero-search-icon {
    display: none;
  }

  .hero-search-input {
    width: 100%;
    padding: 10px;
  }

  .hero-category-select {
    width: 100%;
    margin-bottom: 8px;
  }

  .hero-search-box .btn {
    width: 100%;
  }

  .ratio-bar {
    gap: 14px;
    padding: 14px 18px;
  }

  .ratio-item {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .ratio-divider {
    display: none;
  }

  .enrollment-card {
    padding: 20px;
  }

  .preview-grid-details {
    grid-template-columns: 1fr;
  }

  .sheet-options-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .form-card {
    padding: 24px 18px;
  }
}

/* --------------------------------------------------------------------------
   3. Small Mobile Breakpoint (max-width: 480px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .hero-main-title {
    font-size: 1.85rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .enrollment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .job-card-actions {
    grid-template-columns: 1fr;
  }

  .preview-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .timer-badge-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .profile-header-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-user-info {
    flex-direction: column;
  }

  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }
}
