// Editor Styles for Facebook Feed Block
.ask-facebook-feed {
    width: 100%;

    .ask-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;

        p {
            margin-top: 16px;
            color: #666;
        }
    }

    .ask-posts-grid {
        display: grid;
        width: 100%;
    }

    .swiper-wrapper {
        align-items: stretch;
    }

    .swiper-slide {
        height: auto;
        display: flex;
        flex-direction: column;

        .ask-post-card {
            flex: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
    }

    .ask-post-card {
        overflow: hidden;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;

        &:hover {
            transform: translateY(-2px);
        }

        .ask-post-image {
            width: 100%;
            height: 200px;
            overflow: hidden;
            background: #f5f5f5;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .ask-post-content {
            padding: 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .ask-post-author {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;

            .ask-author-avatar {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                background: #e0e0e0;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 18px;
                overflow: hidden;
                flex-shrink: 0;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                span {
                    font-size: 16px;
                }
            }
        }

        .ask-post-date {
            margin-bottom: 12px;
            // Font size and color applied via inline styles
        }

        .ask-post-text {
            margin-bottom: 12px;
            flex: 1;
            // Typography and color applied via inline styles
        }

        .ask-post-stats {
            display: flex;
            gap: 16px;
            padding-top: 12px;
            border-top: 1px solid #f0f0f0;
            margin-top: auto;
            // Font size and color applied via inline styles

            .ask-stat {
                display: flex;
                align-items: center;
                gap: 4px;

                .dashicons {
                    width: 16px;
                    height: 16px;
                    font-size: 16px;
                }
            }

            .ask-reactions {
                .ask-reaction-container {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                }

                .ask-reaction-icons {
                    display: flex;
                    align-items: center;
                    /* Ensure height matches icon size */
                    height: 18px;
                }

                .ask-reaction-icon-wrapper {
                    width: 18px;
                    height: 18px;
                    border-radius: 50%;
                    border: 2px solid #fff;
                    background: #fff;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-left: -4px;
                    /* Overlap */

                    &:first-child {
                        margin-left: 0;
                    }

                    svg {
                        display: block;
                        width: 100%;
                        height: 100%;
                    }
                }

                .ask-reaction-count {
                    color: #65676b;
                    font-size: 13px;
                    font-weight: 400;
                    line-height: 16px;
                }
            }
        }
    }
}

// Layout variations
.ask-layout-list {
    .ask-posts-grid {
        grid-template-columns: 1fr !important;
    }

    .ask-post-card {
        display: flex;
        flex-direction: row;

        .ask-post-image {
            width: 200px;
            height: auto;
            min-height: 150px;
        }

        .ask-post-content {
            flex: 1;
        }
    }
}

.ask-layout-masonry {
    .ask-post-image {
        height: auto !important;
    }
}

// Platform-specific styles
.ask-platform-facebook {
    .ask-post-card {
        border-left: 3px solid #1877f2;
    }
}