/* Wedding Slider Styles */

.wedding-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #1a1a2e;
}

.wedding-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slide Styles */
.wedding-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.wedding-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.wedding-slide.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

/* Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.3) 100%);
    z-index: 1;
}

/* Content Container */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    padding: 20px;
}

.wedding-slide.active .slide-content {
    animation: slideContentIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

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

/* Title */
.slide-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

/* Description */
.slide-description {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    line-height: 1.7;
    margin: 0;
    color: #ffffff;
    max-width: 500px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 60px;
    height: 60px;
    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(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 40px;
}

.slider-next {
    right: 40px;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Pagination Dots */
.slider-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
}

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

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

.slider-dot.active {
    background: #ffffff;
    width: 40px;
    border-radius: 5px;
    transform: scale(1);
}

.slider-dot.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content {
        text-align: center;
        padding: 15px;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .slide-description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .slider-nav {
        width: 50px;
        height: 50px;
    }

    .slider-prev {
        left: 20px;
    }

    .slider-next {
        right: 20px;
    }

    .slider-pagination {
        bottom: 30px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .slider-nav {
        width: 40px;
        height: 40px;
    }

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

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slide-title {
        font-size: 1.75rem;
    }

    .slide-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.wedding-slider-wrapper.loading .wedding-slide {
    animation: pulse 2s ease-in-out infinite;
}

/* Accessibility */
.slider-nav:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.slider-dot:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

/* Custom Scrollbar (if needed) */
.wedding-slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* Prevent text selection during transitions */
.wedding-slide.transitioning {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Enhanced entrance animation for different elements */
.wedding-slide.active .slide-title {
    animation: titleSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.wedding-slide.active .slide-description {
    animation: descSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes descSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Parallax effect on scroll (optional) */
@media (prefers-reduced-motion: no-preference) {
    .wedding-slide {
        will-change: transform, opacity;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wedding-slide,
    .slide-content,
    .slide-title,
    .slide-description,
    .slider-nav,
    .slider-dot {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
