/* Post-specific styles */

/* Filter container override */
.filter-container {
    width: fit-content;
    display: inline-flex;
    margin-top: 12px;
    margin-left: 10px;
    gap: 4px;
}

/* Comments Section */
.comments-section {
    margin-top: 20px;
    padding: 0 12px;
}

.comment-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
}

.comment {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 8px 0px 16px;
}

/* Collapsible thread button */
.comment::before {
    content: "−";
    position: absolute;
    left: -10px;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #1a1a1b;
    border: 1px solid #343536;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #d7dadc;
    cursor: pointer;
    z-index: 10;
}

.comment::before:hover {
    background-color: #4a9eff;
    border-color: #4a9eff;
    color: #ffffff;
}

/* Collapsed state */
.comment.collapsed::before {
    content: "+";
}

/* Hide comment text and actions when collapsed, but keep header */
.comment.collapsed .comment-text {
    display: none;
}

.comment.collapsed .comment-actions {
    display: none;
}

/* Hide the thread line when collapsed */
.comment.collapsed .thread-line {
    display: none;
}

/* Hide nested comments when collapsed */
.comment.collapsed .comment.nested {
    display: none;
}

.comment.nested { margin-left: 24px; }

.comment-vote { display: none; }

.comment-vote .vote-btn {
    background: none;
    border: none;
    color: #818384;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.comment-vote .vote-btn:hover {
    background-color: #343536;
    color: #ffffff;
}

