﻿
/* Post Detail Specific Styles */
.post-detail-container {
    max-width: 100%;
}

/*.post-detail {
    padding: 16px;
}*/

.post-detail-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.post-body {
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0;
}

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

.comment-container {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.vote-column.small {
    min-width: 24px;
}

    .vote-column.small .vote-count {
        font-size: 11px;
    }

.comment-content {
    flex-grow: 1;
    min-width: 0;
}

.comment-header {
    font-size: 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px
}

.profile-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-time {
    color: #787c7e;
    margin-left: 4px;
}

.op-tag {
    background-color: #0079D3;
    color: white;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 2px;
    margin: 0 4px;
}

.comment-body {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
}

.comment-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #878A8C;
    font-size: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border-radius: 2px;
}

    .comment-action-btn:hover {
        background-color: #f8f9fa;
    }

.comment-replies {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 2px solid #edeff1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-detail-title {
        font-size: 20px;
    }

    .comment-replies {
        margin-left: 8px;
        padding-left: 8px;
    }
}

.post-detail {
    display: flex;
    gap: 8px;
    padding: 16px;
}

.vote-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    padding-top: 8px;
    flex-shrink: 0; /* Prevent vote column from shrinking */
}

.post-content {
    flex-grow: 1;
    min-width: 0; /* Prevent content from overflowing */
    word-wrap: break-word; /* Ensure long words don't break layout */
}

/* Responsive adjustments if needed */
@media (max-width: 640px) {
    .post-detail {
        padding: 8px;
        gap: 4px;
    }

    .vote-column {
        min-width: 32px;
    }
}

.vote-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
}

    .vote-btn.active.upvote {
        color: #ff4500;
    }

    .vote-btn.active.downvote {
        color: #7193ff;
    }

.vote-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
}

.reply {
    margin-left: 20px;
    border-left: 2px solid #e9ecef;
    padding-left: 15px;
}

.comment-actions {
    margin-top: 5px;
}

.comment-action-btn {
    border: none;
    background: none;
    color: #878a8c;
    margin-right: 10px;
    cursor: pointer;
}

    .comment-action-btn:hover {
        color: #1a1a1b;
    }

.reply-container {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

/* Tag styles */
.post-tags {
    margin: 8px 0 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px; /* Fully rounded edges */
    background-color: #0079D3; /* blue color */
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .post-tag:hover {
        background-color: #0061A9;
        color: white;
        text-decoration: none;
    }

    /* Alternative color variations you might like */
    .post-tag:nth-child(3n+1) {
        background-color: #0079D3; /* Blue */
    }

    .post-tag:nth-child(3n+2) {
        background-color: #1E88E5; /* Lighter blue */
    }

    .post-tag:nth-child(3n+3) {
        background-color: #005CB2; /* Darker blue */
    }

/*2/22/2025 media section styles */
.post-detail-media {
    margin: 16px 0;
    max-width: 100%;
}

    /* Larger max-height for detail view */
    .post-detail-media img,
    .post-detail-media .carousel-item img,
    .post-detail-media .post-detail-image {
        max-height: 1000px; /* larger than card view */
        width: 100%;
        object-fit: contain;
    }

    .post-detail-media .carousel {
        max-height: 1000px;
        background-color: #f8f9fa;
    }

    /* Video styles */
    .post-detail-media .video-container {
        max-height: 300px;
        width: 100%;
        background-color: #000;
    }

.post-detail-video {
    max-height: 300px;
    width: 100%;
}