/* Post Carousel Block Styles */
.wp-block-seo-post-carousel {
    --thumbnail-aspect-desktop: 133.33%;
    --thumbnail-aspect-mobile: 133.33%;
    width: 100%;
    margin: 40px 0;
}

.post-carousel-header {
    text-align: center;
    margin-bottom: 24px;
}

.post-carousel-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #111;
    text-transform: uppercase;
}

.post-carousel-description {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.post-carousel-container {
    position: relative;
}

.post-carousel-viewport {
    overflow: hidden;
}

.post-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 20px;
}

.post-carousel-item {
    flex: 0 0 calc((100% - (var(--slides-to-show-desktop, 4) - 1) * 20px) / var(--slides-to-show-desktop, 4));
    min-width: 0;
}

.post-carousel-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.post-carousel-link:hover .post-carousel-thumbnail img {
    transform: scale(1.05);
}

.post-carousel-link:hover .post-carousel-item-title {
    color: #111;
}

/* Thumbnail */
.post-carousel-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: var(--thumbnail-aspect-desktop);
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    margin-bottom: 12px;
}

.post-carousel-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin:0 !important;
}

.post-carousel-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.post-carousel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 4px;
    text-align: center;
}

.post-carousel-category {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: #666666;
    margin-bottom: 8px;
}

.post-carousel-readmore {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: auto;
    padding-top: 12px;
}

.post-carousel-item-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #111;
    transition: color 0.3s ease;
    letter-spacing: 0px;
}

.post-carousel-excerpt {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dots Navigation */
.post-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 8px 0;
}

.post-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.post-carousel-dot:hover {
    background: #999;
}

.post-carousel-dot.active {
    background: #111;
    transform: scale(1.2);
}

/* Empty State */
.post-carousel-empty {
    padding: 40px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
}

/* Loading State */
.post-carousel-loading {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Editor Info */
.post-carousel-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .post-carousel-item {
        flex: 0 0 calc((100% - (var(--slides-to-show-tablet, 3) - 1) * 20px) / var(--slides-to-show-tablet, 3));
    }
}

@media (max-width: 767px) {
    .post-carousel-thumbnail {
        padding-bottom: var(--thumbnail-aspect-mobile);
    }

    .post-carousel-item {
        flex: 0 0 calc((100% - (var(--slides-to-show-mobile, 2) - 1) * 20px) / var(--slides-to-show-mobile, 2));
    }

    .post-carousel-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .post-carousel-dots {
        margin-top: 16px;
    }
}
