/* ===== Community Styles (Slack-inspired) ===== */

/* Community Header */
.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.community-header .section-title {
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.community-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* View Mode Toggle */
.view-mode-toggle {
    display: flex;
    background: #2d3139;
    border-radius: 8px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.view-mode-btn {
    background: transparent;
    border: none;
    color: #8b8d90;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-mode-btn:hover {
    background: #3a3f47;
    color: #d1d2d3;
}

.view-mode-btn.active {
    background: #1264a3;
    color: white;
}

/* Grid Icon (2x2 squares with spacing) */
.grid-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 14px;
    height: 14px;
}

.grid-icon span {
    background: currentColor;
    border-radius: 1px;
}

/* Icon Button */
.icon-btn {
    background: #1264a3;
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(18, 100, 163, 0.3);
}

.icon-btn:hover {
    background: #0d4f82;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(18, 100, 163, 0.4);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Search Button Variant */
.search-btn {
    background: #2d3139;
    box-shadow: 0 2px 8px rgba(45, 49, 57, 0.3);
}

.search-btn:hover {
    background: #3a3f47;
    box-shadow: 0 4px 12px rgba(45, 49, 57, 0.4);
}

/* New Post Button - Same style as search */
#new-post-btn {
    background: #2d3139;
    box-shadow: 0 2px 8px rgba(45, 49, 57, 0.3);
}

#new-post-btn:hover {
    background: #3a3f47;
    box-shadow: 0 4px 12px rgba(45, 49, 57, 0.4);
}

/* Refresh Button - Same style as search */
#refresh-posts-btn {
    background: #2d3139;
    box-shadow: 0 2px 8px rgba(45, 49, 57, 0.3);
}

#refresh-posts-btn:hover {
    background: #3a3f47;
    box-shadow: 0 4px 12px rgba(45, 49, 57, 0.4);
}

/* Sort Button Variant */
.sort-btn {
    background: #2d3139;
    box-shadow: 0 2px 8px rgba(45, 49, 57, 0.3);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.sort-btn:hover {
    background: #3a3f47;
    box-shadow: 0 4px 12px rgba(45, 49, 57, 0.4);
}

.sort-select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
}

/* Search Form */
.search-form {
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

.search-form-card {
    background: #1f2329;
    border: 1px solid #3a3f47;
    border-radius: 12px;
    overflow: hidden;
}

.search-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #3a3f47;
    background: #252931;
}

.search-form-header h3 {
    color: #d1d2d3;
    margin: 0;
    font-size: 1.1rem;
}

.search-close-btn {
    background: transparent;
    border: none;
    color: #8b8d90;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.search-close-btn:hover {
    background: #3a3f47;
    color: #d1d2d3;
}

.search-form-body {
    padding: 1.5rem;
}

.search-option {
    margin-bottom: 1.25rem;
}

.search-option:last-of-type {
    margin-bottom: 1.5rem;
}

