/* Community Feed - Skool Style Layout */
.community-feed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

/* Main Feed Area */
.feed-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sidebar */
.feed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Feed Header */
.community-feed-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.community-feed-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.community-feed-description {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Create Post Box */
.create-post-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.create-post-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.post-input-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.post-input-wrapper {
    flex: 1;
}

.post-input {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.post-input:focus {
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-primary);
}

.post-input::placeholder {
    color: var(--text-tertiary);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-tools {
    display: flex;
    gap: 0.5rem;
}

.post-tool-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-tool-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.post-submit-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

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

.feed-post {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.feed-post:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.post-time {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.post-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-content p {
    margin: 0 0 1rem 0;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-action:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.post-action.liked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-color: rgba(239, 68, 68, 0.2);
}

.post-action.commented {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Trending Topics */
.trending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-text {
    color: var(--text-primary);
    font-weight: 500;
}

.trending-count {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Vote for Members */
.vote-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.vote-item:last-child {
    border-bottom: none;
}

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

.vote-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--text-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
}

.vote-info {
    display: flex;
    flex-direction: column;
}

.vote-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.vote-role {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.vote-btn {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-btn:hover {
    background: #1d4ed8;
}

.vote-btn.voted {
    background: var(--success-color);
}

.vote-btn.voted:hover {
    background: #059669;
}

/* Stats Widget */
.stats-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Comments Section */
.post-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--text-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* Add Comment */
.add-comment {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.add-comment input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.add-comment input:focus {
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.add-comment button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-comment button:hover {
    background: #1d4ed8;
}

/* Responsive */
@media (max-width: 1024px) {
    .community-feed-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feed-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .community-feed-container {
        padding: 1rem 0;
    }
    
    .post-input-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-author-avatar {
        align-self: flex-start;
    }
    
    .post-tools {
        flex-wrap: wrap;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .post-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .post-action {
        flex: 1;
        justify-content: center;
    }
    
    .feed-sidebar {
        grid-template-columns: 1fr;
    }
    
    .stats-widget {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   SKOOL-LIKE POST COMPOSER STYLES - PREMIUM
   ========================================== */

.skool-composer {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 0;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
}

.skool-composer:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.skool-composer:focus-within {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15), 0 8px 32px rgba(99, 102, 241, 0.1);
}

.skool-composer .create-post-form {
    gap: 0;
}

/* Composer Header */
.composer-header {
    padding: 20px 24px 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f3f4;
    border-radius: 16px 16px 0 0;
}

.composer-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.composer-user .post-author-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
    letter-spacing: 0.5px;
}

.composer-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.composer-username {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.composer-context {
    font-size: 0.82rem;
    color: #8b8fa3;
    letter-spacing: 0.01em;
}

.composer-context strong {
    color: #6366f1;
    font-weight: 500;
}

/* Title Input */
.composer-title-wrapper {
    padding: 0 24px;
    background: #fff;
}

.composer-title {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a2e;
    padding: 20px 0 8px;
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.composer-title::placeholder {
    color: #c4c7d0;
    font-weight: 500;
}

.composer-title:focus::placeholder {
    color: #a8adb8;
}

/* Content Textarea */
.composer-content-wrapper {
    padding: 0 24px;
    background: #fff;
}

.composer-content {
    width: 100%;
    min-height: 100px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #4a4a5a;
    line-height: 1.7;
    resize: none;
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    font-family: inherit;
    padding-bottom: 12px;
}

.composer-content::placeholder {
    color: #c4c7d0;
}

.composer-content:focus::placeholder {
    color: #a8adb8;
}

/* Post Ideas Box - Growzy Style (Compact) */
.composer-ideas {
    margin: 8px 20px 12px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    border-radius: 12px;
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
}

.composer-ideas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b 0%, #facc15 100%);
}

.ideas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-left: 8px;
}

.ideas-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ideas-icon {
    font-size: 1rem;
    line-height: 1;
}

.ideas-title span:last-child {
    font-size: 0.8rem;
    color: #78350f;
    line-height: 1.3;
}

.ideas-title strong {
    color: #b45309;
    font-weight: 600;
}

.ideas-close {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: #a3a3a3;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ideas-close:hover {
    background: #fef2f2;
    color: #ef4444;
}

.ideas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 8px;
}

.idea-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #713f12;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.idea-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.idea-text {
    font-weight: 500;
    line-height: 1.3;
}

.idea-item:hover {
    background: #fff;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.idea-item:active {
    transform: scale(0.98);
}

/* Idea applied animation */
.composer-content.idea-applied {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
    border-color: #f59e0b !important;
    animation: idea-flash 0.5s ease;
}

@keyframes idea-flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Media Preview */
.media-preview-area {
    margin: 16px 24px;
    border: 2px dashed #e2e5eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fafbfc;
    transition: all 0.2s;
}

.media-preview-area:hover {
    border-color: #d1d5db;
}

.media-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(180deg, #f8f9fa 0%, #f3f4f6 100%);
    border-bottom: 1px solid #e5e7eb;
}

.media-preview-title {
    font-weight: 600;
    color: #4a4a5a;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-preview-title::before {
    content: '🖼️';
}

.media-preview-close {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.media-preview-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
}

.media-preview-content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.media-preview-content img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.media-preview-content .gif-preview {
    max-width: 280px;
    border-radius: 12px;
}

/* Poll Builder */
.poll-builder {
    margin: 16px 24px;
    border: 1px solid #e2e5eb;
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #fefefe 0%, #f8f9ff 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-weight: 600;
    color: #4a4a5a;
    font-size: 0.95rem;
}

.poll-close {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.poll-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.poll-option-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    transition: all 0.2s;
    color: #4a4a5a;
}

.poll-option-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.poll-option-input::placeholder {
    color: #b8bcc8;
}

.poll-add-option {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border: 2px dashed #c7d0e8;
    color: #6366f1;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.poll-add-option:hover {
    background: linear-gradient(135deg, #eef1ff 0%, #e5e9ff 100%);
    border-color: #6366f1;
    transform: translateY(-1px);
}

/* Video Embed */
.video-embed-builder {
    margin: 16px 24px;
    border: 1px solid #e2e5eb;
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #fefefe 0%, #fff5f5 100%);
}

.video-embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: #4a4a5a;
    font-size: 0.95rem;
}

.video-embed-close {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.video-embed-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
}

.video-url-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    transition: all 0.2s;
    color: #4a4a5a;
}

.video-url-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.video-url-input::placeholder {
    color: #b8bcc8;
}

.video-preview {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-preview iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    border: none;
}

/* Link Builder */
.link-builder {
    margin: 16px 24px;
    border: 1px solid #e2e5eb;
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #fefefe 0%, #f5fff8 100%);
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: #4a4a5a;
    font-size: 0.95rem;
}

.link-close {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.link-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
}

.link-url-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    transition: all 0.2s;
    color: #4a4a5a;
}

.link-url-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.link-url-input::placeholder {
    color: #b8bcc8;
}

.link-preview {
    margin-top: 16px;
}

.link-preview > div {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.link-preview > div:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.link-preview a {
    color: #10b981 !important;
    font-weight: 500;
    text-decoration: none;
}

.link-preview a:hover {
    text-decoration: underline;
}

/* Bottom Toolbar */
.composer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #f1f3f4;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    border-radius: 0 0 16px 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: #8b8fa3;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    position: relative;
}

.toolbar-btn:hover {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.toolbar-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

.toolbar-btn-text {
    width: auto;
    padding: 0 14px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border: 1px solid #e2e5f0;
    color: #6366f1;
}

.toolbar-btn-text:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-color: transparent;
}

/* Category Selector */
.category-selector {
    margin-left: 12px;
    position: relative;
}

.category-select {
    padding: 10px 36px 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4a4a5a;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.category-select:hover {
    border-color: #d1d5db;
}

.category-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Toolbar Right */
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.composer-cancel-btn {
    padding: 11px 22px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.composer-cancel-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #4a4a5a;
}

.composer-submit-btn {
    padding: 11px 28px;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.composer-submit-btn:hover {
    background: linear-gradient(135deg, #5558e3 0%, #7c4fe0 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.composer-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.composer-submit-btn:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #c4c8cf 100%);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Admin Options */
.composer-admin-options {
    padding: 14px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-top: 1px solid #bae6fd;
    border-radius: 0 0 16px 16px;
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #0369a1;
    cursor: pointer;
    font-weight: 500;
}

.admin-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: linear-gradient(135deg, #cbd5e1 0%, #b8c4ce 100%);
    border-radius: 13px;
    transition: all 0.3s;
    margin-left: auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.admin-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.admin-toggle input:checked + .toggle-slider::after {
    left: 25px;
}

.toggle-info {
    font-size: 1.1rem;
    filter: grayscale(20%);
}

/* Emoji Picker */
.emoji-picker-popup {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 340px;
    max-height: 380px;
    overflow: hidden;
    animation: pickerFadeIn 0.2s ease-out;
}

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

.emoji-picker-header {
    padding: 14px 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-bottom: 1px solid #f1f3f4;
}

.emoji-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    background: #fff;
    transition: all 0.2s;
}

.emoji-search:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.emoji-search::placeholder {
    color: #b8bcc8;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    padding: 14px;
    max-height: 280px;
    overflow-y: auto;
}

.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.emoji-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s;
}

.emoji-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    transform: scale(1.15);
}

/* GIF Picker */
.gif-picker-popup {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 420px;
    max-height: 480px;
    overflow: hidden;
    animation: pickerFadeIn 0.2s ease-out;
}

.gif-picker-header {
    padding: 14px 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-bottom: 1px solid #f1f3f4;
}

.gif-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: 2px solid var(--primary-color, #6366F1);
    outline-offset: 2px;
    background: #fff;
    transition: all 0.2s;
}

.gif-search:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.gif-search::placeholder {
    color: #b8bcc8;
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
    max-height: 380px;
    overflow-y: auto;
}

.gif-grid::-webkit-scrollbar {
    width: 6px;
}

.gif-grid::-webkit-scrollbar-track {
    background: transparent;
}

.gif-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.gif-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.gif-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gif-item:hover img {
    transform: scale(1.08);
}

/* Responsive Composer */
@media (max-width: 768px) {
    .skool-composer {
        border-radius: 12px;
        margin: 0 -8px;
    }
    
    .composer-header {
        padding: 16px 18px 14px;
        border-radius: 12px 12px 0 0;
    }
    
    .composer-user .post-author-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .composer-title-wrapper,
    .composer-content-wrapper {
        padding: 0 18px;
    }
    
    .composer-title {
        font-size: 1.15rem;
        padding: 14px 0 6px;
    }
    
    .composer-content {
        min-height: 80px;
    }
    
    .composer-ideas {
        margin: 12px 18px;
        padding: 14px;
    }
    
    .composer-toolbar {
        flex-direction: column;
        gap: 14px;
        padding: 16px 18px;
        border-radius: 0 0 12px 12px;
    }
    
    .toolbar-left {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .toolbar-btn {
        width: 38px;
        height: 38px;
    }
    
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .composer-cancel-btn,
    .composer-submit-btn {
        flex: 1;
        text-align: center;
    }
    
    .category-selector {
        margin-left: 0;
        width: 100%;
        order: -1;
        margin-bottom: 8px;
    }
    
    .category-select {
        width: 100%;
    }
    
    .emoji-picker-popup,
    .gif-picker-popup {
        width: calc(100vw - 32px);
        left: 16px !important;
        right: 16px;
    }
    
    .poll-builder,
    .video-embed-builder,
    .link-builder,
    .media-preview-area {
        margin: 12px 18px;
    }
    
    .composer-admin-options {
        padding: 12px 18px;
        border-radius: 0 0 12px 12px;
    }
}

/* Composer Notifications */
.composer-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.composer-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.composer-notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.composer-notification.success::before {
    content: '✓';
    font-size: 1.1rem;
}

.composer-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.composer-notification.error::before {
    content: '✕';
    font-size: 1.1rem;
}

.composer-notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.composer-notification.warning::before {
    content: '⚠';
    font-size: 1.1rem;
}

.composer-notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.composer-notification.info::before {
    content: 'ℹ';
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .composer-notification {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* ========================================
   POST MEDIA STYLES (Video, GIF, Link, Poll)
   ======================================== */

/* Images Grid */
.gz-post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.gz-post-media {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gz-post-media img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s;
}

.gz-post-media:hover img {
    transform: scale(1.02);
}

/* Video Embed */
.gz-post-video {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.gz-post-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* GIF */
.gz-post-gif {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
}

.gz-post-gif img {
    width: 100%;
    height: auto;
    display: block;
}

/* Link Preview */
.gz-post-link-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    transition: all 0.2s;
}

.gz-post-link-preview:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.gz-link-icon {
    font-size: 1.2rem;
}

/* Poll Styles */
.gz-post-poll {
    margin-top: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #fafbff 0%, #f5f7ff 100%);
    border: 1px solid #e2e5f0;
    border-radius: 14px;
}

.gz-poll-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #4a4a5a;
    margin-bottom: 14px;
}

.gz-poll-option {
    position: relative;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.gz-poll-option:hover {
    border-color: #6366f1;
    transform: translateX(4px);
}

.gz-poll-option.voted {
    border-color: #6366f1;
    background: #f5f3ff;
}

.gz-poll-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 8px;
    transition: width 0.5s ease;
    z-index: 0;
}

.gz-poll-text {
    position: relative;
    z-index: 1;
    font-weight: 500;
    color: #4a4a5a;
}

.gz-poll-percent {
    position: relative;
    z-index: 1;
    float: right;
    font-weight: 700;
    color: #6366f1;
}

.gz-poll-total {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

/* Category Badge in Posts */
.gz-category-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #6b7280;
}

/* ========================================
   CATEGORY FILTER (Inline Pills)
   ======================================== */

.category-filter-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filter-inline::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
}

.cat-pill:hover {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #4f46e5;
}

.cat-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Pinned Post Styling */
.gz-post-card.pinned {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.gz-post-card.pinned .gz-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.gz-pinned-badge {
    display: none;
}

.gz-float-btn.gz-pin-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-color: transparent;
}

.gz-float-btn.gz-pin-btn.active:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* ========================================
   NOTIFICATION DROPDOWN
   ======================================== */

.notification-container {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
}

.notif-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
}

.notif-mark-read {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.notif-mark-read:hover {
    color: #4f46e5;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f9fafb;
    cursor: pointer;
    transition: background 0.2s;
}

.notif-item:hover {
    background: #f9fafb;
}

.notif-item.unread {
    background: #eff6ff;
}

.notif-item.unread:hover {
    background: #dbeafe;
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notif-icon.info { background: #e0f2fe; }
.notif-icon.success { background: #dcfce7; }
.notif-icon.warning { background: #fef3c7; }
.notif-icon.danger { background: #fee2e2; }

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

.notif-message {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
}

.notif-loading {
    padding: 30px 20px;
    text-align: center;
    color: #9ca3af;
}

.notif-footer {
    display: block;
    padding: 14px 20px;
    text-align: center;
    background: #f9fafb;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-top: 1px solid #f1f3f5;
    transition: background 0.2s;
}

.notif-footer:hover {
    background: #f3f4f6;
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
}

/* ========================================
   SIDEBAR REAL DATA STYLING
   ======================================== */

/* Clickable stat items */
.stat-item.clickable {
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.stat-item.clickable:hover {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    transform: translateY(-2px);
}

.stat-number.online-indicator {
    color: #10b981;
    position: relative;
}

.stat-number.online-indicator::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    top: 50%;
    left: -14px;
    transform: translateY(-50%);
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(1.2); }
}

/* Trending Topics */
a.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f9fafb;
}

a.trending-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    transform: translateX(4px);
}

.trending-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trending-text {
    flex: 1;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.trending-count {
    font-size: 0.75rem;
    color: #9ca3af;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 12px;
}

.trending-empty {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
}

.trending-empty p {
    margin: 0;
    font-size: 0.875rem;
}

/* Active Members */
.active-members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.active-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.active-member-item:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    transform: translateX(4px);
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.member-avatar .online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

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

.member-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-posts {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Search Active Bar */
.search-active-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.search-active-bar span {
    color: #1e40af;
    font-size: 0.9rem;
}

.search-active-bar strong {
    color: #1e3a8a;
}

.clear-search-btn {
    background: #fff;
    border: 1px solid #bfdbfe;
    color: #3b82f6;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-search-btn:hover {
    background: #3b82f6;
    color: #fff;
}

/* Loading state for filter */
.feed-posts.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.feed-posts.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Active filter indicator */
.filter-active-indicator {
    display: none;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #0369a1;
    align-items: center;
    gap: 8px;
}

.filter-active-indicator.show {
    display: flex;
}

.filter-active-indicator .clear-filter {
    margin-left: auto;
    background: none;
    border: none;
    color: #6366f1;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

.filter-active-indicator .clear-filter:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .category-filter-tabs {
        padding: 12px 14px;
        gap: 6px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .category-tab {
        padding: 8px 14px;
        border-radius: 10px;
    }
    
    .tab-label {
        font-size: 0.8rem;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
}
