/* ==========================================================================
   RankCraft SEO Tools - Responsive Stylesheet
   Breakpoints: 1200px | 992px | 768px | 576px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breakpoint: <= 1200px
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Breakpoint: <= 992px (Tablets & Small Laptops)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .tool-grid-2col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1.5rem;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

/* --------------------------------------------------------------------------
   Breakpoint: <= 768px (Tablets)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

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

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

  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-search-box {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .hero-search-box input {
    width: 100%;
    padding: 0.25rem;
  }

  .hero-search-submit {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }

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

  .tool-workspace {
    padding: 1.25rem;
  }

  .tool-header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-btn-group {
    width: 100%;
    justify-content: stretch;
  }

  .action-btn-group .btn {
    flex: 1;
    text-align: center;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* --------------------------------------------------------------------------
   Breakpoint: <= 576px (Mobile Phones)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .cat-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

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

  .score-circle {
    width: 120px;
    height: 120px;
  }

  .score-number {
    font-size: 2rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
