/* Custom CSS for Sports Club Website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-60px) translateX(-10px);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.7;
    }
}

@keyframes slideProgress {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Animation delays */
.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

/* Custom gradients */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(30, 58, 138, 0.3) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.text-gradient {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom shadows */
.card-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-shadow-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Text utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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;
}

/* Custom buttons */
.btn-primary {
    @apply bg-blue-600 text-white font-semibold px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors;
}

.btn-secondary {
    @apply bg-gray-600 text-white font-semibold px-6 py-3 rounded-lg hover:bg-gray-700 transition-colors;
}

.btn-outline {
    @apply border-2 border-blue-600 text-blue-600 font-semibold px-6 py-3 rounded-lg hover:bg-blue-600 hover:text-white transition-colors;
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors resize-none;
}

.form-select {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors;
}

/* Navigation styles */
.nav-link {
    @apply text-gray-700 hover:text-blue-600 font-medium transition-colors;
}

.nav-link.active {
    @apply text-blue-600;
}

/* Advanced Hero Slider Styles */
.hero-slider-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1 !important;
    z-index: 2;
}

.hero-slide.active .hero-title span,
.hero-slide.active .hero-subtitle span,
.hero-slide.active .hero-description span,
.hero-slide.active .hero-button {
    transform: translateY(0);
    opacity: 1;
}

/* Ensure first slide is visible by default */
.hero-slide:first-child {
    opacity: 1 !important;
    z-index: 2;
}

/* Force visibility for debugging */
.hero-slider-container .hero-slide:first-child {
    opacity: 1 !important;
    z-index: 2 !important;
    display: block !important;
}

/* Fallback if no slides are active */
.hero-slider-container:not(:has(.hero-slide.active)) .hero-slide:first-child {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* Background Image Parallax Effect */
.hero-slide .bg-cover {
    transition: transform 20s ease-out;
}

.hero-slide.active .bg-cover {
    transform: scale(1.1);
}

/* Particle Animation */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle-2 {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle-4 {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle-5 {
    width: 14px;
    height: 14px;
    top: 50%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 11s;
}

/* Advanced Navigation Dots */
.slider-nav-dot {
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
}

.slider-nav-dot.active .dot-progress {
    animation: slideProgress 6s linear;
    transform: scale(1);
}

.slider-nav-dot.active .absolute:first-child {
    background: rgba(255, 255, 255, 0.8);
}

/* Navigation Arrows */
.slider-prev,
.slider-next {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.slider-prev:active,
.slider-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hero Content Animations */
.hero-title span,
.hero-subtitle span,
.hero-description span,
.hero-button {
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scroll Indicator Animation */
.hero-slide .animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(-50%, 0, 0);
    }
    40%, 43% {
        transform: translate3d(-50%, -10px, 0);
    }
    70% {
        transform: translate3d(-50%, -5px, 0);
    }
    90% {
        transform: translate3d(-50%, -2px, 0);
    }
}

/* Button Hover Effects */
.hero-button a {
    position: relative;
    overflow: hidden;
}

.hero-button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-button a:hover::before {
    left: 100%;
}

/* Responsive Design for Hero */
@media (max-width: 1024px) {
    .hero-slide .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-slide .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-slide .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        min-height: 350px;
    }
    
    .hero-slide .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-slide .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .hero-slide .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 3rem;
        height: 3rem;
    }
    
    .slider-prev {
        left: 1rem;
    }
    
    .slider-next {
        right: 1rem;
    }
    
    .slider-nav-dot {
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .particle {
        display: none;
    }
    
    .hero-slide .animate-bounce {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        min-height: 300px;
    }
    
    .hero-slide .hero-title {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-slide .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-slide .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    .hero-slide .hero-button a {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .slider-nav-dot {
        width: 0.625rem;
        height: 0.625rem;
    }
}

/* Loading State for Slider */
.hero-slider-container.loading {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
}

.hero-slider-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Accessibility Improvements */
.slider-prev:focus,
.slider-next:focus,
.slider-nav-dot:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-title span,
    .hero-subtitle span,
    .hero-description span,
    .hero-button,
    .particle {
        animation: none !important;
        transition: none !important;
    }
    
    .hero-slide .bg-cover {
        transform: none !important;
    }
}

/* Slider styles */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    transform: scale(1.2);
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.focus-visible:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Video responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Lazy loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #ef4444;
}

.notification.warning {
    background-color: #f59e0b;
}

.notification.info {
    background-color: #3b82f6;
} 