/* mobile.css - Responsive overrides */

/* Tablet */
@media (max-width: 1024px) {
  [data-hero-v3] [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
  }
  [data-footer-v3] [style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  /* Hero */
  [data-hero-v3] {
    padding: 60px 16px 48px !important;
  }
  [data-hero-v3] h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }
  [data-hero-v3] p {
    font-size: 15px !important;
  }
  [data-hero-v3] [style*="max-width:640px"],
  [data-hero-v3] [style*="max-width:600px"] {
    max-width: 100% !important;
  }
  [data-hero-v3] [style*="display:flex"][style*="gap:40px"] {
    gap: 20px !important;
  }
  
  /* Tool grid */
  #toolGrid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  #toolSearch {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
  /* Extras (feature cards) */
  [data-extras-v3] [style*="display:flex"][style*="flex-wrap:wrap"] {
    flex-direction: column !important;
  }
  [data-extras-v3] [style*="min-width:240px"] {
    min-width: 100% !important;
  }
  
  /* Trust indicators */
  [data-trust-v3] [style*="display:flex"][style*="gap:32px"] {
    gap: 16px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  
  /* Testimonials */
  [data-testi-v3] [style*="display:flex"][style*="gap:16px"] {
    flex-direction: column !important;
  }
  [data-testi-v3] [style*="min-width:280px"] {
    min-width: 100% !important;
  }
  
  /* CTA */
  [data-cta-v3] {
    padding: 48px 16px !important;
  }
  [data-cta-v3] h2 {
    font-size: 24px !important;
  }
  
  /* Footer */
  [data-footer-v3] {
    padding: 32px 16px 16px !important;
  }
  [data-footer-v3] [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  [data-footer-v3] [style*="display:flex"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  /* Activity feed */
  [data-sp-v3] {
    margin: 0 auto 24px !important;
  }
  
  /* General mobile fixes */
  main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Scroll-to-top button - move up on mobile */
  #darkToggle {
    bottom: 16px !important;
    left: 16px !important;
    width: 36px !important;
    height: 36px !important;
  }
  
  /* Compare/How-to pages */
  .compare-grid, [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Blog pages */
  article {
    padding: 0 !important;
  }
  article img {
    border-radius: 8px !important;
  }
}

/* Small phones */
@media (max-width: 375px) {
  [data-hero-v3] h2 {
    font-size: 24px !important;
  }
  [data-hero-v3] [style*="display:flex"][style*="gap:12px"] {
    flex-direction: column !important;
  }
  [data-hero-v3] a {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .tool-card-v3:active {
    transform: scale(0.98) !important;
  }
  /* Disable hover effects on touch */
  .tool-card-v3:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}
