/* Hero Slider Styles for Sylflora */

/* Slider Container */
.hero-slider {
    position: relative;
    width: 100%;
    height: 50vh; /* Standardized height - responsive */
    min-height: 400px; /* Minimum height for better mobile experience */
    max-height: 700px; /* Maximum height for better desktop experience */
    overflow: hidden;
    background: #023020; /* Fallback color */
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Slide Overlay */
.hero-slide .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 3;
}

/* Slide Content */
.hero-slide .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 4;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

/* Slide Title */
.hero-slide .slide-title {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Slide Subtitle */
.hero-slide .slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    font-weight: 500;
}

/* Slide Description */
.hero-slide .slide-description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Slide Button */
.hero-slide .slide-button {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #023020;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-slide .slide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    opacity: 0.7;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #D4AF37;
    border-color: #D4AF37;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

/* Loading State */
.slider-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #023020 0%, #1a4d2e 100%);
    color: white;
    text-align: center;
    flex-direction: column;
}

.slider-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fallback Slider */
.slider-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #023020 0%, #1a4d2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slider-fallback .fallback-content {
    max-width: 600px;
    padding: 2rem;
}

.slider-fallback .fallback-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #D4AF37;
    letter-spacing: -0.5px;
}

.slider-fallback .fallback-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.slider-fallback .fallback-button {
    display: inline-block;
    background: #D4AF37;
    color: #023020;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-fallback .fallback-button:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-slider {
        height: 45vh;
        min-height: 350px;
    }
    
    .hero-slide .slide-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .hero-slide .slide-title {
        font-size: 2.5rem;
    }
    
    .hero-slide .slide-subtitle {
        font-size: 1.125rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: 15px;
    }
    
    .slider-nav.next {
        right: 15px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-slide .slide-content {
        padding: 1.25rem;
        width: 95%;
        background: rgba(0, 0, 0, 0.35);
    }
    
    .hero-slide .slide-title {
        font-size: 2rem;
    }
    
    .hero-slide .slide-subtitle {
        font-size: 1rem;
    }
    
    .hero-slide .slide-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .slider-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 35vh;
        min-height: 250px;
    }
    
    .hero-slide .slide-content {
        padding: 1rem;
        width: 95%;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .hero-slide .slide-title {
        font-size: 1.75rem;
    }
    
    .hero-slide .slide-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-slide .slide-description {
        font-size: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-slide .slide-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .slider-fallback .fallback-title {
        font-size: 2rem;
    }
    
    .slider-fallback .fallback-subtitle {
        font-size: 1rem;
    }
    
    .slider-fallback .fallback-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}