/* ==========================================================================
   SMART4TALENT RESPONSIVE STYLESHEET
   Media Queries & Mobile Off-Canvas Drawer Navigation
   ========================================================================== */

/* Mobile Drawer Elements */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  animation: overlayFadeIn 200ms ease;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background: var(--neutral-0);
  box-shadow: var(--shadow-2xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  animation: drawerSlideIn 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-nav-group-title {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-400);
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--neutral-800);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

/* Large Tablets & Small Desktops (<= 1200px) */
@media (max-width: 1200px) {
  .footer-top-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

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

  .hero-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center !important;
  }

  .hero-trust-badges {
    justify-content: center !important;
  }

  .browse-jobs-layout {
    grid-template-columns: 1fr !important;
  }

  .filters-sidebar {
    position: static !important;
    width: 100% !important;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .banner-actions {
    display: none;
  }

  .banner-text {
    font-size: 0.75rem;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

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

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

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

  .ai-bot-panel {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 84px;
    height: 480px;
  }

  .ai-bot-trigger {
    right: 16px;
    bottom: 20px;
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
  }

  .modal-dialog {
    max-width: 100%;
    margin: 0.5rem;
  }

  .modal-header-gradient {
    padding: 1.25rem 1.5rem 1rem;
  }

  .modal-body-content {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .hero-search-box {
    flex-direction: column !important;
    padding: 0.75rem !important;
  }

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

  .job-card-top {
    flex-direction: column;
  }

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

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