/**
 * Facebook Posts Feed - Frontend Styles
 */

.fpf-posts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
    max-width: 100%;
}

.fpf-post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.fpf-post[onclick] {
    cursor: pointer;
}

.fpf-post-header {
    padding: 8px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpf-page-name {
    font-size: 13px;
    font-weight: 700;
    color: #1877f2;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fpf-page-name-text {
    display: inline-block;
}

.fpf-page-icon {
    font-size: 16px;
}

.fpf-page-profile-picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.fpf-post-date-header {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
}

.fpf-options-icon {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.fpf-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fpf-post[onclick]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15);
    border-color: #1877f2;
}

.fpf-post-content {
    padding: 10px;
}

.fpf-post-message,
.fpf-post-story {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.fpf-post-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}

.fpf-post-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.fpf-post-story {
    font-style: italic;
    color: #666;
}

.fpf-post-footer {
    padding: 8px 10px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    background: #fff;
}

.fpf-post-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #666;
    align-items: center;
}

.fpf-post-likes,
.fpf-post-comments {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.fpf-post-likes .fpf-icon,
.fpf-post-comments .fpf-icon {
    font-size: 14px;
}

.fpf-post-likes .fpf-count,
.fpf-post-comments .fpf-count {
    font-size: 11px;
    color: #666;
}

/* Error and No Posts Messages */
.fpf-error,
.fpf-no-posts {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    margin: 20px 0;
}

.fpf-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fpf-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fpf-post-date-header {
        align-self: flex-end;
    }
    
    .fpf-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fpf-post-link {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .fpf-post-content {
        padding: 12px;
    }
    
    .fpf-post-header,
    .fpf-post-footer {
        padding: 10px 12px;
    }
    
    .fpf-post-message,
    .fpf-post-story {
        font-size: 13px;
    }
}

