/* Modern Swiper Carousel Styles */

/* Base carousel wrapper */
.msc-carousel-wrapper {
    width: 100%;
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

/* Swiper container */
.swiper-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    min-height: 200px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
}

/* Swiper wrapper */
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

/* Swiper slide */
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    transition-property: transform;
}

/* Slide content container */
.msc-slide-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Image styling */
.msc-slide-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
}

/* Enhanced hover effects for images */
.msc-slide-image:hover {
    transform: scale(1.02);
}

/* Navigation buttons */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 3rem;
    margin-top: -1.5rem;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.swiper-button-prev {
    left: 1rem;
}

.swiper-button-next {
    right: 1rem;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-family: swiper-icons;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
}

/* Pagination */
.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: all 0.3s ease;
    transform: translate3d(0, 0, 0);
    z-index: 10;
    bottom: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.6);
    opacity: 0.8;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #3b82f6;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.swiper-pagination-bullet-active::before {
    width: 6px;
    height: 6px;
    background: white;
}

.swiper-pagination-bullet:hover {
    opacity: 1;
    background: rgba(59, 130, 246, 0.8);
    border-color: rgba(59, 130, 246, 0.9);
    transform: scale(1.1);
}

.swiper-pagination-bullet:hover::before {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
}

/* Slide counter */
.msc-slide-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
}

/* Empty state */
.msc-carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #6c757d;
    padding: 2rem;
    text-align: center;
    position: relative;
    background: #f8f9fa;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
}



.msc-carousel-empty > div {
    position: relative;
    z-index: 10;
}

.msc-carousel-empty svg {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
    opacity: 0.8;
    margin-left: auto;
    margin-right: auto;
}

.msc-carousel-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #343a40;
}

.msc-carousel-empty p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    color: #6c757d;
}

.msc-cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.msc-cta-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 2.5rem;
        height: 2.5rem;
        margin-top: -1.25rem;
    }

    .swiper-button-prev {
        left: 0.5rem;
    }

    .swiper-button-next {
        right: 0.5rem;
    }

    .swiper-pagination {
        bottom: 1rem !important;
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .swiper-pagination-bullet-active::before {
        width: 4px;
        height: 4px;
        background: white;
    }

    .swiper-pagination-bullet:hover::before {
        width: 3px;
        height: 3px;
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 480px) {
    .swiper-pagination {
        bottom: 0.75rem !important;
        padding: 0.4rem 0.6rem;
        gap: 0.2rem;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .swiper-pagination-bullet-active::before {
        width: 3px;
        height: 3px;
        background: white;
    }

    .swiper-pagination-bullet:hover::before {
        width: 2px;
        height: 2px;
        background: rgba(255, 255, 255, 0.9);
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 2rem;
        height: 2rem;
        margin-top: -1rem;
    }

    .swiper-button-prev {
        left: 0.25rem;
    }

    .swiper-button-next {
        right: 0.25rem;
    }
}

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

.msc-loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
}

/* Accessibility */
.swiper-button-prev:focus,
.swiper-button-next:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth transitions */
.swiper-slide-active {
    z-index: 2;
}

.swiper-slide-next,
.swiper-slide-prev {
    z-index: 1;
}

/* Custom scrollbar for touch devices */
.swiper-container::-webkit-scrollbar {
    display: none;
}

.swiper-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}