/* ConvertNix - Mobile & Desktop Responsive Layout System */

/* Sidebar Overlay Backdrop for Mobile Drawer */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  :root {
    --header-height: 64px;
  }

  .main-layout {
    display: block;
    margin-top: var(--header-height);
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    height: 100vh;
    z-index: 2000;
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .header-search-btn {
    width: auto;
    padding: 0.55rem;
  }

  .header-search-btn span, .header-search-btn .search-kbd {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.5rem;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-search-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .popular-chips {
    justify-content: center;
  }

  .hero-illustration {
    display: none;
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }

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

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

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

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

  .footer-brand {
    grid-column: span 1;
  }

  .tool-workspace-card {
    padding: 1.25rem;
  }

  .upload-dropzone {
    padding: 2.25rem 1rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .content-wrapper {
    padding: 1rem 0.75rem calc(var(--bottom-nav-height) + 1.5rem);
  }

  .hero-section {
    padding: 1.75rem 1rem;
    border-radius: var(--radius-lg);
  }

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

  .hero-search-input-box {
    padding: 0.25rem 0.25rem 0.25rem 0.85rem;
  }

  .hero-search-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
}

