/* =============================================
   Post View Styles
   Extracted from post.php
   ============================================= */

/* Ultra Editor View */
.ultra-editor-view {
    margin-top: 1em;
    margin-bottom: 1em;
    box-shadow: 0 2px 18px #7fd8ff22;
    border: 2px solid #7fd8ff44;
    background-color: #16263a;
}

.ultra-editor-view .text-zone {
    position: absolute;
    min-width: 60px;
    min-height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px dashed #1976d2;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: default;
    resize: none;
    overflow: auto;
    font-size: 1.1em;
    user-select: text;
    pointer-events: auto;
    -webkit-user-modify: read-only;
}

/* Feed Card */
.fb-feed-card {
    background: #101c2b;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 1.5em;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Header Row */
.fb-feed-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8em;
}

.fb-feed-header-left {
    display: flex;
    align-items: center;
}

.fb-feed-header-right {
    font-size: 0.9em;
    color: #bbb;
}

/* Text Content */
.fb-feed-text {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 1em;
}

/* Full Width Mode */
.fb-feed-fullwidth {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
}

/* Bottom Row */
.fb-feed-bottom-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #bbb;
}

/* Post Views */
.post-views {
    display: flex;
    align-items: center;
}

.post-views img {
    height: 18px;
    width: auto;
    margin-right: 4px;
    opacity: 0.7;
}

/* Like Count */
.like-count img {
    height: 32px;
    width: auto;
    vertical-align: middle;
    cursor: pointer;
    transition: filter 0.2s;
    aspect-ratio: 3/4;
    object-fit: contain;
}

.like-number {
    margin-left: 6px;
}

/* Comment Count */
.comment-count img {
    height: 22px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
    margin-right: 4px;
}

/* Comments Section */
.comment-section {
    margin-top: 1em;
}

.comments-list {
    margin-bottom: 1em;
}

/* Individual Comment */
.comment {
    margin-bottom: 1em;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22334a;
    border-radius: 50%;
    color: #b2eaff;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid #7fd8ff;
    box-shadow: 0 0 8px #7fd8ff44;
    overflow: hidden;
}

.comment-content {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 10px 14px;
    flex: 1;
    color: #22334a;
    font-size: 1em;
    word-break: break-word;
}

/* Feedback Alert */
.feedback-alert {
    margin-bottom: 1em;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1em;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

/* Post Page Specific */
.post-page-container {
    max-width: 600px;
    margin: 0 auto;
}

.post-page-back-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 1.1em;
}

/* Post Page Body */
.post-page-body {
    background: #f0f2f5;
}

/* Avatar Image */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 767px) {
    .fb-feed-card {
        padding: 12px;
        border-radius: 12px;
    }

    .fb-feed-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }

    .fb-feed-text {
        font-size: 1em;
    }

    .ultra-editor-view {
        border-radius: 10px;
    }

    .ultra-editor-view .text-zone {
        font-size: 1em;
    }

    .post-page-container {
        padding: 0 10px;
    }

    .comment {
        gap: 10px;
    }

    .comment-avatar {
        width: 34px;
        height: 34px;
        font-size: 1em;
    }

    .comment-content {
        padding: 8px 12px;
        font-size: 0.95em;
    }

    .like-count img {
        height: 28px;
    }

    .comment-count img {
        height: 18px;
    }
}

@media (max-width: 480px) {
    .fb-feed-card {
        padding: 10px;
    }

    .fb-feed-header-right {
        font-size: 0.8em;
    }

    .fb-feed-text {
        font-size: 0.95em;
    }

    .comment-avatar {
        width: 30px;
        height: 30px;
    }

    .post-views img {
        height: 14px;
    }
}