.search-option label {
    display: block;
    color: #d1d2d3;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.search-select,
.search-input {
    width: 100%;
    background: #2d3139;
    border: 1px solid #3a3f47;
    border-radius: 8px;
    color: #d1d2d3;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-select:focus,
.search-input:focus {
    outline: none;
    border-color: #1264a3;
}

.search-input::placeholder {
    color: #8b8d90;
}

.search-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Search Result Close Button */
.search-result-close-btn {
    background: transparent;
    border: none;
    color: #8b8d90;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
}

.search-result-close-btn:hover {
    background: #3a3f47;
    color: #d1d2d3;
}

/* New Post Form */
.new-post-form {
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-form-card {
    background: #1f2329;
    border: 1px solid #3a3f47;
    border-radius: 12px;
    padding: 1.5rem;
}

.post-form-card h3 {
    color: #d1d2d3;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.post-title-input {
    width: 100%;
    background: #2d3139;
    border: 1px solid #3a3f47;
    border-radius: 8px;
    color: #d1d2d3;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-title-input:focus {
    outline: none;
    border-color: #1264a3;
}

.post-title-input::placeholder {
    color: #8b8d90;
    font-weight: 400;
}

.post-textarea {
    width: 100%;
    min-height: 100px;
    background: #2d3139;
    border: 1px solid #3a3f47;
    border-radius: 8px;
    color: #d1d2d3;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.post-textarea:focus {
    outline: none;
    border-color: #1264a3;
}

.post-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-upload-btn {
    background: #2d3139;
    border: 1px solid #3a3f47;
    color: #d1d2d3;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.file-upload-btn:hover {
    background: #3a3f47;
    border-color: #1264a3;
}

.image-filename {
    color: #8b8d90;
    font-size: 0.85rem;
    flex: 1;
}

.post-form-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.cancel-btn {
    background: transparent;
    border: 1px solid #3a3f47;
    color: #d1d2d3;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 70px;
}

.cancel-btn:hover {
    background: #2d3139;
}

.submit-btn {
    background: #1264a3;
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 70px;
}

.submit-btn:hover {
    background: #0d4f82;
}

/* Posts Container */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Post Card */
.post-card {
    background: #1f2329;
    border: 1px solid #3a3f47;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.post-card:hover {
    border-color: #4a4f57;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Grid View Styles */
.posts-container.grid-view {
    gap: 0;
}

.posts-container.grid-view .post-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: block;
}

.posts-container.grid-view .post-card:first-child {
    border-top: 1px solid #3a3f47;
}

.posts-container.grid-view .post-card:hover {
    background: #252931;
    box-shadow: none;
}

/* Grid view: vertical layout with date on top */
.posts-container.grid-view .post-header {
    margin-bottom: 0.5rem;
}

.posts-container.grid-view .post-user-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

/* Avatar visible in grid view now */
.posts-container.grid-view .post-avatar {
    display: flex;
}

.posts-container.grid-view .post-username {
    font-size: 0.85rem;
    color: #8b8d90;
    font-weight: 400;
}

/* Show time in grid view (as date) - on the left */
.posts-container.grid-view .post-time {
    font-size: 0.85rem;
    color: #8b8d90;
    font-weight: 400;
}

.posts-container.grid-view .post-user-details {
    display: contents;
}

.posts-container.grid-view .post-title {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 500;
    color: #d1d2d3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Hide content, images, buttons, and footer in grid view */
.posts-container.grid-view .post-content {
    display: none;
}

.posts-container.grid-view .post-expand-btn {
    display: none;
}

.posts-container.grid-view .post-image {
    display: none;
}

.posts-container.grid-view .post-footer {
    display: none;
}

.posts-container.grid-view .comments-section {
    display: none;
}

.posts-container.grid-view .post-actions-menu {
    display: flex;
    margin-left: 0.5rem;
    opacity: 0.7;
}

.posts-container.grid-view .post-card:hover .post-actions-menu {
    opacity: 1;
}

.posts-container.grid-view .post-menu-btn {
    padding: 0.1rem 0.3rem;
    font-size: 1rem;
}

/* Edit Icon Orientation Fix */
.edit-icon-flip {
    display: inline-block;
    transform: scaleX(-1);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #3a3f47;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-user-details {
    display: flex;
    flex-direction: column;
}

.post-username {
    color: #d1d2d3;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-time {
    color: #8b8d90;
    font-size: 0.8rem;
}

.post-actions-menu {
    position: relative;
    display: flex;
    gap: 0.25rem;
}

.post-menu-btn {
    background: transparent;
    border: none;
    color: #8b8d90;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.post-menu-btn:hover {
    background: #2d3139;
    color: #d1d2d3;
}

.post-title {
    color: #d1d2d3;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Content preview (when no title exists) - hide in block view */
.post-title.content-preview {
    display: none;
}

/* Show content preview in grid view */
.posts-container.grid-view .post-title.content-preview {
    display: block;
    font-weight: 500;
    color: #b8b9bb;
}

.posts-container.grid-view .post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
}

.post-content {
    color: #d1d2d3;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
}

.post-content.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    position: relative;
}

.post-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #1f2329);
    pointer-events: none;
}

.post-expand-btn {
    background: transparent;
    border: none;
    color: #1264a3;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    font-weight: 500;
}

.post-expand-btn:hover {
    color: #0d4f82;
    text-decoration: underline;
}

.post-image {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-image.collapsed {
    max-height: 200px;
    object-fit: cover;
    object-position: top;
    cursor: default;
}

.post-image.collapsed:hover {
    transform: none;
}

/* Reactions */
.post-reactions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    /* Added for reaction picker positioning */
}

.reaction-btn {
    background: transparent;
    border: 1px solid #3a3f47;
    color: #8b8d90;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reaction-btn:hover {
    background: #2d3139;
    border-color: #1264a3;
    color: #d1d2d3;
}

.reaction-add-icon {
    font-size: 1rem;
}

.reaction-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    background: #2d3139;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #d1d2d3;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-count:hover {
    background: #3a3f47;
    transform: scale(1.05);
}

.reaction-emoji {
    font-size: 1rem;
}

.reaction-number {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Reaction Picker */
.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #2d3139;
    border: 1px solid #3a3f47;
    border-radius: 20px;
    padding: 0.4rem;
    display: flex;
    /* Changed to flex for horizontal scrolling */
    gap: 0.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    margin-bottom: 0.5rem;
    max-width: 280px;
    /* Limit width */
    overflow-x: auto;
    /* Enable horizontal scroll */
    scrollbar-width: thin;
    /* For Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    -webkit-overflow-scrolling: touch;
}

.reaction-picker::-webkit-scrollbar {
    height: 4px;
}

.reaction-picker::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.reaction-option {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
    /* Prevent shrinking */
    line-height: 1;
}

/* ============================================================ 
   COMMUNITY COMMENTS - REDESIGNED (Curve Thread ID: 19)
   ============================================================ */

/* Outer structure */
.comments-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Remove gap, use padding/margin for spacing */
}

