/* ========================================
   SWASTHA SEWA - Responsive Styles
   Mobile-first approach
   ======================================== */

/* Large screens (1400px+) - 4 column grid */
@media (min-width: 1400px) {
  .disease-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero h1 {
    font-size: 4rem;
  }
}

/* Desktop (1200px) - 3 column grid */
@media (min-width: 1200px) and (max-width: 1399px) {
  .disease-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet landscape (1024px) - 2 column grid */
@media (min-width: 1024px) and (max-width: 1199px) {
  .disease-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px) */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    flex-direction: column;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .disease-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .quick-stats {
    gap: var(--spacing-lg);
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-controls {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (480px) */
@media (max-width: 767px) {
  html {
    font-size: 15px;
  }
  
  .nav-brand {
    font-size: 1.4rem;
  }
  
  .nav-brand .logo-icon {
    font-size: 1.6rem;
  }
  
  .stats-badge {
    display: none;
  }
  
  .hero {
    min-height: 90vh;
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .search-bar input {
    padding: 14px 18px;
    font-size: 1rem;
  }
  
  .search-bar button {
    padding: 0 18px;
    font-size: 0.9rem;
  }
  
  .quick-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .category-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .disease-grid {
    grid-template-columns: 1fr;
  }
  
  .disease-grid.list-view .disease-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-controls {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-actions .btn {
    width: 100%;
  }
  
  .alphabet-bar {
    justify-content: center;
  }
  
  .results-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .modal {
    max-height: 95vh;
    margin: 0;
    border-radius: var(--radius-md);
  }
  
  .modal-header {
    padding: var(--spacing-md);
  }
  
  .modal-body {
    padding: var(--spacing-md);
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .scroll-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
  
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  
  .toast {
    max-width: 100%;
  }
}

/* Small mobile (360px and below) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  
  .search-container {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .search-bar {
    border-radius: 0;
  }
  
  .alpha-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .category-card {
    padding: var(--spacing-lg);
  }
}