/**
 * Custom Category Post Block Styles
 *
 * @package SEO
 */

.wp-block-seo-custom-category-post {
    --ccp-font-size: 14px;
    --ccp-text-color: #333333;
    --ccp-bg-color: #f0f0f0;
    --ccp-text-transform: none;
    --ccp-gap: 8px;
}

.wp-block-seo-custom-category-post .custom-category-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--ccp-gap);
}

.wp-block-seo-custom-category-post .custom-category-post-item {
    margin: 0;
    padding: 0;
}

.wp-block-seo-custom-category-post .custom-category-post-link,
.wp-block-seo-custom-category-post .custom-category-post-text {
    display: inline-block;
    font-size: var(--ccp-font-size);
    color: var(--ccp-text-color);
    text-transform: var(--ccp-text-transform);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Text Style */
.wp-block-seo-custom-category-post.style-text .custom-category-post-link,
.wp-block-seo-custom-category-post.style-text .custom-category-post-text {
    background: transparent;
    padding: 0;
}

.wp-block-seo-custom-category-post.style-text .custom-category-post-link:hover {
    opacity: 0.7;
}

/* Rounded Style */
.wp-block-seo-custom-category-post.style-rounded .custom-category-post-link,
.wp-block-seo-custom-category-post.style-rounded .custom-category-post-text {
    background: var(--ccp-bg-color);
    padding: 6px 16px;
    border-radius: 20px;
}

.wp-block-seo-custom-category-post.style-rounded .custom-category-post-link:hover {
    background: var(--ccp-text-color);
    color: #ffffff;
}

/* Alignment */
.wp-block-seo-custom-category-post.align-left .custom-category-post-list {
    justify-content: flex-start;
}

.wp-block-seo-custom-category-post.align-center .custom-category-post-list {
    justify-content: center;
}

.wp-block-seo-custom-category-post.align-right .custom-category-post-list {
    justify-content: flex-end;
}
