/**
 * Custom styles for LeadFitness Category Grids
 * These styles complement Tailwind CSS for better category display
 */

/* Category Card Hover Effects */
.lf-category-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lf-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.lf-category-card img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lf-category-card:hover img {
  transform: scale(1.1);
}

/* Hero Section Text Shadow for better readability */
.lf-hero-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Grid Gap Override (if needed) */
@media (max-width: 767px) {
  .lf-category-grid {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .lf-category-grid {
    gap: 1.5rem;
  }
}

/* Loading State (optional) */
.lf-category-card.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Empty State Image Placeholder */
.lf-category-placeholder {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Brand Red Accent on Hover */
.text-brand-red {
  color: #9c0100;
}

/* Ensure images don't overflow on very small screens */
@media (max-width: 374px) {
  .lf-category-card h3 {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .lf-category-card img {
    height: 120px;
    object-fit: cover;
  }
}

/* Print Styles (hide decorative elements when printing) */
@media print {
  .lf-category-card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
  
  .lf-category-card:hover {
    transform: none;
  }
}