/* Base Wrapper for all nesting */
.comment-wrapper {
    width: 100%;
    position: relative;
    /* Clean transition */
    transition: background 0.2s;
}

/* LEVEL 0: Root Comment - Seamless (No Card) */
.comment-wrapper.level-0 {
    margin-bottom: 0.5rem;
    padding: 0;
    /* Removed background/border for seamless look */
    background: transparent;
    border: none;
    border-radius: 0;
}

.comment-wrapper.level-0:hover {
    background: transparent;
    /* No hover bg for root container, maybe on item? */
}

/* LEVEL 1+: All Replies */
.comment-wrapper:not(.level-0) {
    /* Indent for replies */
    padding-left: 3.5rem;
    /* Space for the curve */
    margin-top: 0;
}

/* ==========================================================================
   THE THREADING SPINE & CURVE (YouTube Style)
   ========================================================================== */

/* The Vertical Spine (On Root's specific child container?) 
   Actually, we need to span from the Root's avatar down. 
   Since we don't have a wrapping container strictly for the spine in HTML,
   we use the comment-wrapper.level-1::before but longer?
   
   Better approach: Use the :before on the CHILD to draw the L-shape relative to itself.
*/

/* Curve Connector for Replies */
.comment-wrapper.level-1::before {
    content: '';
    position: absolute;
    /* Position relative to the child's top-left */
    left: 1.25rem;
    /* Adjust based on parent avatar center (20px approx) */
    top: -1.8rem;
    /* Start higher up (connecting from previous sibling or parent) */
    bottom: 2rem;
    /* Extend down? No, just the curve. */
    width: 1.5rem;
    /* Width of the horizontal part of curve */
    height: 3.5rem;
    /* Height of the vertical part from top */

    /* The Line Construction */
    border-left: 2px solid #3a3f47;
    border-bottom: 2px solid #3a3f47;
    border-bottom-left-radius: 12px;
    /* The Curve */

    /* Masking/Positioning */
    /* This draws an L shape. */
}

/* Fix for the FIRST reply: needs to connect to parent avatar.
   The spine needs to come from the parent. */

/* Adjustments for Level 2 (Deep replies in flat mode) */
.comment-wrapper.level-2 {
    padding-left: 0 !important;
    /* Keep aligned with Level 1 */
}

/* We need the vertical line to continue if there are multiple replies. 
   :before draws the curve for THIS item. 
   If there is a NEXT sibling, we need a vertical line continuing down.
   We can use :after or border-left on the parent container?
*/

/* Let's try a border-left on a container if possible, or pseudo on wrapper. */
/* If we assume the list is contiguous. */

/* Logic: 
   The continuous vertical line should be drawn by the CONTAINER of the replies. 
   But the container has no class to style easily in my JS (it's .sub-replies-container).
   Let's create a rule for .sub-replies-container.
*/
.sub-replies-container {
    position: relative;
}

