/* ==========================================================================
   ToolForYou - Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 3.5rem;
  }

  .site-header {
    padding: 0 0.5rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.5rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

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

  .search-shortcut {
    display: none;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Tool UI adjustments */
  .tool-grid-layout {
    grid-template-columns: 1fr !important;
  }

  .tool-actions-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tool-actions-bar .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 120px;
  }
}

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

  .search-trigger-btn span {
    display: none;
  }

  .search-trigger-btn {
    padding: 0.4rem 0.6rem;
  }

  .tool-actions-bar .btn {
    flex: 1 1 100%;
  }

  .search-modal {
    margin: 0 0.5rem;
  }
}
