/* Custom styles for Rock Ridge Saddles & Tack */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom gradient for hero background */
.hero-gradient {
    background: linear-gradient(135deg, #fbcfe8 0%, #fef3c7 50%, #fce7f3 100%);
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(147, 51, 234, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #db2777, #f59e0b);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #be185d, #d97706);
}

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

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

/* Custom animations */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #831443, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.btn-shine:hover::after {
    animation: shine 0.8s ease-out;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translate(-100%, -100%);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translate(100%, 100%);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(180deg, #fbcfe8 0%, #fef3c7 100%);
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav,
    .animate-bounce,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .hero-gradient {
        background: #fbcfe8 !important;
    }
}