/* Draw the long vertical spine on the sub-replies container of Level 0 */
.comment-wrapper.level-0>.sub-replies-container::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    /* Align with center of Root Avatar (40px width -> 20px center) */
    top: 0;
    bottom: 2.5rem;
    /* Stop before the last curve? hard to calculate opacity */
    bottom: 0;
    width: 2px;
    background: #3a3f47;
    z-index: 0;
}

/* Then each reply item just needs a horizontal line from that spine?
   Or distinct curves. 
   YouTube style: The spine is separate. The items just have standard spacing.
   Wait, the reference image shows a curve. 
   
   Refined strategy:
   1. Continuous vertical line on .sub-replies-container (left: 1.25rem).
   2. Horizontal curve/line on each .comment-wrapper.level-1.
*/

.comment-wrapper.level-1::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    /* Start at spine */
    top: 2rem;
    /* Vertical center of avatar (approx) */
    width: 1.5rem;
    /* Reach to avatar */
    height: 20px;
    /* irrelevant for line */
    border-bottom: 2px solid #3a3f47;
    border-bottom-left-radius: 10px;
    /* Optional curve if we use border-left too */
    /* To make it a curve, we need height. */

    /* Reverting to L-shape approach per item? 
       No, infinite spine is safer on container.
       Let's just use a horizontal connector. 
       But to make it curved, we need a block.
    */
    top: -0.5rem;
    /* Start 'above' the item to form the corner */
    height: 2.5rem;
    /* Height of the arc */
    border-left: 2px solid #3a3f47;
    /* Overlaps the main spine? */
    border-bottom: 2px solid #3a3f47;
    border-bottom-left-radius: 12px;
    z-index: 1;
}

/* Hide the main spine overlap? */
/* Actually, if we put the spine on the container, we don't need border-left on the item.
   We just need the bottom-left corner.
   Item::before {
      border-bottom: ...
      border-left: ...
      radius...
   }
   This works if the item's top starts 'below' the previous item enough.
*/

/* Hide extra lines for deep levels */
.comment-wrapper.level-2::before,
.comment-wrapper.level-2::after {
    display: none !important;
}

/* Common Item Layout (Root and Replies) */
.comment-item,
.reply-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    /* Vertical padding only */
}

/* Avatars - YouTube Style (Smaller, clean) */
.comment-avatar,
.reply-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #3a3f47;
    border: none;
    /* No border for cleaner look */
}

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

.reply-avatar {
    width: 24px;
    height: 24px;
    margin-top: 0.2rem;
}

.comment-avatar-img,
.reply-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Header - Compact */
.comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
}

/* Username - Secondary styling */
.comment-username {
    color: #aaa;
    /* YouTube grey */
    font-weight: 500;
    font-size: 0.8rem;
}

.comment-username:hover {
    color: #fff;
}

.comment-dot {
    display: none;
    /* YouTube doesn't use dots usually, or unique style */
}

.comment-time {
    color: #aaa;
    font-size: 0.75rem;
}

/* Body Text - Primary styling */
.comment-text {
    color: #f1f1f1;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
    margin-bottom: 0.25rem;
}

/* Reply Target (@User) - Blue link style */
.reply-target {
    color: #3ea6ff;
    /* YouTube Blue */
    font-weight: 400;
    margin-right: 0.25rem;
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.reply-target:hover {
    background: transparent;
    text-decoration: underline;
}

/* Actions - Thumbs up/down style */
.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.25rem;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 0;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.comment-action-btn.liked {
    color: #fff;
    /* White when liked */
    background: transparent;
}

/* Inputs */
.comment-input-wrapper,
.reply-input-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.comment-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    resize: none;
    min-height: 50px;
    padding-bottom: 0.5rem;
}

.comment-input:focus {
    outline: none;
}

.comment-submit-btn {
    background: #1264a3;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-submit-btn:hover {
    background: #1a7ab5;
}

/* Post Stats (Like, Comment counts under post) */
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-meta-stats {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #8b8d90;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.post-meta-stats:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
}

.meta-icon {
    font-size: 1rem;
}

.meta-count {
    font-weight: 600;
}