.feed_details_container {
    display: flex;
    flex-direction: column;
    gap: 20px;

    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
    background: var(--fr-primary-19);
}

.dark-mode,
[data-theme="dark"] .feed_details_container {

    background: var(--fr-primary-19);
}

.replies_panel>.author_details,
.posted_comment_container>.author_details,
.feed_details_container>.author_details {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: clamp(5px, 1vw, 10px);
}

.replies_panel>.author_details>.type,
.posted_comment_container>.author_details>.type,
.feed_details_container>.author_details>.type {
    border: 0.40px solid var(--fr-primary-20);
    border-radius: 17px;
    padding: clamp(1px, 0.5vw, 2px) clamp(4px, 1vw, 8px);
    font-size: clamp(12px, 1.5vw, 14px);
}


.replies_panel>.author_details>.last_seen,
.posted_comment_container>.author_details>.last_seen,
.feed_details_container>.author_details>.last_seen {
    border-radius: 8px;
    padding: clamp(2px, 0.8vw, 4px) clamp(4px, 1vw, 10px);
    background-color: var(--fr-primary-20);
    font-weight: 400;
    font-size: clamp(12px, 1.5vw, 14px);
    line-height: 157%;
    color: var(--fr-primary-1);
    margin-inline-start: clamp(6px, 1.5vw, 14px);
}


.replies_panel>.author_details>.author_img,
.posted_comment_container>.author_details>.author_img,
.feed_details_container>.author_details>.author_img {
    border-radius: 100%;
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    overflow: hidden;
    object-fit: cover;
}


.replies_panel>.author_details>.name,
.posted_comment_container>.author_details>.name,
.feed_details_container>.author_details>.name {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: var(--fr-primary-1);
}


.feed_details_container>.feed_description_section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 769px;
}

.feed_details_container>.feed_description_section>.description {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--fr-primary-8);
}


.feed_details_container>.feed_description_section>.tags_section {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: clamp(6px, 1vw, 12px);
}

.feed_details_container>.feed_description_section>.tags_section>span {
    border: 0.50px solid var(--fr-primary-7);
    border-radius: 4px;
    padding: clamp(2px, 0.5vw, 4px) clamp(4px, 1vw, 8px);
    background-color: var(--fr-primary-20);
    font-size: clamp(12px, 1.5vw, 14px);
}

.feed_details_container>.feed_image {
    border-radius: 8px;
    height: 250px;
    overflow: hidden;
}

.feed_details_container>.feed_image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


.feed_details_container>.interation_section {

    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    padding-top: 20px;
    padding-bottom: 8px;
}

.feed_details_container>.interation_section>button {
    background: transparent;

}


.feed_details_container>.interation_section>.interaction_btn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(3px, 1vw, 6px);
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 150%;
    color: var(--fr-primary-6);
    background-color: transparent;
}

.feed_details_container>.interation_section>.view_count {
    margin-inline-start: auto;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: var(--fr-primary-6);
}



/* comment section */
.comment_section_container {
    margin-top: 36px;
    display: flex;
    flex-direction: column;

}

.comment_section_container>.comment_section {

    padding: 24px 20px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
    border-radius:  0px 0px 8px 8px;
    background: var(--fr-primary-19);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post_comment_section {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.post_comment_section>.comment_box_section {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: stretch;
}

.post_comment_section>.comment_box_section>.commentor_img {
    border-radius: 100%;
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    overflow: hidden;
    object-fit: contain;
}

.post_comment_section>.comment_box_section>.comment_box {
    width: 100%;
    border: 0.40px solid var(--fr-primary-5);
    border-radius: 8px;
    padding: 12px;
    background: var(--fr-primary-20);
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.post_comment_section>.comment_box_section>.comment_box>input {
    height: 100%;
    border: none;
    color: black;
}

.post_comment_section>.comment_box_section>.comment_box>input::placeholder {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--fr-primary-17);
}

.post_comment_section>.post_btn_section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}


/* posted comments */
.posted_comment_container {
    padding-bottom: 24px;
    border-bottom: 0.50px solid var(--fr-primary-16);

}
.posted_comment_container:last-child {
    border-bottom: none;
}


.replies_panel>.user_comment,
.posted_comment_container>.user_comment {
    padding-top: 4px;
    padding-bottom: 24px;
    padding-inline-start: 50px;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--fr-primary-17);
}


/* buttons for this page  */
.feed_details_btn {
    padding: clamp(8px, 1.5vw, 12px);      /* responsive padding */
    width: fit-content;
    height: clamp(40px, 5vw, 48px);        /* responsive height */
    font-size: clamp(14px, 1.8vw, 16px);   /* responsive font */
    min-width: clamp(80px, 20vw, 104px);   /* responsive min-width */
    border-radius: 8px;
}

.solid {
    color: white;
    background: var(--fr-primary-21);
}

.outline {
    border: 0.80px solid var(--gray-600);
    color: var(--fr-primary-21);
    background: transparent;
}

.reply_btn {
    border-radius: 24px;
    padding: 5px 16px;
    width: fit-content;
    height: 34px;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: var(--fr-primary-6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--fr-primary-22);
}

.reply_btn>i {
    font-size: 14px;
}


/* posted comments  */
.replies_panel>.interation_section,
.posted_comment_container>.interation_section {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    gap: clamp(12px, 2vw, 24px);
    padding-inline-start: 50px;
    flex-wrap: wrap;
}

.replies_panel>.interation_section>.interaction_btn,
.posted_comment_container>.interation_section>.interaction_btn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(3px, 1vw, 6px);
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 150%;
    color: var(--fr-primary-6);
    background-color: transparent;
}

.replies_panel {
    /* padding-top: 24px; */
    transition: all 0.3s ease;
}


.replies_panel[data-is-open="false"] {
    max-height: 0;
    overflow: hidden;
}





/* Responsive adjustments for mobile */
@media (width < 850px) {

    .replies_panel>.user_comment,
    .posted_comment_container>.user_comment {
        padding-inline-start: 0px;
    }

    .replies_panel>.interation_section,
    .posted_comment_container>.interation_section {

        padding-inline-start: 0px;
    }
}





/* file upload input */

/* The clickable image icon */
.upload-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}



/* Optional: Show selected file name */
.file-name {
    font-size: 10px;
    padding-inline-start: 5px;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    max-width: 400px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}