/* Custom styles for Professional Kits Showcase */

/* Line clamp utility for text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Enhanced button hover effects */
.btn-primary {
  @apply bg-indigo-600 text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

.btn-primary:hover {
  @apply bg-indigo-700 transform scale-105 shadow-lg;
}

.btn-secondary {
  @apply bg-white text-indigo-600 px-6 py-3 rounded-lg font-semibold border-2 border-indigo-600 transition-all duration-300;
}

.btn-secondary:hover {
  @apply bg-indigo-600 text-white transform scale-105 shadow-lg;
}

/* Card hover animations */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

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

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

/* Gradient background animations */
.gradient-bg {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Modal animations */
.modal-enter {
  animation: modalEnter 0.3s ease-out forwards;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Feature icons animation */
.feature-icon {
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Search input focus effects */
.search-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

/* Category pills */
.category-pill {
  @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium transition-colors duration-200;
}

.category-pill-software {
  @apply bg-blue-100 text-blue-800 hover:bg-blue-200;
}

.category-pill-design {
  @apply bg-purple-100 text-purple-800 hover:bg-purple-200;
}

.category-pill-marketing {
  @apply bg-green-100 text-green-800 hover:bg-green-200;
}

.category-pill-analytics {
  @apply bg-yellow-100 text-yellow-800 hover:bg-yellow-200;
}

.category-pill-security {
  @apply bg-red-100 text-red-800 hover:bg-red-200;
}

.category-pill-ecommerce {
  @apply bg-indigo-100 text-indigo-800 hover:bg-indigo-200;
}

/* Price styling */
.price-tag {
  @apply text-2xl font-bold text-green-600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Stats counter animation */
.stat-number {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

/* Mobile responsiveness improvements */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .kit-card {
    margin-bottom: 1rem;
  }
  
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .dark-mode-support {
    --bg-primary: #1f2937;
    --bg-secondary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .kit-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}