/* Trending Categories Mobile Fix */

/* Tablet & Desktop */
@media (min-width: 992px) {
  .trending-categories-container {
    gap: 1.5rem;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  /* Reduce gap on tablet */
  .trending-categories-container {
    gap: 1rem !important;
  }

  /* Adjust card sizing for tablet */
  .trending-categories-container > a {
    flex: 0 0 calc(33.333% - 0.8rem) !important;
    min-width: 140px !important;
    padding: 0 5px !important;
  }

  /* Reduce card height */
  .trending-card {
    min-height: 130px !important;
  }

  /* Adjust font size */
  .trending-card h3 {
    font-size: 14px !important;
  }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
  /* Container padding */
  .trending-categories-container {
    gap: 0.75rem !important;
  }

  /* Card width - 2 columns on mobile */
  .trending-categories-container > a {
    flex: 0 0 calc(50% - 0.5rem) !important;
    min-width: 120px !important;
    padding: 0 3px !important;
  }

  /* Reduce card height on mobile */
  .trending-card {
    min-height: 110px !important;
  }

  /* Smaller font on mobile */
  .trending-card h3 {
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
  }

  /* Adjust section padding */
  .trending-categories-section {
    padding: 40px 15px !important;
  }
}

/* Extra Small Mobile (< 576px) */
@media (max-width: 575px) {
  .trending-categories-container {
    gap: 0.5rem !important;
  }

  .trending-categories-container > a {
    flex: 0 0 calc(50% - 0.3rem) !important;
    min-width: 100px !important;
    padding: 0 2px !important;
  }

  .trending-card {
    min-height: 100px !important;
  }

  .trending-card h3 {
    font-size: 11px !important;
  }

  .trending-categories-section {
    padding: 30px 10px !important;
  }
}

/* Title responsive */
@media (max-width: 767px) {
  .trending-categories-section .section-title {
    font-size: 20px !important;
  }

  .trending-categories-section .section-hint {
    font-size: 13px !important;
  }
}

@media (max-width: 575px) {
  .trending-categories-section .section-title {
    font-size: 18px !important;
  }

  .trending-categories-section .section-hint {
    font-size: 12px !important;
  }
}

/* Hide scrollbar for mobile */
@media (max-width: 767px) {
  .trending-categories-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  .trending-categories-container::-webkit-scrollbar {
    height: 0;
    display: none;
  }
}
