/* CMS Carousel Component Styles */

/* Base Wrapper */
.cms-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.cms-carousel {
    width: 100%;
}

/* Empty State */
.cms-carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 32px;
}

/* Edit Mode */
.cms-carousel-edit {
    position: relative;
}

.cms-carousel-preview {
    position: relative;
}

.cms-carousel-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.cms-carousel-preview:hover .cms-carousel-overlay {
    opacity: 1;
}

.cms-carousel-overlay .mud-icon-button {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Slide Wrapper */
.cms-carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cms-carousel-slide-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Image Slide */
.cms-carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.cms-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cms-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 32px 24px 24px;
}

.cms-carousel-caption-text {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Content Slide */
.cms-carousel-content-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background-color: #f9f9f9;
    height: 100%;
}

.cms-carousel-content-image {
    max-width: 300px;
    margin-bottom: 24px;
}

.cms-carousel-content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cms-carousel-content-text {
    text-align: center;
    max-width: 800px;
}

/* Testimonial Slide */
.cms-carousel-testimonial-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background-color: #0d5d2c; /* EAA Green */
    height: 100%;
    text-align: center;
}

.cms-carousel-quote-icon {
    margin-bottom: 24px;
    color: #f0b323 !important; /* EAA Gold */
}

.cms-carousel-quote-text {
    color: white;
    font-style: italic;
    max-width: 800px;
    line-height: 1.8;
}

.cms-carousel-quote-attribution {
    color: #f0b323; /* EAA Gold */
    font-weight: 600;
}

/* Responsive */
@media (max-width: 959px) {
    .cms-carousel-caption {
        padding: 16px 12px 12px;
    }

    .cms-carousel-content-slide,
    .cms-carousel-testimonial-slide {
        padding: 32px 16px;
    }
}

/* Animation */
.cms-carousel-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cms-carousel-overlay,
    .cms-carousel-content {
        transition: none;
        animation: none;
    }
}