.vote-score {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Individual comment threading lines */
.comment {
    position: relative;
}

.comment .thread-line {
    position: absolute;
    left: -2px;
    top: 30px; /* Start below the collapse button */
    background-color: rgba(129, 131, 132, 0.3);
    width: 2px;
    z-index: 1;
    cursor: pointer;
}

.comment .thread-line:hover {
    background-color: rgba(74, 158, 255, 0.5);
    width: 3px;
    left: -2.5px;
}

/* Thread line should only extend within the comment that contains it */
.comment .thread-line {
    /* -38px due to 30px from folding button height, 8px from comment padding */
    height: calc(100% - 38px);
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #4a9eff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.comment-author {
    color: #4c9aff;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.comment-time {
    color: #818384;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.comment-text {
    color: #d7dadc;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #818384;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

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

/* Inline voting in actions row */
.vote-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vote-inline .vote-btn {
    background: none;
    border: none;
    color: #818384;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-inline .vote-btn:hover {
    background-color: #343536;
    color: #ffffff;
}

.vote-inline .vote-score {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

/* Responsive comments */
@media (max-width: 767px) {
    .comments-section {
        padding: 0 8px;
    }
    
    .comment.nested {
        margin-left: 20px;
    }
    

    
    .comment-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Image Section Styles */
.image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: auto;
    padding: 8px 8px;
    background-color: #0d1518;
    border-radius: 12px;
    overflow-y: auto;
}

.image-section::-webkit-scrollbar {
    width: 8px;
}



.image-section::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

.image-section::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.image-post-container {
    width: 100%;
    max-width: 800px;
}

.image-post-header {
    padding: 12px;
    text-align: left;
    width: 100%;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.back-button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.back-button:hover {
    background-color: #343536;
}

.lair-info {
    display: flex;
    justify-content: start;
}

.lair-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 4px;
}

.lair-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ff6b35;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.lair-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lair-top-section {
    display: flex;
    align-items: center;
    gap: 0px;
}

.lair-name-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-age {
    color: #818384;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.user-section {
    display: flex;
    align-items: center;
}

.username {
    color: #4c9aff;
    font-weight: 500;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.image-post-title {
    padding: 0 12px 16px 12px;
}
.post-text-content {
    padding: 0 12px 16px 12px;
}
.image-post-title h1 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.image-post-content {
    padding: 0 12px 20px 12px;
    display: none;
}
.post-actions {
    padding: 12px 12px;
}

.main-image-container {
    display: flex;
    justify-content: center;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    width: 600px;
    height: 600px;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #1a1a1b;
    border: 2px dashed #343536;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.placeholder-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.placeholder-icon svg {
    fill: none;
    stroke: #666;
}

.placeholder-text h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-family: 'Roboto', sans-serif;
}

.placeholder-text p {
    color: #818384;
    font-size: 14px;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}


.generation-data {
    padding: 12px;
}

.generation-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.generation-header h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.copy-all-btn {
    background-color: transparent;
    color: #4c9aff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-all-btn:hover {
    text-decoration: underline;
}

.generation-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.generation-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 8px;
    padding: 8px;
}

.generation-row-split {
    display: flex;
    gap: 40px;
}

.generation-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.label {
    color: #818384;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    font-family: 'Roboto', sans-serif;
}

.value {
    color: #ffffff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

/* Specific styles for prompt sections */
.generation-row.prompt-section .generation-col {
    width: 100%;
}

.tool-tags, .prompt-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-tag {
    background-color: #4c9aff;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.prompt-tag {
    background-color: #00d4aa;
    color: #000000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.prompt-section {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 6px;
}

.prompt-content {
    width: 100%;
}

.prompt-text-area {
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive styles for image section */
@media (max-width: 767px) {
    .image-section {
        padding: 16px;
        margin-top: 16px;
    }
    
    .image-post-header,
    .image-post-content,
    .generation-data {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .main-image-container {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }
    
    .generation-row-split {
        flex-direction: column;
        gap: 12px;
    }
    
    .tool-tags, .prompt-tags {
        flex-wrap: wrap;
    }
}

@media (max-width: 479px) {
    .main-image-container {
        width: 100%;
        max-width: 300px;
        height: 300px;
    }
}

/* Lair Header Banner */
.lair-header-banner {
    width: 100%;
    position: relative;
    margin-bottom: 0;
}

.lair-banner-bg {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #ff4500 50%, #e74c3c 75%, #c0392b 100%);
    position: relative;
    border-radius: 0 0 12px 12px;
}

.lair-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #0d1518;
    position: relative;
}

.lair-info-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lair-icon-container {
    flex-shrink: 0;
    position: relative;
}

.lair-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: -56px; /* Move icon up to overlap banner */
    left: 0;
}

.lair-icon svg {
    width: 20px;
    height: 20px;
}

.lair-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.lair-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.create-post-btn {
    background-color: #0079d3;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto', sans-serif;
}

.create-post-btn:hover {
    background-color: #0060a8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.options-btn {
    background-color: #272729;
    color: #ffffff;
    border: 1px solid #343536;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.options-btn:hover {
    background-color: #343536;
    border-color: #4c4c4d;
    transform: translateY(-1px);
}

.joined-btn {
    background-color: #272729;
    color: #ffffff;
    border: 1px solid #343536;
    border-radius: 18px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.joined-btn:hover {
    background-color: #343536;
    border-color: #4c4c4d;
    transform: translateY(-1px);
}

/* Responsive styles for lair header */
@media (max-width: 1199px) {
    .lair-banner-content {
        padding: 16px 20px;
    }
    
    .lair-banner-bg {
        height: 160px;
    }
    
    .lair-icon {
        width: 70px;
        height: 70px;
        top: -45px;
    }
    

    
    .lair-actions {
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .lair-banner-bg {
        height: 120px;
    }
    
    .lair-banner-content {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .lair-info-section {
        width: 100%;
        margin-top: 20px; /* Add space for the overlapping icon */
    }
    
    .lair-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }
    
    .lair-icon {
        width: 60px;
        height: 60px;
        top: -35px;
        border-width: 3px;
    }
    
    .lair-icon svg {
        width: 18px;
        height: 18px;
    }
    

    
    .create-post-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .options-btn {
        width: 32px;
        height: 32px;
    }
    
    .joined-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 479px) {
    .lair-banner-bg {
        height: 100px;
    }
    
    .lair-icon {
        width: 50px;
        height: 50px;
        top: -30px;
    }
    

    
    .create-post-btn span {
        display: none; /* Hide text on very small screens */
    }
    
    .create-post-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .lair-actions {
        gap: 6px;
    }
}

/* Adjust the main container layout to remove right container space */
.main-container {
    justify-content: flex-start; /* Change from space-between */
}

/* Make the center container expand to fill remaining space */
.main-container-center-container {
    flex: 1; /* Take up all available space */
    max-width: none; /* Remove max-width constraint */
}

/* Adjust center container inner to have better max-width without right sidebar */
.main-container-center-container-inner {
    max-width: 1000px; /* Increase from 800px since we have more space */
    margin: 0 auto; /* Center the content */
}

/* Adjust responsive behavior for post page */
@media (max-width: 799px) {
    .main-container-center-container-inner {
        max-width: none; /* Use full width on small screens */
        padding: 0 16px; /* Add some padding on mobile */
    }
}

/* Lair Sidebar Styles */
.main-container-right-container {
    display: flex;
    flex-direction: column;
    width: 320px;
    min-width: 320px;
    height: 100%;
    background-color: #0a1216;
    overflow-y: auto;
}

.lair-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Lair Info Card */
.lair-info-card {
    background-color: #0a1216;
    padding: 16px;
    border: 1px solid #343536;
}

.lair-description h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-family: 'Roboto', sans-serif;
}

.lair-description p {
    color: #d7dadc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-family: 'Roboto', sans-serif;
}

.lair-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.lair-links a {
    color: #4c9aff;
    font-size: 12px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.lair-links a:hover {
    text-decoration: underline;
}

.lair-stats {
    border-top: 1px solid #343536;
    padding-top: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.stat-icon {
    font-size: 16px;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.stat-label {
    color: #818384;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.creation-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #818384;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

/* Rules Section */
.rules-section {
    background-color: #0a1216;
    padding: 16px;
    border: 1px solid #343536;
}

.rules-header h4 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    font-family: 'Roboto', sans-serif;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d7dadc;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.rule-number {
    color: #818384;
    font-weight: 600;
    min-width: 20px;
}

.rule-text {
    flex: 1;
}

/* Flair Section */
.flair-section {
    background-color: #0a1216;
    padding: 16px;
    border: 1px solid #343536;
}

.flair-header h4 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    font-family: 'Roboto', sans-serif;
}

.flair-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.flair-btn {
    background-color: #272729;
    color: #ffffff;
    border: 1px solid #343536;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.flair-btn:hover {
    background-color: #343536;
    border-color: #4c4c4d;
}

.flair-btn.bug {
    background-color: #ff4444;
    border-color: #ff4444;
}

.flair-btn.feature {
    background-color: #00d4aa;
    border-color: #00d4aa;
    color: #000000;
}

.flair-btn.feedback {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.mod-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #272729;
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #ffd700;
}

.highlight-text,
.question-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.highlight-icon {
    color: #ffd700;
}

/* Moderators Section */
.moderators-section {
    background-color: #0a1216;
    padding: 16px;
    border: 1px solid #343536;
}

.moderators-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.moderators-header h4 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}
.mod-avatar.with-profile-pic {
    background-size: cover;
    background-position: center;
}
.message-mods-btn {
    background-color: #0079d3;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.message-mods-btn:hover {
    background-color: #0060a8;
}

.moderators-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.moderator-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #343536;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mod-name {
    color: #4c9aff;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.mod-badge {
    background-color: #00d4aa;
    color: #000000;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
}

.mod-icons {
    font-size: 12px;
}

.view-all-mods {
    background: none;
    border: none;
    color: #4c9aff;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

.view-all-mods:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1399px) {
    .main-container-right-container {
        width: 280px;
        min-width: 280px;
    }
}

/* Ensure the tools link is visible on smaller screens since no right sidebar */
@media (max-width: 1199px) {
    .tools-link {
        display: flex !important;
    }
    
    .main-container-right-container {
        display: none;
    }
}

/* Comment Editor Section */
.comment-editor-section {
    margin-top: 20px;
    padding: 0 12px;
    margin-bottom: 20px;
}

.comment-editor-header {
    margin-bottom: 8px;
    font-size: 14px;
    color: #d7dadc;
}

.comment-editor-header strong {
    color: #ff6b35;
}

.comment-editor-container {
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.comment-editor-container.minimized {
    border-color: #343536;
    position: relative;
}

.comment-editor-container.minimized .comment-editor-footer {
    display: none;
}

.comment-editor-container.minimized .ql-toolbar {
    display: none !important;
}

.comment-editor-container.minimized .ql-container {
    border: none !important;
}

.comment-editor-container.minimized .comment-editor .ql-editor {
    min-height: 40px;
    max-height: 40px;
    padding: 12px;
    border: none;
    cursor: text;
    background-color: #272729;
    border-radius: 8px;
    font-size: 14px;
    line-height: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.comment-editor-container.minimized .comment-editor .ql-editor.ql-blank::before {
    content: "What are your thoughts?";
    color: #818384;
    font-style: normal;
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Hide all Quill formatting elements in minimized state */
.comment-editor-container.minimized .ql-formats {
    display: none !important;
}

.comment-editor-container.minimized .ql-toolbar.ql-snow {
    display: none !important;
}

.comment-editor {
    background-color: #272729;
    color: #d7dadc;
}

/* Quill editor customization */
.comment-editor .ql-toolbar {
    border: none;
    background-color: #272729;
    padding: 8px 12px;
}

.comment-editor .ql-toolbar.ql-snow {
    border: none !important;
}

.comment-editor .ql-toolbar .ql-stroke {
    stroke: #d7dadc;
}

.comment-editor .ql-toolbar .ql-fill {
    fill: #d7dadc;
}

.comment-editor .ql-toolbar button:hover {
    background-color: #343536;
    border-radius: 3px;
}

.comment-editor .ql-toolbar button.ql-active {
    background-color: #ff6b35;
    border-radius: 3px;
}

.comment-editor .ql-toolbar button.ql-active .ql-stroke {
    stroke: #ffffff;
}

.comment-editor .ql-toolbar button.ql-active .ql-fill {
    fill: #ffffff;
}

.comment-editor .ql-container {
    border: none;
    background-color: #272729;
    color: #d7dadc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid #343536 !important;
}
.ql-container.ql-snow {
    border: 1px solid #ccc;
    border: none !important;
}
.comment-editor .ql-container.ql-snow {
    border: none !important;
}

.comment-editor .ql-editor {
    min-height: 60px;
    padding: 12px;
    color: #d7dadc;
    background-color: #272729;
}

.comment-editor .ql-editor.ql-blank::before {
    color: #818384;
    font-style: normal;
}

.comment-editor .ql-editor p {
    margin: 0 0 8px 0;
}

.comment-editor .ql-editor blockquote {
    border-left: 4px solid #ff6b35;
    padding-left: 16px;
    margin: 8px 0;
    color: #b3b6b7;
    background-color: #272729;
    padding: 8px 16px;
    border-radius: 0 4px 4px 0;
}

.comment-editor .ql-editor code {
    background-color: #272729;
    color: #ff6b35;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.comment-editor .ql-editor pre {
    background-color: #272729;
    color: #d7dadc;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    border-left: 4px solid #ff6b35;
}

.comment-editor .ql-editor a {
    color: #4a9eff;
    text-decoration: none;
}

.comment-editor .ql-editor a:hover {
    text-decoration: underline;
}

.comment-editor-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 12px;
    background-color: #272729;
    border-top: 1px solid #343536;
}

.comment-editor-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-cancel-btn,
.comment-submit-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-cancel-btn {
    background-color: transparent;
    color: #d7dadc;
    border: 1px solid #343536;
}

.comment-cancel-btn:hover {
    background-color: #343536;
    color: #ffffff;
}

.comment-submit-btn {
    background-color: #157c9b;
    color: #ffffff;
}

.comment-submit-btn:hover {
    background-color: #0f6b85;
}

.comment-submit-btn:disabled {
    background-color: #343536;
    color: #818384;
    cursor: not-allowed;
}

/* Reply Comment Editor Styles */
.reply-comment-editor {
    margin-top: 12px;
    margin-left: 24px; /* Indent to show it's a reply */
    border-left: 2px solid #343536;
    padding-left: 12px;
    position: relative;
}

/* Make reply editor appear nested under parent comment */
.comment + .reply-comment-editor {
    margin-left: 24px;
}

/* For deeper nesting levels */
.comment.nested + .reply-comment-editor {
    margin-left: 48px; /* Double indent for nested replies */
}

.reply-editor-container {
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 8px;
    overflow: hidden;
}

.reply-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #1a1a1b;
    border-bottom: 1px solid #343536;
}

.reply-editor-label {
    color: #d7dadc;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.reply-cancel-btn {
    background: none;
    border: none;
    color: #818384;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

.reply-cancel-btn:hover {
    background-color: #343536;
    color: #ffffff;
}

.reply-editor-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 12px;
    background-color: #272729;
    border-top: 1px solid #343536;
}

.reply-editor-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.reply-submit-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #157c9b;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

.reply-submit-btn:hover {
    background-color: #0f6b85;
}

.reply-submit-btn:disabled {
    background-color: #343536;
    color: #818384;
    cursor: not-allowed;
}

/* Style Quill editor within reply editor */
.reply-comment-editor .ql-toolbar {
    border: none !important;
    border-bottom: 1px solid #343536 !important;
    background-color: #272729;
    padding: 8px 12px;
}

.reply-comment-editor .ql-container {
    border: none !important;
    background-color: #272729;
    color: #d7dadc;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.reply-comment-editor .ql-editor {
    min-height: 80px;
    padding: 12px;
    color: #d7dadc;
    background-color: #272729;
}

.reply-comment-editor .ql-editor.ql-blank::before {
    color: #818384;
    font-style: normal;
}

.reply-comment-editor .ql-toolbar .ql-stroke {
    stroke: #d7dadc;
}

.reply-comment-editor .ql-toolbar .ql-fill {
    fill: #d7dadc;
}

.reply-comment-editor .ql-toolbar button {
    color: #d7dadc;
}

.reply-comment-editor .ql-toolbar button:hover {
    background-color: #343536;
    border-radius: 3px;
}

.reply-comment-editor .ql-toolbar button.ql-active {
    background-color: #ff6b35;
    border-radius: 3px;
}

.reply-comment-editor .ql-toolbar button.ql-active .ql-stroke {
    stroke: #ffffff;
}

.reply-comment-editor .ql-toolbar button.ql-active .ql-fill {
    fill: #ffffff;
}

/* Mobile responsive adjustments for comment editor */
@media (max-width: 768px) {
    .comment-editor-section {
        padding: 0 8px;
    }
    
    .comment-editor-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .comment-editor-actions {
        justify-content: flex-end;
    }
    
    .reply-comment-editor {
        margin-left: 8px;
        padding-left: 8px;
    }
    
    .reply-editor-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .reply-editor-actions {
        justify-content: flex-end;
    }
}

/* Three-dot menu button and dropdown */
.post-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.post-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.post-dropdown-menu {
    display: none;
    position: fixed;
    background-color: #1a1a1b;
    border: 1px solid #343536;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    min-width: 180px;
}

.post-dropdown-menu-header {
    padding: 8px 16px;
    border-bottom: 1px solid #343536;
    color: #818384;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.dropdown-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d7dadc;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.2s;
}

.dropdown-menu-item:hover {
    background-color: #272729;
}

.dropdown-menu-item.destructive {
    color: #f44336;
}

.menu-button-container {
    position: relative;
    margin-left: auto;
}
