/* Facebook-Style Community Page CSS */

/* Container */
.fb-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 0;
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* Page Header */
.fb-page-header {
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fb-header-content h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #050505;
}

/* Post Composer Card */
.fb-create-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 12px 16px 10px;
    margin-bottom: 16px;
}

.fb-post-composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fb-composer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.fb-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fb-composer-input {
    flex: 1;
    background-color: #f0f2f5;
    border: none;
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 25px;
    color: #65676b;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.fb-composer-input:hover {
    background-color: #e4e6eb;
}

.fb-composer-textarea {
    flex: 1;
    background-color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 25px;
    color: #050505;
    outline: none;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    line-height: 1.5;
}

.fb-composer-actions {
    border-top: 1px solid #e4e6eb;
    padding-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.fb-post-btn {
    background-color: #1877f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 32px;
    font-size: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fb-post-btn:hover {
    background-color: #166fe5;
}

.fb-post-btn:active {
    background-color: #1464d4;
}

/* Feed */
.fb-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Post Card */
.fb-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Post Header */
.fb-post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
}

.fb-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fb-post-user-info {
    flex: 1;
}

.fb-user-name {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    color: #050505;
    line-height: 1.3;
}

.fb-post-time {
    font-size: 20px;
    color: #65676b;
    display: block;
}

/* Post Content */
.fb-post-content {
    padding: 0 16px 12px;
}

.fb-post-text {
    margin: 0;
    font-size: 25px;
    color: #050505;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Post Stats */
.fb-post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #e4e6eb;
    font-size: 25px;
    color: #65676b;
}

.fb-likes-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-like-icon-blue {
    color: #1877f2;
    font-size: 24px;
}

.fb-comments-count {
    cursor: pointer;
}

.fb-comments-count:hover {
    text-decoration: underline;
}

/* Post Actions */
.fb-post-actions {
    display: flex;
    padding: 4px 16px;
    border-bottom: 1px solid #e4e6eb;
}

.fb-action-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 25px;
    font-weight: 600;
    color: #65676b;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.fb-action-btn:hover:not(:disabled) {
    background-color: #f0f2f5;
}

.fb-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.fb-action-btn i {
    font-size: 22px;
}

.fb-like-btn.fb-liked {
    color: #1877f2;
}

.fb-like-btn.fb-liked i {
    color: #1877f2;
}

/* Comments Section */
.fb-comments-section {
    padding: 12px 16px;
}

/* Comment Form */
.fb-comment-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fb-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fb-comment-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 18px;
}

.fb-comment-input {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 18px;
    padding: 8px 40px 8px 12px;
    font-size: 25px;
    color: #050505;
    outline: none;
    font-family: inherit;
}

.fb-comment-input::placeholder {
    color: #65676b;
}

.fb-comment-input.fb-comment-disabled {
    background-color: #f0f2f5;
    cursor: not-allowed;
    padding-right: 12px;
}

.fb-comment-submit {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #1877f2;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.fb-comment-submit:hover {
    opacity: 0.7;
}

/* Comments List */
.fb-comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual Comment */
.fb-comment {
    display: flex;
    gap: 8px;
    position: relative;
}

.fb-comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-comment-bubble {
    background-color: #f0f2f5;
    border-radius: 18px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

.fb-comment-author {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 2px;
}

.fb-comment-text {
    margin: 0;
    font-size: 25px;
    color: #050505;
    line-height: 1.4;
}

.fb-comment-meta {
    padding-left: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.fb-comment-time {
    font-size: 20px;
    color: #65676b;
}

/* Delete Comment Button */
.fb-delete-comment {
    position: absolute;
    right: 0;
    top: 8px;
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 23px;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

.fb-comment:hover .fb-delete-comment {
    opacity: 1;
}

.fb-delete-comment:hover {
    color: #e4304b;
}

/* View More Comments */
.fb-view-more-comments {
    padding-top: 8px;
}

.fb-view-more-btn {
    background: none;
    border: none;
    color: #65676b;
    font-size: 25px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-view-more-btn:hover {
    color: #050505;
}

.fb-view-more-btn i {
    font-size: 20px;
}

/* Comments All (expanded) */
.fb-comments-all {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* No Comments */
.fb-no-comments {
    text-align: center;
    padding: 12px 0;
    color: #65676b;
    font-size: 20px;
}

/* No Posts */
.fb-no-posts {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 48px 16px;
}

.fb-no-posts-content {
    text-align: center;
    color: #65676b;
}

.fb-no-posts-content i {
    color: #bcc0c4;
    margin-bottom: 16px;
}

.fb-no-posts-content h3 {
    font-size: 25px;
    font-weight: 600;
    color: #050505;
    margin: 0 0 8px 0;
}

.fb-no-posts-content p {
    font-size: 25px;
    color: #65676b;
    margin: 0;
}

/* Pagination */
.fb-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fb-container {
        padding: 8px 0;
    }

    .fb-page-header,
    .fb-create-post-card,
    .fb-post-card {
        border-radius: 0;
    }

    .fb-create-post-card {
        margin-bottom: 8px;
    }

    .fb-feed {
        gap: 8px;
    }

    .fb-post-text {
        font-size: 20px;
    }

    .fb-user-name {
        font-size: 20px;
    }

    .fb-post-time {
        font-size: 18px;
    }
}

/* Animation for glow effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    }
}

.animate-glow {
    animation: glow 2s ease-in-out;
}

/* AOS animations compatibility */
[data-aos] {
    pointer-events: auto;
}