
/* WDC SocialCarousel Pro Styles */
.wdc-instacarousel-container {
    width: 100%;
    margin: 20px 0;
}

.wdc-instacarousel-container .swiper {
    width: 100%;
    padding: 20px 0 50px 0;
}

.wdc-instacarousel-container .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdc-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wdc-image-container .wdc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.wdc-image-container:hover .wdc-image {
    transform: scale(1.05);
}

.wdc-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.wdc-loading-placeholder::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

.wdc-instacarousel-container .swiper-pagination {
    bottom: 10px;
}

.wdc-instacarousel-container .swiper-button-next,
.wdc-instacarousel-container .swiper-button-prev {
    color: #333;
}

.wdc-error {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-align: center;
}

/* Admin Styles */
.wdc-admin-container {
    max-width: 1200px;
}

.wdc-form-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wdc-list-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.copy-shortcode {
    margin-left: 10px;
}

.refresh-carousel {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wdc-instacarousel-container .swiper {
        padding: 15px 0 40px 0;
    }
}

/* Fallback for older browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    .wdc-image-container {
        height: 0;
        padding-bottom: 100%;
    }
    
    .wdc-image-container .wdc-image,
    .wdc-loading-placeholder {
        position: absolute;
        top: 0;
        left: 0;
    }
}
