/* Modern Golf-themed custom styles to complement Tailwind */

/* Smooth scrolling for all anchor links */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Glassmorphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom gradient backgrounds */
.bg-golf-gradient {
  background: linear-gradient(135deg, #22c55e 0%, #f59e0b 100%);
}

.bg-hero-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

/* Image hover effects */
.image-hover-zoom {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-zoom:hover {
  transform: scale(1.05);
}

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

.shadow-golf-lg {
  box-shadow: 
    0 10px 15px -3px rgba(34, 197, 94, 0.1), 
    0 4px 6px -2px rgba(34, 197, 94, 0.05);
}

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

/* Loading states */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus states for better accessibility */
.focus-ring:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  * {
    color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-gradient-to-r,
  .bg-gradient-to-br {
    background: #000 !important;
    color: #fff !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    background-color: #1f2937;
    color: #f9fafb;
  }
}

/* Golf-specific decorative elements */
.golf-ball-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
  background-size: 20px 20px;
}

/* Button hover effects */
.btn-golf-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transition: all 0.3s ease;
}

.btn-golf-primary:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

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

.card-golf:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Text selection */
::selection {
  background-color: #22c55e;
  color: white;
}

::-moz-selection {
  background-color: #22c55e;
  color: white;
}

.img-circle {
  border-radius: 50%;
}

.card-img-top {
  width: 100%;
  height: 40vw;
  object-fit: cover;
}

.validation-summary-errors {
  color: red;
  font-weight: bold;
  margin-bottom: 10px;
}

.validation-summary-errors ul {
  list-style: none;
  padding: 0;
}

@media (min-width: 576px) {
  .card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .carousel-inner .carousel-item {
    height: 250px;
    background-size: cover;
    background-position: center;
  }
}

@media (min-width: 768px) {
  .carousel-inner .carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
  }
}