/* ==========================================================================
   MasalSaatim - Responsive Media Breakpoints CSS
   ========================================================================== */

/* Tablet Breakpoint (768px and below) */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  /* Filter lists grid on mobile */
  .stories-layout {
    grid-template-columns: 1fr;
  }

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

  /* User panel dashboard on mobile */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    margin-bottom: 24px;
  }

  /* Navbar hidden controls */
  .navbar-nav {
    display: none !important;
  }

  /* Grids adjustments */
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}

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

  .hero-actions .btn,
  .auth-actions .btn,
  .form-actions .btn,
  .card-actions .btn {
    width: 100%;
  }

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

  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .job-status-card, .legal-layout {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }
}

/* Desktop drawer toggles */
.hamburger-btn {
  display: none;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-soft);
    color: var(--color-text);
  }
}

/* Slide Drawer Mobile Panel */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: calc(-1 * min(280px, calc(100vw - 48px)));
  width: min(280px, calc(100vw - 48px));
  height: 100%;
  z-index: 1000;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition-normal);
}

.mobile-nav-drawer.open {
  transform: translateX(min(280px, calc(100vw - 48px)));
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
