/* Custom styles for Pitch Pathways */

/* 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 transitions */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-in-out;
}

/* Custom focus styles */
input:focus,
select:focus,
button:focus {
  outline: none;
  ring-width: 2px;
  ring-color: #10b981;
  ring-offset-width: 2px;
}

/* Custom scrollbar for modal */
.max-h-96::-webkit-scrollbar {
  width: 6px;
}

.max-h-96::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.max-h-96::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.max-h-96::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Rating stars spacing */
.star-rating {
  letter-spacing: 1px;
}

/* Hover effects for cards */
.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Philosophy tag styles */
.philosophy-tag {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Custom button hover effects */
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Loading animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Gradient backgrounds */
.bg-gradient-hero {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

/* Modal backdrop blur */
.backdrop-blur {
  backdrop-filter: blur(8px);
}

/* Custom shadows */
.shadow-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-card-hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Typography improvements */
.text-balance {
  text-wrap: balance;
}

/* Custom form styling */
.form-input {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Club card enhancements */
.club-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  background: white;
  transition: all 0.2s ease;
}

.club-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Status indicators */
.status-verified {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Philosophy badge variations */
.philosophy-primary {
  background: linear-gradient(135deg, #10b981, #059669);
}

.philosophy-secondary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Rating display */
.rating-display {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-star {
  color: #fbbf24;
  font-size: 14px;
}

.rating-star.empty {
  color: #d1d5db;
}