/* SEO Carousel Frontend Styles */

.seo-carousel-container {
    max-width: 100%;
    margin: 2rem auto;
    position: relative;
}

.seo-carousel-swiper {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.carousel-slide-content img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 2rem 1.5rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.carousel-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 1rem !important;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
}

/* Lazy Loading */
.swiper-lazy-preloader {
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    border: 4px solid #007bff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: swiper-preloader-spin 1s infinite linear;
}

@keyframes swiper-preloader-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-slide-content img {
        max-height: 400px;
    }
    
    .carousel-caption {
        font-size: 0.85rem;
        padding: 1.5rem 1rem 0.75rem;
    }
    
    .carousel-counter {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-slide-content img {
        max-height: 300px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 32px;
        height: 32px;
    }
}

/* Accessibility */
.seo-carousel-swiper:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .carousel-slide-content {
        background: #1a1a1a;
    }
    
    .swiper-pagination-bullet {
        background: #ccc;
    }
}
