/**
 * Splide Slider Styles for MVOL Theme
 * Matches gold (#a4228d) theme
 */

/* ============================================
   SLIDER BLOCK WRAPPER
   ============================================ */

.mvol-slider-block {
    margin: 2rem 0;
    position: relative;
}

.mvol-splide-slider {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   SLIDE CONTENT
   ============================================ */

.mvol-slide-content {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mvol-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   TEXT OVERLAY
   ============================================ */

.mvol-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 3rem 2rem 2rem 2rem;
    color: #ffffff;
}

.mvol-slide-text {
    max-width: 800px;
    margin: 0 auto;
}

.mvol-slide-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mvol-slide-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.mvol-slide-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #a4228d;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mvol-slide-button:hover {
    background: #c5a028;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ============================================
   SPLIDE CORE OVERRIDES
   ============================================ */

/* Navigation Arrows */
.mvol-splide-slider .splide__arrow {
    background: rgba(212, 175, 55, 0.9);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mvol-splide-slider .splide__arrow:hover {
    background: rgba(212, 175, 55, 1);
    transform: scale(1.1);
}

.mvol-splide-slider .splide__arrow svg {
    fill: #1a1a1a;
}

.mvol-splide-slider .splide__arrow--prev {
    left: 1rem;
}

.mvol-splide-slider .splide__arrow--next {
    right: 1rem;
}

.mvol-splide-slider .splide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pagination Dots */
.mvol-splide-slider .splide__pagination {
    bottom: 1rem;
    padding: 0;
}

.mvol-splide-slider .splide__pagination__page {
    background: rgba(255,255,255,0.5);
    width: 12px;
    height: 12px;
    margin: 0 0.4rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mvol-splide-slider .splide__pagination__page:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.mvol-splide-slider .splide__pagination__page.is-active {
    background: #a4228d;
    border-color: #ffffff;
    transform: scale(1.3);
}

/* ============================================
   AUTOPLAY PROGRESS BAR (Optional)
   ============================================ */

.mvol-splide-slider .splide__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
}

.mvol-splide-slider .splide__progress__bar {
    background: #a4228d;
    height: 100%;
    transition: width 0.3s ease;
}

/* ============================================
   SLIDER VARIATIONS
   ============================================ */

/* Fade Type */
.mvol-splide-slider[data-splide*='"type":"fade"'] .splide__slide {
    transition: opacity 0.8s ease;
}

/* No Overlay Variation (image only slides) */
.mvol-slide-content:not(:has(.mvol-slide-overlay)) {
    cursor: pointer;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .mvol-slide-content {
        height: 400px;
    }

    .mvol-slide-title {
        font-size: 1.75rem;
    }

    .mvol-slide-description {
        font-size: 1rem;
    }

    .mvol-slide-overlay {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    .mvol-splide-slider .splide__arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .mvol-slide-content {
        height: 350px;
    }

    .mvol-slide-title {
        font-size: 1.5rem;
    }

    .mvol-slide-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .mvol-slide-overlay {
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .mvol-slide-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Move arrows inside for mobile */
    .mvol-splide-slider .splide__arrow {
        width: 2rem;
        height: 2rem;
    }

    .mvol-splide-slider .splide__arrow--prev {
        left: 0.5rem;
    }

    .mvol-splide-slider .splide__arrow--next {
        right: 0.5rem;
    }

    /* Smaller dots on mobile */
    .mvol-splide-slider .splide__pagination__page {
        width: 10px;
        height: 10px;
        margin: 0 0.3rem;
    }
}

@media (max-width: 480px) {
    .mvol-slide-content {
        height: 300px;
    }

    .mvol-slide-title {
        font-size: 1.25rem;
    }

    .mvol-slide-description {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.mvol-splide-slider .splide__arrow:focus,
.mvol-splide-slider .splide__pagination__page:focus {
    outline: 3px solid #a4228d;
    outline-offset: 2px;
}

.mvol-slide-button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .mvol-splide-slider .splide__slide,
    .mvol-splide-slider .splide__track,
    .mvol-slide-button,
    .mvol-splide-slider .splide__arrow,
    .mvol-splide-slider .splide__pagination__page {
        transition: none;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.mvol-splide-slider:not(.is-initialized) {
    opacity: 0.5;
}

.mvol-splide-slider.is-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}