/* ========================================
   FEED.CSS - Styles for Feed Page
   ======================================== */

/* Feed shell */
.feed-shell {
    max-width: 1400px;
    margin: 16px auto 32px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, #1a1222 0%, #120d19 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* Layout wrapper */
.feed-layout {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 10px;
    gap: 28px;
}

/* Logged-in banner */
.feed-user-banner {
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #e9d5ff;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* Left Sidebar */
.feed-sidebar {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    display: block;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
}

.sidebar-header {
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    color: #f3e8ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-nav {
    padding: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: #f3e8ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: rgba(124, 58, 237, 0.18);
    border-color: rgba(124, 58, 237, 0.35);
    transform: translateX(4px);
}

.sidebar-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.35);
}

.sidebar-link-icon.groups {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.sidebar-link-icon.trade {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.sidebar-link-icon.pages {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.sidebar-link-icon.chat {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.sidebar-link-icon.profile {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

/* Quick access groups list */
.sidebar-groups-list {
    padding: 8px;
    border-top: 1px solid var(--border);
}

.sidebar-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: rgba(233, 213, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.sidebar-group-item:hover {
    background: rgba(124, 58, 237, 0.15);
    color: #f3e8ff;
}

.sidebar-group-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Main Feed Content */
.feed-container {
    flex: 1;
    max-width: 720px;
    min-width: 0;
}

.post {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 16px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.post-author-info {
    flex: 1;
    min-width: 0;
}

.post-author {
    font-weight: 600;
    color: #f3e8ff;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-author:hover {
    color: #c4b5fd;
}

.post-time {
    color: rgba(233, 213, 255, 0.7);
    font-size: 13px;
    margin-top: 2px;
}

.verified-badge, .trusted-badge {
    display: inline-flex;
    align-items: center;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    gap: 3px;
}

.verified-badge {
    background: linear-gradient(135deg, var(--primary-blue), #0080ff);
}

.trusted-badge {
    background: linear-gradient(135deg, #00a86b, #00c97a);
}

.post-content {
    padding: 4px 16px 12px 16px;
    line-height: 1.5;
    font-size: 15px;
    color: #f8fafc;
    word-wrap: break-word;
}

.post-image {
    width: 100% !important;
    display: block !important;
    max-height: 350px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    cursor: pointer;
    background: #1a1a2e;
}

[data-theme="light"] .post-image {
    background: #f1f5f9;
}

.post-image:hover {
    opacity: 0.95;
}

.link-warning {
    margin: 0 16px 12px 16px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #fbbf24;
}

/* Reactions Section */
.reactions-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    color: rgba(233, 213, 255, 0.7);
    font-size: 13px;
}

.reactions-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.reaction-icons {
    display: flex;
    gap: 2px;
}

.reaction-icon {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.12);
    margin-left: -4px;
}

.reaction-icon:first-child {
    margin-left: 0;
}

.reaction-more {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    border-radius: 10px;
    width: auto;
    padding: 0 5px;
}

.post-actions {
    display: flex;
    gap: 2px;
    padding: 4px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-action-btn {
    background: none;
    border: none;
    color: rgba(233, 213, 255, 0.75);
    cursor: pointer;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
    position: relative;
}

.post-action-btn:hover {
    background-color: rgba(124, 58, 237, 0.16);
}

.post-action-btn.like-btn:hover {
    color: #c4b5fd;
}

.post-action-btn.comment-btn:hover {
    color: #86efac;
}

.post-action-btn.share-btn:hover {
    color: #fbbf24;
}

.post-action-btn.liked {
    color: #c4b5fd;
}

/* Reactions Picker */
.reactions-picker {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 17, 34, 0.95);
    border-radius: 30px;
    padding: 8px 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    gap: 8px;
    margin-bottom: 0;
    padding-bottom: 12px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.reactions-picker.active {
    display: flex;
}

.reaction-btn {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px;
    border-radius: 50%;
}

.reaction-btn:hover {
    transform: scale(1.3);
}

.delete-btn {
    margin-left: auto;
    color: #dc3545;
    padding: 8px 12px;
    flex: 0;
}

.delete-btn:hover {
    background-color: rgba(220, 53, 69, 0.15);
}

/* Comments Section */
.comments-section {
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comment {
    background-color: rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #f3e8ff;
    margin-bottom: 4px;
}

.comment-author a {
    color: #f3e8ff;
    text-decoration: none;
}

.comment-author a:hover {
    color: var(--primary-blue);
}

.comment-text {
    font-size: 15px;
    line-height: 1.5;
    color: #f8fafc;
}

.comment-time {
    font-size: 12px;
    color: rgba(233, 213, 255, 0.65);
    margin-top: 6px;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.comment-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.comment-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Create Post Box */
.create-post-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-post-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f3e8ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.2s;
    background: rgba(15, 11, 20, 0.7);
    color: #f8fafc;
}

.post-textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Image Gallery Lightbox (WhatsApp-style) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.lightbox-counter {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    user-select: none;
}

.lightbox-close {
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-content {
    max-width: min(90vw, 1200px);
    max-height: 75vh;
    object-fit: contain;
    transition: opacity 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Nav arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 48px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    line-height: 1;
    padding: 0 0 4px 0;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Thumbnail strip */
.lightbox-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lightbox-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb-active {
    opacity: 1;
    border-color: #fff;
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 36px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-content {
        max-width: 95vw;
        max-height: 70vh;
    }
    .lightbox-thumb {
        width: 44px;
        height: 44px;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    color: rgba(233, 213, 255, 0.7);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

/* Hide sidebar on tablets */
@media (max-width: 1024px) {
    .feed-sidebar {
        width: 220px;
    }

    .sidebar-link {
        padding: 10px;
        font-size: 14px;
    }

    .sidebar-link-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
    .feed-layout {
        flex-direction: column;
        padding: 4px 0;
        gap: 8px;
    }

    .feed-shell {
        margin: 0;
        border-radius: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .feed-sidebar {
        display: none !important;
    }

    .feed-container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .feed-user-banner {
        font-size: 14px;
        padding: 10px 12px;
        margin: 0 8px 8px;
        border-radius: 12px;
    }

    .create-post-box {
        padding: 12px;
        border-radius: 0;
        margin: 0 0 8px;
        border-left: none;
        border-right: none;
    }

    .create-post-box h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .post-textarea {
        min-height: 70px;
        font-size: 15px;
        padding: 10px 12px;
    }

    .post {
        border-radius: 0;
        margin-bottom: 8px;
        border-left: none;
        border-right: none;
    }

    .post-header {
        padding: 12px 12px 8px;
    }

    .post-avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .post-content {
        padding: 4px 12px 12px;
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .post-actions {
        gap: 0;
        padding: 4px 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .post-action-btn {
        padding: 12px 8px;
        font-size: 13px;
        gap: 5px;
        min-height: 44px;
    }

    .reactions-bar {
        padding: 8px 12px;
        font-size: 13px;
    }

    .reactions-picker {
        left: 0;
        transform: none;
        border-radius: 24px;
    }

    .reaction-btn {
        font-size: 28px;
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .media-upload-options {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .upload-option label {
        padding: 12px;
    }

    .comments-section {
        padding: 10px 12px;
    }

    .comment-form {
        gap: 8px;
    }

    .comment-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .comment-bubble {
        max-width: calc(100vw - 90px);
    }

    /* Prevent horizontal overflow */
    .post img,
    .post video {
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   IMPROVED COMMENTS SECTION STYLING
   Add this to your feed.css or in the <style> section
   ======================================== */

/* Make comment count clickable */
.comment-count-link:hover {
    color: var(--primary-blue) !important;
    text-decoration: underline !important;
}

/* Comments Section - Extended */
.comments-section {
    padding: 16px;
    background: var(--dark-700);
    border-top: 1px solid var(--border);
    margin-top: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* Comments List */
.comments-list {
    margin-bottom: 16px;
}

.comments-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Individual Comment */
.comment {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

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

.comment-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.comment-avatar-32 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-avatar-26 {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-thread .comment-avatar {
    width: 26px;
    height: 26px;
}

.comment-content {
    flex: 1;
}

.comment-bubble {
    background: var(--dark-600);
    border-radius: 18px;
    padding: 10px 14px;
    display: inline-block;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.comment-author a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.comment-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-left: 14px;
}

.inline-delete-form {
    display: inline;
    margin-left: 8px;
}
.comment-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
    opacity: 0.7;
}
.comment-delete-btn:hover {
    opacity: 1;
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--dark-600);
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    margin-top: 12px;
}

.comment-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 14px;
    background: transparent;
    color: var(--text-primary);
}

.comment-input::placeholder {
    color: var(--text-secondary);
}

.comment-submit-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.comment-submit-btn:hover {
    background: #1565c0;
    transform: scale(1.05);
}

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

/* No comments message */
.no-comments-message {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comments-section {
        padding: 12px;
    }

    .comment-bubble {
        max-width: calc(100vw - 120px);
    }
}

/* Group posts */
.group-post .post-header {
    background: rgba(59, 130, 246, 0.08);
}

.group-post-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.group-post-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.group-post-group {
    color: #f3e8ff;
    font-weight: 600;
    text-decoration: none;
}

.group-post-group:hover {
    color: #c4b5fd;
}

.group-post-author {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
}

.group-post-author:hover {
    color: #e9d5ff;
}

.group-post-link {
    margin-left: auto;
    background: rgba(124, 58, 237, 0.2);
    color: #e9d5ff;
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.group-post-link:hover {
    background: rgba(124, 58, 237, 0.35);
}

/* ========================================
   LIGHT MODE OVERRIDES
   ======================================== */
[data-theme="light"] .feed-shell {
    background: linear-gradient(180deg, #faf7fd 0%, #f1ecf8 100%);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .feed-user-banner {
    background: #f4eff9;
    border-color: rgba(124, 58, 237, 0.25);
    color: #2f1c47;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .post,
[data-theme="light"] .create-post-box {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

[data-theme="light"] .post-header {
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .post-author,
[data-theme="light"] .comment-author,
[data-theme="light"] .comment-author a,
[data-theme="light"] .create-post-box h3 {
    color: #2f1c47;
}

[data-theme="light"] .post-content {
    color: #1e293b;
}

[data-theme="light"] .post-time,
[data-theme="light"] .reactions-bar {
    color: #64748b;
}

[data-theme="light"] .post-actions {
    border-top-color: #e2e8f0;
    background: #f7f2fb;
}

[data-theme="light"] .post-action-btn {
    color: #6b7280;
}

[data-theme="light"] .comments-section,
[data-theme="light"] .comment {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .comment-bubble {
    background-color: white;
    border-color: #e2e8f0;
}

[data-theme="light"] .comment-form {
    background: white;
    border-color: #e2e8f0;
}

[data-theme="light"] .comment-input {
    background: #f8fafc;
    color: #1e293b;
    border-color: #e2e8f0;
}

[data-theme="light"] .reactions-picker {
    background: white;
    border-color: #e2e8f0;
}

[data-theme="light"] .reaction-icon {
    background: #f1f5f9;
    border-color: white;
}

[data-theme="light"] .post-action-btn:hover {
    background-color: #f1f5f9;
}

[data-theme="light"] .post-textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .group-post .post-header {
    background: #f8fafc;
}

[data-theme="light"] .group-post-badge {
    background: #dcfce7;
    color: #166534;
}

[data-theme="light"] .group-post-group {
    color: #1e293b;
}

[data-theme="light"] .group-post-author {
    color: #475569;
}

[data-theme="light"] .group-post-link {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #4c1d95;
}

[data-theme="light"] .empty-state {
    background: white;
    border-color: #e2e8f0;
    color: #64748b;
}

/* Light mode sidebar */
[data-theme="light"] .sidebar-section {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .sidebar-header {
    border-color: #e2e8f0;
    color: #2f1c47;
}

[data-theme="light"] .sidebar-link:hover {
    background: #f4eff9;
    border-color: rgba(124, 58, 237, 0.25);
    color: #2f1c47;
}

[data-theme="light"] .sidebar-group-item:hover {
    background: #f4eff9;
}

[data-theme="light"] .sidebar-group-icon {
    background: #ede7f6;
}

[data-theme="light"] .sidebar-groups-list {
    border-color: #e2e8f0;
}

[data-theme="light"] .sidebar-link {
    color: #2f1c47;
}
