/* Forum CSS Styles - assets/forum-style.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.post-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.post-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #3b82f6;
}

.post-bookmark {
    margin-left: 12px;
    cursor: pointer;
}

.bookmark-icon {
    font-size: 16px;
    color: #9ca3af;
    transition: color 0.2s;
}

.bookmark-icon.bookmarked {
    color: #3b82f6;
}

.post-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.post-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.author-details {
    line-height: 1.3;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.post-time {
    font-size: 12px;
    color: #6b7280;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
}

.stat-item:hover {
    color: #374151;
}

.votes {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 12px;
    color: #6b7280;
    transition: color 0.2s;
    border-radius: 3px;
}

.vote-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.vote-btn.active {
    color: #3b82f6;
    background: #eff6ff;
}

.vote-count {
    font-weight: 600;
    color: #111827;
    min-width: 20px;
    text-align: center;
    font-size: 13px;
}

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

.stat-number {
    font-weight: 500;
}

.stat-text {
    font-weight: 500;
}

/* Like Button Styles - Simplified */
.like-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.2s ease;
    filter: grayscale(100%);
}

.like-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
    filter: grayscale(0%);
}

.like-btn.liked {
    filter: grayscale(0%);
    animation: heartBeat 0.4s ease-in-out;
}

.like-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    min-width: 16px;
}

.like-btn.liked + .like-count {
    color: #ef4444;
    font-weight: 600;
}

/* Heart animations */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Disabled state */
.like-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.like-btn:disabled:hover {
    background: none;
    transform: none;
    filter: grayscale(100%);
}

/* Pagination */
.forum-pagination {
    margin-top: 32px;
    flex-basis: 100%;
    width: 100%;
    text-align: center;
}

.forum-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.forum-pagination .page-numbers:hover,
.forum-pagination .page-numbers.current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.no-posts-message h3 {
    color: #111827;
    margin-bottom: 8px;
}

.no-posts-message p {
    color: #6b7280;
    margin: 0;
}

/* Enhanced Upload Area Styles */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.upload-placeholder {
    color: #6b7280;
    line-height: 1.6;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.7;
}

.upload-btn {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    transition: color 0.2s;
}

.upload-btn:hover {
    color: #2563eb;
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Upload Progress Styles */
.upload-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    width: 0%;
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Uploaded Images Container */
.uploaded-images-container {
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.uploaded-images-container h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.uploaded-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.uploaded-image-item {
    position: relative;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.uploaded-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.uploaded-image-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.image-filename {
    display: block;
    font-size: 12px;
    color: #6b7280;
    word-break: break-word;
    line-height: 1.3;
}

.remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
}

.uploaded-image-item:hover .remove-image-btn {
    opacity: 1;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Enhanced Form Validation Styles */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: "⚠️";
    font-size: 14px;
}

/* Enhanced Tab Styles for Images */
.tab-btn[data-tab="images"] {
    position: relative;
}

.tab-btn[data-tab="images"].has-uploads::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

/* Media Queries for Responsive Upload Area */
@media (max-width: 768px) {
    .upload-area {
        padding: 30px 16px;
    }
    
    .upload-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .uploaded-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .uploaded-image-item {
        padding: 6px;
    }
    
    .uploaded-image-thumb {
        height: 60px;
    }
    
    .image-filename {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 20px 12px;
    }
    
    .upload-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .uploaded-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upload-placeholder p {
        font-size: 14px;
    }
}

/* File Input Hidden */
#media_upload {
    display: none !important;
}

/* Enhanced Loading States */
.form-submitting .upload-area {
    opacity: 0.6;
    pointer-events: none;
}

.form-submitting .uploaded-images-container {
    opacity: 0.8;
}

/* Success States */
.upload-success {
    border-color: #10b981;
    background: #f0fdf4;
}

.upload-success .upload-icon {
    color: #10b981;
}

/* Error States */
.upload-error {
    border-color: #dc2626;
    background: #fef2f2;
}

.upload-error .upload-icon {
    color: #dc2626;
}

/* Image Preview Enhancement */
.uploaded-image-thumb {
    transition: transform 0.2s;
    cursor: pointer;
}

.uploaded-image-thumb:hover {
    transform: scale(1.05);
}

/* Tooltip for Upload Area */
.upload-area::before {
    content: "Supported formats: JPG, PNG, GIF, WebP, MP4, WebM (Max 10MB each)";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.upload-area:hover::before {
    opacity: 1;
}

/* Dark Mode Support for Upload Area */
@media (prefers-color-scheme: dark) {
    .upload-area {
        background: #1f2937;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .upload-area:hover {
        border-color: #60a5fa;
        background: #1e3a8a;
    }
    
    .upload-area.dragover {
        background: #1e40af;
        border-color: #60a5fa;
    }
    
    .uploaded-images-container {
        background: #1f2937;
        border-color: #4b5563;
    }
    
    .uploaded-images-container h4 {
        color: #f9fafb;
    }
    
    .uploaded-image-item {
        background: #374151;
        border-color: #4b5563;
    }
    
    .image-filename {
        color: #9ca3af;
    }
    
    .upload-progress {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .progress-bar {
        background: #4b5563;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .upload-area {
        border: 3px solid #000;
    }
    
    .upload-area:hover,
    .upload-area.dragover {
        border-color: #0066cc;
    }
    
    .remove-image-btn {
        background: #000;
        border: 2px solid #fff;
    }
    
    .remove-image-btn:hover {
        background: #cc0000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .upload-area {
        transition: none;
    }
    
    .upload-area.dragover {
        transform: none;
    }
    
    .uploaded-image-item {
        transition: none;
    }
    
    .uploaded-image-item:hover {
        transform: none;
    }
    
    .progress-fill {
        animation: none;
        width: 100%;
    }
    
    .uploaded-image-thumb {
        transition: none;
    }
    
    .uploaded-image-thumb:hover {
        transform: none;
    }
}

/* Forum Post Modal Styles */
.forum-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
    overflow-y: auto;
}

.post-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.post-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    margin: 40px auto;
}

.post-modal-header {
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.close-post-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-post-modal:hover {
    background: #f3f4f6;
    color: #374151;
}

.post-modal-body {
    padding: 0 24px 24px;
}

/* Modal Loading State */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.modal-loading p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Modal Error State */
.modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.modal-error h3 {
    color: #dc2626;
    margin-bottom: 8px;
}

.modal-error p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* Modal Post Content */
.modal-post-content {
    max-width: none;
}

.modal-post-header {
    margin-bottom: 32px;
}

.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #9ca3af;
}

.post-community-badge {
    margin-bottom: 16px;
}

.community-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.modal-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0 0 16px 0;
}

.modal-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-post-tags .tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.modal-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.modal-post-meta .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-post-meta .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-post-meta .author-details {
    line-height: 1.4;
}

.modal-post-meta .author-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-post-meta .post-time {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.modal-post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.votes.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
}

.votes.vertical .vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    color: #6b7280;
    transition: all 0.2s;
    border-radius: 4px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.votes.vertical .vote-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.votes.vertical .vote-btn.active {
    color: #3b82f6;
    background: #eff6ff;
}

.votes.vertical .vote-count {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

.modal-share-btn,
.bookmark-icon {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.modal-share-btn:hover,
.bookmark-icon:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.bookmark-icon.bookmarked {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Featured Image */
.modal-post-featured-image {
    margin-bottom: 32px;
}

.modal-post-featured-image .featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Post Content Body */
.modal-post-content-body {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 32px;
}

.modal-post-content-body h1,
.modal-post-content-body h2,
.modal-post-content-body h3,
.modal-post-content-body h4,
.modal-post-content-body h5,
.modal-post-content-body h6 {
    color: #111827;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.modal-post-content-body p {
    margin-bottom: 16px;
}

.modal-post-content-body ul,
.modal-post-content-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.modal-post-content-body blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 16px 20px;
    margin: 24px 0;
    font-style: italic;
    color: #4b5563;
}

.modal-post-content-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #e11d48;
}

.modal-post-content-body pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.modal-post-content-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Post Images Grid */
.modal-post-images {
    margin-bottom: 32px;
}

.modal-post-images h4 {
    margin-bottom: 16px;
    color: #111827;
    font-weight: 600;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.image-item {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.image-item .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 12px 16px;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}

/* Post Footer Stats */
.modal-post-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    margin-bottom: 32px;
}

.post-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.post-stats .stat {
    text-align: center;
}

.post-stats .stat strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.post-stats .stat span {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comments Section */
.modal-comments-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 32px;
}

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

.comments-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.login-prompt {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.login-prompt a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-form-container {
    margin-bottom: 32px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.comment-form .form-group {
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.comment-form .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-form .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.comment-form .btn-secondary:hover {
    background: #e5e7eb;
}

.comment-form .btn-primary {
    background: #3b82f6;
    color: white;
}

.comment-form .btn-primary:hover {
    background: #2563eb;
}

.comment-form .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Comments List */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

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

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

.comment-author {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #6b7280;
}

.comment-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.comment-actions button:hover {
    color: #374151;
    background: #f3f4f6;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-comments p {
    margin: 0;
    font-size: 16px;
}

.comment-form .form-actions {
    margin-top: 0;
    flex-direction: row;
    border-top: 0;
    padding-top: 0;
    padding-bottom: 8px;
}

/* Add these styles to your forum-style.css */

/* Reply Form Styles */
.reply-form-container {
    margin: 16px 0 16px 44px;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 !important;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease-out;
}

.reply-form .form-group {
    margin-bottom: 12px;
}

.reply-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.reply-form .form-actions {
    display: flex
;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-direction: row !important;
        padding-top: 0;
    margin-top: 0;
    border-top: 0;
}
.reply-form .form-actions button {
    flex-basis: calc(50% - 4px);
    width: calc(50% - 4px);
}

.reply-form .btn {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter';
    font-size: 14px;
    line-height: 24px;
}

.reply-form .btn-secondary {
    background: #e5e5e5;
    color: #374151;
}

.reply-form .btn-secondary:hover {
    background: #e5e7eb;
}

.reply-form .btn-primary {
    background: #3b82f6;
    color: white;
}

.reply-form .btn-primary:hover {
    background: #2563eb;
}

.reply-form .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Reply Comments Styles */
.comment-replies {
    margin-left: 32px;
    margin-top: 12px;
    border-left: 2px solid #e5e7eb;
    padding-left: 16px;
}

.comment.reply {
    margin-bottom: 12px;
    background: #fafafa;
    border-radius: 6px;
    padding: 12px;
}

.comment.reply .comment-avatar img {
    width: 24px;
    height: 24px;
}

.comment.reply .comment-header {
    margin-bottom: 6px;
}

.comment.reply .comment-author {
    font-size: 13px;
    font-weight: 600;
}

.comment.reply .comment-date {
    font-size: 11px;
    color: #6b7280;
}

.reply-indicator {
    font-size: 11px;
    color: #9ca3af;
    font-weight: normal;
}

.comment.reply .comment-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Reply Button Styles */
.reply-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-weight: 500;
}

.reply-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.reply-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Animation for reply form */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .reply-form-container {
        margin-left: 20px;
        padding: 12px;
    }
    
    .comment-replies {
        margin-left: 20px;
        padding-left: 12px;
    }
    
    .reply-form .form-actions {
        flex-direction: column;
    }
    
    .reply-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .reply-form-container {
        margin-left: 8px;
    }
    
    .comment-replies {
        margin-left: 12px;
        padding-left: 8px;
    }
    
    .comment.reply {
        padding: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .reply-form-container {
        background: #374151;
        border-color: #4b5563;
    }
    
    .reply-form textarea {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .comment.reply {
        background: #2d3748;
    }
    
    .comment-replies {
        border-left-color: #4b5563;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .reply-form-container {
        border: 2px solid #000;
    }
    
    .reply-btn {
        border: 1px solid #000;
    }
    
    .reply-btn:hover {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reply-form-container {
        animation: none;
    }
    
    .reply-btn,
    .reply-form .btn {
        transition: none;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forum-post-modal {
        padding: 10px 0;
    }
    
    .post-modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .post-modal-header {
        padding: 12px 16px;
        border-radius: 12px 12px 0 0;
    }
    
    .post-modal-body {
        padding: 0 16px 16px;
    }
    
    .modal-post-title {
        font-size: 24px;
    }
    
    .modal-post-meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .modal-post-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .votes.vertical {
        flex-direction: row;
        padding: 6px 12px;
    }
    
    .post-stats {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .comments-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .comment-form .form-actions {
        flex-direction: column;
    }
    
    .comment-form .btn {
        width: 100%;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-post-content-body {
        font-size: 15px;
    }
    
    .modal-post-tags {
        gap: 6px;
    }
    
    .modal-post-tags .tag {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .comment {
        gap: 8px;
    }
    
    .comment-avatar img {
        width: 28px;
        height: 28px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .post-modal-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .post-modal-header {
        background: #1f2937;
        border-bottom-color: #374151;
    }
    
    .close-post-modal {
        color: #9ca3af;
    }
    
    .close-post-modal:hover {
        background: #374151;
        color: #f3f4f6;
    }
    
    .modal-post-title {
        color: #f9fafb;
    }
    
    .modal-post-meta {
        border-color: #374151;
    }
    
    .modal-post-meta .author-name {
        color: #f9fafb;
    }
    
    .modal-post-content-body {
        color: #d1d5db;
    }
    
    .modal-post-content-body h1,
    .modal-post-content-body h2,
    .modal-post-content-body h3,
    .modal-post-content-body h4,
    .modal-post-content-body h5,
    .modal-post-content-body h6 {
        color: #f9fafb;
    }
    
    .votes.vertical,
    .modal-share-btn,
    .bookmark-icon {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .votes.vertical .vote-btn:hover,
    .modal-share-btn:hover,
    .bookmark-icon:hover {
        background: #4b5563;
    }
    
    .comment-form-container {
        background: #374151;
        border-color: #4b5563;
    }
    
    .comment-form textarea {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .comment {
        border-bottom-color: #374151;
    }
    
    .comment-author {
        color: #f9fafb;
    }
    
    .comment-text {
        color: #d1d5db;
    }
}

/* Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .post-modal-content {
        border: 3px solid #000;
    }
    
    .close-post-modal {
        border: 2px solid #000;
    }
    
    .votes.vertical,
    .modal-share-btn,
    .bookmark-icon {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .post-modal-content,
    .close-post-modal,
    .votes.vertical .vote-btn,
    .modal-share-btn,
    .bookmark-icon {
        animation: none;
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}



/* Create Post FAB */
.forum-create-post-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
}

.forum-create-post-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.fab-icon {
    font-size: 20px;
    color: white;
}

/* Inline Post View Styles */
.inline-post-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
}

.inline-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.inline-post-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 90%;
    scrollbar-width: none;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease-out;
    margin: 40px auto;
}

.inline-post-header {
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.close-inline-post-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-inline-post-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.inline-post-body {
    padding: 0 24px 24px;
}

/* Inline Post Loading State */
.inline-post-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.inline-post-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.inline-post-loading p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Inline Post Error State */
.inline-post-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.inline-post-error h3 {
    color: #dc2626;
    margin-bottom: 8px;
}

.inline-post-error p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* Add this to forum-style.css */

/* Simplified Inline Post Header */
.inline-post-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.inline-post-article-header .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inline-post-article-header .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.inline-post-article-header .author-details {
    display: flex;
    flex-direction: column;
}

.inline-post-article-header .author-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.inline-post-article-header .post-time {
    font-size: 12px;
    color: #6b7280;
}

.inline-post-article-header .post-actions {
    display: flex;
    align-items: center;
}

.bookmark-icon-small {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.bookmark-icon-small:hover {
    background: #f3f4f6;
    color: #374151;
}

.bookmark-icon-small.bookmarked {
    color: #3b82f6;
}

/* Post Content */
.post-content-text {
    margin-bottom: 20px;
}

.inline-post-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.inline-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.inline-post-tags .tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Actions Bar */
.inline-post-actions-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 20px 0;
}

.votes.horizontal {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 16px;
}

.votes.horizontal .vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.votes.horizontal .vote-btn:hover {
    background: #e5e7eb;
}

.votes.horizontal .vote-count {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.comments-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

.share-btn-small {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.share-btn-small:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Comments Section */
.inline-comments-section {
    margin-top: 32px;
}

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

.comments-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.comments-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.comments-sort select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .inline-post-article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .inline-post-title {
        font-size: 20px;
    }
    
    .inline-post-actions-bar {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Add this to forum-style.css */

/* Simplified Inline Post Header */
.inline-post-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.inline-post-article-header .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inline-post-article-header .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.inline-post-article-header .author-details {
    display: flex;
    flex-direction: column;
}

.inline-post-article-header .author-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.inline-post-article-header .post-time {
    font-size: 12px;
    color: #6b7280;
}

.inline-post-article-header .post-actions {
    display: flex;
    align-items: center;
}

.like-btn-small {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    filter: grayscale(100%);
}

.like-btn-small:hover {
    background: #f3f4f6;
    color: #374151;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.like-btn-small.liked {
    color: #ef4444;
    filter: grayscale(0%);
    animation: heartPulse 0.3s ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Post Content */
.post-content-text {
    margin-bottom: 20px;
}

.inline-post-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.inline-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.inline-post-tags .tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Actions Bar */
.inline-post-actions-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 20px 0;
}

.votes.horizontal {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 16px;
}

.votes.horizontal .vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0px;
    border-radius: 4px;
    transition: all 0.2s;
}
button.vote-btn.upvote {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/thumbs_icon.svg) !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.inline-post-actions-bar .comments-count span.icon {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/comments_icon.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    width: 18px;
    height: 18px;
}
.inline-post-actions-bar button.share-btn-small span.icon {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/share_icon.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    width: 16px;
    height: 16px;
}
.inline-comments-section .comment .comment-replies {
    flex-basis: 100%;
    width: 100%;
}

.inline-comments-section .comment {
    display: flex
;
    flex-wrap: wrap;
}
div#inlineCommentsList {
    position: relative;
}
div#inlineCommentsList > div.comment:before {
    content: '';
    display: block;
    width: 1px;
    height: calc(100% - 52px);
    position: absolute;
    background: #d1d1d1;
    left: 14px;
    top: 28px;
}

div#inlineCommentsList > div.comment {
    position: relative;
}
.inline-comments-section .comment .comment-replies div.comment.reply:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 1px;
    background: #d1d1d1;
    left: -13px;
    top: 48px;
}
.inline-comments-section .comment .comment-replies div.comment.reply {
    background: none;
    position: relative;
        border-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.inline-comments-section .comment .comment-replies {
    border-left: 0;
    margin-left: 28px;
    padding-left: 0;
}
.inline-comments-section .comment .comment-replies {
    flex-basis: 100%;
    width: 100%;
}
.comment.reply .comment-text {
    margin-bottom: 8px;
}
.comment-actions button.reply-btn {
    background: #f2f2f2;
    display: table;
    margin-bottom: 8px;
}
.comment-replies {
    flex-basis: 100%;
    width: 100%;
}
.inline-post-body .comment {
    flex-wrap: wrap;
}

.votes.horizontal .vote-btn:hover {
    background: #e5e7eb;
}

.votes.horizontal .vote-count {
      font-weight: 400;
    color: #151515;
    min-width: initial;
}

.comments-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

.share-btn-small {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.share-btn-small:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Comments Section */
.inline-comments-section {
    margin-top: 32px;
}

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

.comments-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.comments-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.comments-sort select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .inline-post-article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .inline-post-title {
        font-size: 20px;
    }
    
    .inline-post-actions-bar {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* Inline Post Article */
.inline-post-article {
    max-width: none;
}

.inline-post-article-header {
    margin-bottom: 32px;
}

.inline-post-article-header .breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.inline-post-article-header .breadcrumb .separator {
    margin: 0 8px;
    color: #9ca3af;
}

.post-community-badge {
    margin-bottom: 16px;
}

.community-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.inline-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0 0 16px 0;
}

.inline-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.inline-post-tags .tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.inline-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.inline-post-meta .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inline-post-meta .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.inline-post-meta .author-details {
    line-height: 1.4;
}

.inline-post-meta .author-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.inline-post-meta .post-time {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.inline-post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.votes.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
}

.votes.vertical .vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    color: #6b7280;
    transition: all 0.2s;
    border-radius: 4px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.votes.vertical .vote-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.votes.vertical .vote-btn.active {
    color: #3b82f6;
    background: #eff6ff;
}

.votes.vertical .vote-count {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

.share-btn,
.bookmark-icon {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.share-btn:hover,
.bookmark-icon:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.bookmark-icon.bookmarked {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Featured Image */
.inline-post-featured-image {
    margin-bottom: 16px;
    max-height: 204px;
    overflow: hidden;
    border-radius: 16px;
    display: flex
;
    align-items: center;
}
.inline-post-content-body {
    margin-bottom: 0;
}
.inline-post-actions-bar {
    border: 0;
    margin: 0;
    padding: 0;
    gap: 8px;
}
.close-inline-post-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 9999;
    display: flex
;
    align-items: center;
    padding-top: 0;
}
.inline-post-actions-bar > div.votes.horizontal, .inline-post-actions-bar > div, .inline-post-actions-bar > button {
    border-radius: 8px;
    background: var(--Color-Brand-Light-Grey, #F2F2F2);
    padding: 4px 12px;
    color: var(--Color-Brand-Black, #151515);
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    border: none;
    min-height: 32px;
}

.inline-post-featured-image .featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Post Content Body */
.inline-post-content-body {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.inline-post-content-body h1,
.inline-post-content-body h2,
.inline-post-content-body h3,
.inline-post-content-body h4,
.inline-post-content-body h5,
.inline-post-content-body h6 {
    color: #111827;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.inline-post-content-body p {
    margin-bottom: 16px;
}

.inline-post-content-body ul,
.inline-post-content-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.inline-post-content-body blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 16px 20px;
    margin: 24px 0;
    font-style: italic;
    color: #4b5563;
}

.inline-post-content-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #e11d48;
}

.inline-post-content-body pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.inline-post-content-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Post Images Grid */
.inline-post-images {
    margin-bottom: 32px;
}

.inline-post-images h4 {
    margin-bottom: 16px;
    color: #111827;
    font-weight: 600;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.image-item {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.image-item .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 12px 16px;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}

/* Post Footer Stats */
.inline-post-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    margin-bottom: 32px;
}

.post-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.post-stats .stat {
    text-align: center;
}

.post-stats .stat strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.post-stats .stat span {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Inline Comments Section */
.inline-comments-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 32px;
}

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

.comments-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.login-prompt {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.login-prompt a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Inline Comment Form */
.comment-form-container {
    margin-bottom: 8px;
    background: none;
    border: none;
    border-radius: initial;
    padding: 0;
}

.comment-form .form-group {
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form .form-actions {
    margin-top: 0;
    flex-direction: row !important;
    border-top: 0;
    padding-top: 0;
}

.comment-form .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-form .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.comment-form .btn-secondary:hover {
    background: #e5e7eb;
}

.comment-form .btn-primary {
    background: #265BF6;
    color: white;
}

.comment-form .btn-primary:hover {
    background: #2563eb;
}

.comment-form .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Inline Comments List */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #AAAAAA;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

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

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

.comment-author {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #6b7280;
}

.comment-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.comment-actions button:hover {
    color: #374151;
    background: #f3f4f6;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}
.inline-post-article-header .author-name {
    font-size: 14px !important;
    font-family: 'Inter';
    line-height: 22px;
}

.inline-post-article-header .post-time {
    font-size: 10px;
    color: #151515;
    line-height: 16px;
}
.inline-post-article-header .post-actions button {
    border-radius: 15px;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    width: 30px;
    height: 30px;
}
.inline-post-article-header button.like-btn-small {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/grey-heart.svg);
    background-repeat: no-repeat;
    background-position: center center;
}
.inline-post-article-header button.like-btn-small.liked {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/blue-heart.svg);
    background-repeat: no-repeat;
    background-position: center center;
}
.inline-post-article-header .post-actions {
    position: absolute;
    top: 20px;
    right: 60px;
}
header.inline-post-article-header {
    margin-bottom: 0;
    border: 0;
}
.post-content-text .inline-post-title {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    margin-bottom: 16px;
}
.inline-post-tags {
    margin-bottom: 16px;
}
.inline-post-tags span.tag {
    border-radius: 8px;
    background: var(--Color-Brand-Grey-Focus, #D1D1D1);
    padding: 2px 12px;
    color: var(--Color-Brand-Black, #151515);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

.no-comments p {
    margin: 0;
    font-size: 16px;
}

/* Prevent body scroll when inline post is open */
body.inline-post-open {
    overflow: hidden;
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Inline Post */
@media (max-width: 768px) {
    .inline-post-container {
        padding: 10px 0;
    }
    
    .inline-post-content {
        width: 95%;
        margin: 20px auto;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .inline-post-header {
        padding: 12px 16px;
        border-radius: 12px 12px 0 0;
    }
    .inline-post-header {
    border: none;
    padding: 0;
}
.inline-post-article-header .author-name {
    font-size: 14px !important;
    font-family: 'Inter';
    line-height: 22px;
}

.inline-post-article-header .post-time {
    font-size: 10px;
    color: #151515;
    line-height: 16px;
}
    
    .inline-post-body {
        padding: 0 16px 16px;
    }
    
    .inline-post-title {
        font-size: 24px;
    }
    
    .inline-post-meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .inline-post-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .votes.vertical {
        flex-direction: row;
        padding: 6px 12px;
    }
    
    .post-stats {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .comments-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .comment-form .form-actions {
        flex-direction: column;
    }
    
    .comment-form .btn {
        width: 100%;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .inline-post-content-body {
        font-size: 15px;
    }
    
    .inline-post-tags {
        gap: 6px;
    }
    
    .inline-post-tags .tag {
        font-size: 12px;
        padding: 3px 8px;
    }
    .post-image-placeholder img {
        object-fit: contain !important;
        border: 1px solid #dfdfdf;
        overflow: hidden;
        border-radius: 16px;
    }
    .post-image-placeholder {
        background:white !important;
    }
    
    .comment {
        gap: 8px;
    }
    
    .comment-avatar img {
        width: 28px;
        height: 28px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .inline-post-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .inline-post-header {
        background: #1f2937;
        border-bottom-color: #374151;
    }
    
    .close-inline-post-btn {
        color: #9ca3af;
    }
    
    .close-inline-post-btn:hover {
        background: #374151;
        color: #f3f4f6;
    }
    
    .inline-post-title {
        color: #f9fafb;
    }
    
    .inline-post-meta {
        border-color: #374151;
    }
    
    .inline-post-meta .author-name {
        color: #f9fafb;
    }
    
    .inline-post-content-body {
        color: #d1d5db;
    }
    
    .inline-post-content-body h1,
    .inline-post-content-body h2,
    .inline-post-content-body h3,
    .inline-post-content-body h4,
    .inline-post-content-body h5,
    .inline-post-content-body h6 {
        color: #f9fafb;
    }
    
    .votes.vertical,
    .share-btn,
    .bookmark-icon {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .votes.vertical .vote-btn:hover,
    .share-btn:hover,
    .bookmark-icon:hover {
        background: #4b5563;
    }
    
    .comment-form-container {
        background: #374151;
        border-color: #4b5563;
    }
    
    .comment-form textarea {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .comment {
        border-bottom-color: #374151;
    }
    
    .comment-author {
        color: #f9fafb;
    }
    
    .comment-text {
        color: #d1d5db;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .inline-post-content {
        border: 3px solid #000;
    }
    
    .close-inline-post-btn {
        border: 2px solid #000;
    }
    
    .votes.vertical,
    .share-btn,
    .bookmark-icon {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .inline-post-content,
    .close-inline-post-btn,
    .votes.vertical .vote-btn,
    .share-btn,
    .bookmark-icon {
        animation: none;
        transition: none;
    }
    
    .inline-post-loading .loading-spinner {
        animation: none;
    }
}

/* Modal Styles */
.forum-create-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    max-width: 600px;
    width: 90%;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

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

/* Forum Filter Info Styles */
.forum-filter-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #0c4a6e;
}

.forum-filter-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-filter-info strong {
    color: #075985;
    font-weight: 600;
}

.clear-filter {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.clear-filter:hover {
    background-color: #e0f2fe;
    text-decoration: none;
}


/* Share Modal Styles */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comment sorting styles */
.comments-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.comments-sort label {
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.comments-sort select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.comments-sort select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Comment sorting animation */
.comment.sorting {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Loading state for comments */
.comments-list.sorting {
    position: relative;
}

.comments-list.sorting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    pointer-events: none;
}

.comments-list.sorting::after {
    content: 'Sorting comments...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #6b7280;
    z-index: 11;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.2s ease-out;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.share-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal .close-btn:hover {
    background: #f3f4f6;
}

.share-modal-body {
    padding: 24px;
}

/* URL Copy Section */
.share-url-section {
    margin-bottom: 24px;
}

.share-url-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.url-copy-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-url {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
    background: #f9fafb;
    font-family: 'Monaco', 'Menlo', monospace;
}

.copy-url-btn {
    padding: 10px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
}

.copy-url-btn:hover {
    background: #2563eb;
}

.copy-url-btn.success {
    background: #10b981;
}

/* Share Options Grid */
.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: white;
}

.share-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.share-option.loading {
    pointer-events: none;
    opacity: 0.6;
}

.share-option.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.share-icon {
    font-size: 24px;
    margin-bottom: 8px;
    filter: grayscale(20%);
    transition: filter 0.2s;
}

.share-option:hover .share-icon {
    filter: grayscale(0%);
}

.share-option span {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Platform-specific icon colors */
.twitter-icon {
    color: #1DA1F2;
}

.facebook-icon {
    color: #1877F2;
}

.linkedin-icon {
    color: #0A66C2;
}

.email-icon {
    color: #EA4335;
}

.whatsapp-icon {
    color: #25D366;
}

.reddit-icon {
    color: #FF4500;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Share Button Enhancement */
.share-stat {
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.share-stat:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: translateY(-1px);
}

.share-stat:active {
    transform: translateY(0);
}

/* Add subtle animation to share icon */
.share-stat .stat-icon {
    transition: transform 0.2s;
}

.share-stat:hover .stat-icon {
    transform: scale(1.1);
}

/* Success message for sharing */
.share-success-message {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Posts Section Header Styles */
.posts-section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
}

.posts-section-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.posts-section-header .section-title {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    margin: 0;
}

.posts-section-header .section-description {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 4px 0 0 0;
    opacity: 0.7;
}

/* Posts Header Controls */
.posts-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-controls label {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    border-radius: 8px;
    background: #ffffff;
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.sort-select:focus {
    outline: none;
    border-color: #265BF6;
    box-shadow: 0 0 0 3px rgba(38, 91, 246, 0.1);
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-count span {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
}

/* Filter Badge Styles */
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #265BF6;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.filter-badge .clear-filter {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 16px;
    line-height: 1;
    margin-left: 4px;
}

.filter-badge .clear-filter:hover {
    opacity: 1;
}

/* Enhanced Navigation Item Active States */
.nav-item.active {
    background: var(--Color-Brand-Light-Grey, #F2F2F2);
    font-weight: 600;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

/* Loading States for Sorting */
.posts-header-controls.loading {
    opacity: 0.6;
    pointer-events: none;
}

.posts-header-controls.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--Color-Brand-Dark-Grey, #AAA);
    border-top: 2px solid #265BF6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Sort Animation */
.forum-post-card.sorting {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.forum-post-card.sorted {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State Enhancements */
.no-posts-message {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    border-radius: 16px;
    margin-top: 24px;
        width: 100%;
    flex-basis: 100%;
}

.no-posts-message h3 {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.no-posts-message p {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 16px;
    opacity: 0.7;
    margin: 0;
}

.no-posts-message .cta-button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #265BF6;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.no-posts-message .cta-button:hover {
    background: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .posts-section-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .posts-section-header .section-title {
        font-size: 24px;
    }
    
    .posts-section-header .section-description {
        font-size: 14px;
    }
    
    .posts-header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .sort-controls {
        justify-content: space-between;
        width: 100%;
    }
    
    .sort-select {
        flex: 1;
        min-width: 0;
    }
    
    .results-count {
        justify-content: center;
        padding-top: 8px;
        border-top: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    }
}

@media (max-width: 480px) {
    .posts-section-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .posts-section-header .section-title {
        font-size: 20px;
    }
    
    .posts-header-controls {
        margin-bottom: 16px;
        padding: 12px;
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .sort-controls label {
        font-size: 13px;
    }
    
    .sort-select {
        width: 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .posts-section-header {
        border-bottom-color: #374151;
    }
    
    .posts-section-header .section-title,
    .posts-section-header .section-description {
        color: #f9fafb;
    }
    
    .posts-header-controls {
        background: #1f2937;
        border-color: #374151;
    }
    
    .sort-controls label,
    .results-count span {
        color: #f9fafb;
    }
    
    .sort-select {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .no-posts-message {
        background: #1f2937;
        border-color: #374151;
    }
    
    .no-posts-message h3,
    .no-posts-message p {
        color: #f9fafb;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .posts-header-controls {
        border: 2px solid #000;
    }
    
    .sort-select {
        border: 2px solid #000;
    }
    
    .sort-select:focus {
        border-color: #0066cc;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .forum-post-card.sorting,
    .forum-post-card.sorted {
        transition: none;
        animation: none;
    }
    
    .posts-header-controls.loading::after {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .posts-header-controls {
        display: none;
    }
    
    .posts-section-header {
        page-break-after: avoid;
        border-bottom: 1px solid #000;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        margin: 20px;
        max-width: 320px;
    }
    
    .share-modal-header,
    .share-modal-body {
        padding: 16px;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .share-option {
        padding: 12px 8px;
    }
    
    .share-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .share-option span {
        font-size: 12px;
    }
    
    .url-copy-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-url-btn {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .share-option {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 16px;
    }
    .hidden-mobile {
        max-height: 0;
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        transition: .4s ease-in-out;
    }
    .forum-sidebar.active .mobile-btn:after {
    transform: rotate(180deg);
}
.forum-sidebar .mobile-btn:after {
    transform: rotate(0deg);
    transition: .2s ease-in-out;
}
    .forum-sidebar.active .hidden-mobile{
        max-height: 700px;
    }
    
    .share-icon {
        margin-bottom: 0;
        margin-right: 12px;
    }
}

.posts-section-header {
    border: 0;
    margin: 0;
    padding: 0;
}
.posts-section-header h2.section-title {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}
.posts-section-header .header-content {
    gap: 0;
}
.posts-header-controls {
    border: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.sort-controls label {
    width: fit-content;
    color: #AAAAAA;
}
.sort-controls .sort-select {
    width: fit-content;
    border: none;
    padding: 0;
    padding-right: 20px;
    background-position: 100% 50% !important;
}
.posts-header-controls > div.sort-controls {
    display: flex
;
    flex-wrap: nowrap !important;
    flex-direction: row;
}
.posts-header-controls > div.results-count span {
    line-height: 1;
    color: black;
    font-family: 'Inter';
    opacity: 1;
}
.posts-header-controls > div.results-count {
    border-top: 0;
    padding: 0;
    justify-content: flex-start;
    color: black;
    font-size: 14px;
}
.posts-header-controls {
    margin-bottom: 32px;
    margin-top: 8px;
}
.posts-header-controls {
    position: relative;
}
.posts-header-controls > div.sort-controls {
    display: flex
;
    flex-wrap: nowrap !important;
    flex-direction: row;
    width: fit-content;
    position: absolute;
    right: 0;
    top: -40px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .share-modal-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .share-modal-header {
        border-bottom-color: #374151;
    }
    
    .share-modal-header h3 {
        color: #f9fafb;
    }
    
    .share-modal .close-btn {
        color: #9ca3af;
    }
    
    .share-modal .close-btn:hover {
        background: #374151;
    }
    
    .share-url-section label {
        color: #d1d5db;
    }
    
    .share-url {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .share-option {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .share-option:hover {
        background: #4b5563;
        border-color: #60a5fa;
    }
    
    .share-option span {
        color: #d1d5db;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .share-modal-content {
        border: 2px solid #000;
    }
    
    .share-option {
        border: 2px solid #000;
    }
    
    .share-option:hover {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .share-modal-content,
    .share-option,
    .share-stat,
    .share-icon {
        animation: none;
        transition: none;
    }
    
    .share-option:hover {
        transform: none;
    }
}


/* Active community styling */
.community-item.active {
    background: #f3f4f6;
    padding-left: 13px; /* Adjust for border */
}

.community-item.active .community-name {

    font-weight: 600;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

/* Like Button Styles */
.like-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.like-btn.liked {
    animation: heartBeat 0.6s ease-in-out;
}

.heart-icon {
    font-size: 16px;
    filter: grayscale(100%);
    transition: filter 0.2s;
}

.like-btn.liked .heart-icon {
    filter: grayscale(0%);
    animation: heartPulse 0.3s ease-in-out;
}

.like-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    min-width: 16px;
}

.like-btn.liked + .like-count {
    color: #ef4444;
}

/* Heart animations */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Disabled state for like button */
.like-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.like-btn:disabled:hover {
    background: none;
    transform: none;
}
@media (max-width: 768px) {
    .custom-forum-container {
        flex-direction: column;
        padding: 32px 0px;
    }
    
    .forum-sidebar {
        width: 100%;
        order: -1;
    }
    
    .forum-main-content {
        order: 1;
    }
    
    .forum-post-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .post-image-placeholder {
        width: 100%;
        height: 200px;
        align-self: center;
    }
    
    .post-stats {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .forum-create-post-fab {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    
    .fab-icon {
        font-size: 18px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .post-stats {
        align-self: stretch;
        justify-content: space-between;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.vote-btn.loading {
    opacity: 0.4;
}

/* Success/Error Messages */
.forum-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.forum-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.forum-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Animation for new posts */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forum-post-card.new {
    animation: slideIn 0.3s ease-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .custom-forum-container {
        background: #111827;
        color: #f9fafb;
    }
    
    .forum-nav-section,
    .forum-communities-section,
    .forum-post-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .forum-section-title,
    .section-title,
    .post-title a,
    .author-name {
        color: #f9fafb;
    }
    
    .nav-item:hover {
        background: #374151;
    }
    
    .community-item:hover {
        background: #374151;
    }
}

/* Print styles */
@media print {
    .forum-sidebar,
    .forum-create-post-fab,
    .post-stats,
    .forum-pagination {
        display: none;
    }
    
    .custom-forum-container {
        display: block;
    }
    
    .forum-post-card {
        break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 20px;
    }
}

.custom-forum-container {
    display: flex;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar Styles */
.forum-sidebar {
    width: 100%;
    flex-shrink: 0;
}
.filter-btn:after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/chevron-down.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}
.forum-sidebar {
    margin-bottom: 32px;
}
.filter-btn {
    display: flex
;
    height: 40px;
    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: var(--Color-Brand-Light-Grey, #F2F2F2);
    font-size: 15px;
    margin-top: 8px;
}
.forum-sidebar > div {
    border: none;
    background: none;
    padding: 0;
    border-bottom: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    border-radius: 0;
    padding-bottom: 16px;
}
.forum-sidebar {
    border-radius: 16px;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    padding: 24px;
}
.forum-nav-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.forum-section-title {

    color: var(--Color-Brand-Black, #151515);

/* Heading/Mobile/H4 */
font-family: Inter;
font-size: 24px;
font-style: normal;
font-weight: 500;
    margin-top: 0;
    margin-bottom: 16px;
line-height: 140%; /* 33.6px */
}

.forum-nav-button {
    background: #265BF6;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.forum-nav-button:hover {
    background: #2563eb;
}

.forum-nav-options {
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.forum-nav-menu {
    padding: 0;
}

.nav-item {
    display: flex
;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    color: #151515;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 14px;
    font-family: 'Inter';
    line-height: 150%;
}
.nav-item.active, .community-item.active {
    background: #F2F2F2;
}

.nav-item:hover {
    background: #F2F2F2;
}

.nav-icon {
    font-size: 16px;
    height: 20px;
    width: 20px;
    display: inline-block;
}
span.nav-icon.create-post {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/plus_icon.svg);
    background-position: center center;
}
span.nav-icon.home-icon {
     background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/home_icon.svg);
    height: 20px;
    background-repeat: no-repeat;
    background-position: center center;
    filter: initial;
}
span.nav-icon.popular-icon {
     background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/popular_icon.svg);
    height: 20px;
    background-repeat: no-repeat;
    background-position: center center;
    filter: initial;
}
span.nav-icon.your-posts-icon {
     background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/your_posts_icon.svg);
    height: 20px;
    background-repeat: no-repeat;
    background-position: center center;
    filter: initial;
}
span.nav-icon.heart-icon {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/blue-heart.svg);
    height: 20px;
    background-repeat: no-repeat;
    background-position: center center;
    filter: initial;
}

/* Communities Section */
.forum-communities-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.section-title {
    color: var(--Color-Brand-Black, #151515);

/* Text/Medium/Medium */
font-family: Inter;
    margin: 16px 0px;
    margin-top: 32px;
font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 150%; /* 27px */
}

.community-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: 4px;
}

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

.community-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.community-name {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-description {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.create-community-btn {
    display: flex
;
    align-items: center;
    gap: 8px;
    color: #AAAAAA;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
    border-top: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    padding-top: 16px;
}

.create-community-btn:hover {
    color: #3b82f6;
}

.plus-icon {
    font-size: 16px;
    color: #9ca3af;
}

/* Main Content Area */
.forum-main-content {
    flex: 1;
    min-width: 0;
    max-width: 911px;
    margin-left: auto;
    flex-basis: 100%;
    width: 100%;
}

.forum-post-card {
    background: #ffffff;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex
;
    gap: 20px;
    transition: box-shadow 0.2s;
}

.forum-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-image-placeholder {
    width: 100%;
    height: 156px;
    background: #f3f4f6;
    border-radius: 16px;
    display: flex
;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.post-image-placeholder {
    position: relative;
}
.post-image-placeholder a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.post-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: url(https://www.circular-plastics-alliance.com/wp-content/uploads/2025/04/circular-plastics-alliance.svg) no-repeat;
    background-position: center center;
    background-size: 110px;
    opacity: .5;
}

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

.post-header h3.post-title {
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    margin-top: 0;
    margin-bottom: 10px;
}
.post-header div.like-stat {
    border-radius: 15px;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    width: 30px;
    height: 30px;
    display: flex
;
    align-items: center;
    justify-content: center;
}
.favorite-post .stat-item.like-stat button {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/blue-heart.svg);
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
}
.stat-item.like-stat button {
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/grey-heart.svg);
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
}
.post-header {
    display: flex
;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}
.post-header div.like-stat button img {
    width: 14px !important;
    height: 14px !important;
}
.post-tags > span.tag {
    border-radius: 8px;
    background: var(--Color-Brand-Grey-Focus, #D1D1D1);
    padding: 2px 12px;
    color: var(--Color-Brand-Black, #151515);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}
.post-tags {
    display: flex
;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    margin-top: -30px;
}
.post-meta .author-info > img {
    width: 40px;
    height: 40px;
    border-radius: 100%;
}
.post-meta .author-info {
    display: flex
;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}
.post-meta .author-details .post-time {
    color: var(--Color-Brand-Black, #151515);
    font-family: 'Inter';
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}
.post-meta .author-details .author-name {
    color: var(--Color-Brand-Black, #151515);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
}
.post-content .post-stats > .stat-item {
    border-radius: 8px;
    background: var(--Color-Brand-Light-Grey, #F2F2F2);
    padding: 4px 12px;
    color: var(--Color-Brand-Black, #151515);
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

.post-content .post-stats {
    display: flex
;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

/* Updated Voting Styles - Single Thumbs Up */
.votes {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f9fafb;
    border: 0;
    border-radius: 8px;
    padding: 4px 8px;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.2s;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
button.vote-btn.upvote {
    width: 18px;
    height: 18px;
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/thumbs_icon.svg);
    background-size: contain;
    background-position: center center;
    padding: 0;
}

.vote-btn:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.1);
}

.vote-btn.active {
    color: #3b82f6;
    background: #eff6ff;
}

.vote-btn.liked {
    color: #3b82f6;
    background: #eff6ff;
    animation: thumbsUpPulse 0.3s ease-in-out;
}

/* Hide downvote button */
.vote-btn.downvote {
    display: none;
}

.vote-count {
    font-weight: 400;
    color: #111827;
    text-align: center;
    font-size: 13px;
}
.post-content .post-stats > .stat-item.votes {
    padding-right: 20px;
}
.stat-item {
    display: flex
;
    align-items: center;
}
span.stat-icon.comment-icon {
    width: 18px;
    height: 18px;
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/comments_icon.svg);
    background-size: contain;
    background-position: center center;
    padding: 0;
    display: block;
    margin-right: 4px;
}
span.stat-icon.share-icon {
    width: 16px;
    height: 16px;
    background: url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/share_icon.svg);
    background-size: contain;
    background-position: center center;
    padding: 0;
    display: block;
    margin-right: 4px;
    margin-bottom: 0;
}
.share-modal .close-btn {
    top: initial;
    position: relative;
    padding-top: 0;
}
.post-content .post-stats > div {
    min-height: 32px;
}

/* Thumbs up animation */
@keyframes thumbsUpPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Disabled state */
.vote-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vote-btn:disabled:hover {
    background: none;
    transform: none;
}

/* Alternative styling to match your design */
.stat-item.votes {
    border-radius: 8px;
    background: var(--Color-Brand-Light-Grey, #F2F2F2);
    padding: 4px 12px;
    color: var(--Color-Brand-Black, #151515);
    font-family: 'Inter';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {


.forum-sidebar {
    max-width: 326px;
    align-self: flex-start;
    max-width:280px;
}
.forum-main-content {
    flex-basis: calc(100% - 320px);
    flex: initial;
    width: calc(100% - 320px);
}
.forum-post-card {
        align-items: center;
    }

.post-image-placeholder {
    width: 156px;
}
.inline-post-header {
        pointer-events: all;
        background: none;
        border: none;
        z-index: 99999;
        padding: 0;
}
section.forum-overzicht {
    padding: 100px 0px;
}

}

@media (min-width: 1180px) {

.forum-post-card .post-meta div.author-info {
    margin-bottom: 0;
}
span.c-btn.filter-btn.mobile-btn {
    display: none;
}
.inline-post-container {
    overflow-y: hidden;
}
.inline-post-featured-image  {
    max-height: 430px;
}
.posts-section-header h2.section-title {
    font-size: 32px;
    line-height: 120%;
}
.create-form-header h3 {
    font-size: 32px;
    line-height: 120%;
}
.posts-header-controls * {
    font-size: 16px !important;
}
.posts-header-controls > div.sort-controls {
    position: relative;
    top: initial;
    right: initial;
}
.posts-header-controls {
    justify-content: flex-end;
    margin-top: 0;
}
div#forumPostsList > .forum-post-card {
    width: 100%;
    flex-basis: 100%;
}
div#forumPostsList {
    display: flex
;
    flex-wrap: wrap;
    justify-content: space-between;
}
.forum-sidebar .forum-communities-section {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}
.forum-sidebar {
    align-self: flex-start;
    max-width: 328px;
            position: sticky;
        top: 140px;
}
    .forum-main-content {
        flex-basis: 100%;
        flex: 1;
        width: 100%;
    }
.forum-post-card .post-meta {
    display: flex
;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

}

/* Inline Create Form Styles */
.forum-create-form-container {
    background: #ffffff;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease-out;
}

.create-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
 
}

.create-form-header h3 {
    margin: 0;
    color: var(--Color-Brand-Black, #151515);
    font-family: Inter;
    font-size: 20px;
    font-weight: 600;
        display: block;
    margin-bottom: 8px;
}

.close-form-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.close-form-btn:hover {
    background: #f3f4f6;
}

/* Tab Navigation */
.create-form-tabs {
    margin-bottom: 20px;
}

.tab-header {
    display: flex;

}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #151515;
    border-bottom-color: #265BF6;
}

.tab-btn:hover {
    color: #374151;
}

.create-form-tabs div.tab-header button.tab-btn.active {
    border-bottom: 4px solid #265BF6;
}

.create-form-tabs div.tab-header button.tab-btn {
    color: #151515;
    border-bottom: 4px solid transparent;
}
.create-form-tabs div.tab-header {
    display: flex
;
    gap: 32px;
}
.tab-btn {
    padding: 0;
    font-size: 20px;
    font-family: 'Inter';
    border-radius: 0;
    border-bottom: 4px solid transparent;
    padding-bottom: 16px;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.community-selector {
    flex: 1;
}

.community-selector select {
    width: fit-content;
    padding: 4px 12px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Inter';
    border-radius: 8px;
    background: var(--Color-Brand-Light-Grey, #F2F2F2) url(https://www.circular-plastics-alliance.com/wp-content/plugins/custom-forum-plugin/uploads/chevron-down.svg);
    border: none;
    line-height: 22px;
    min-height: 30px;
    appearance: none;
    padding-right: 30px;
    background-repeat: no-repeat;
    background-position: 95% 50%;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.character-count {
    color: #000;
    text-align: right;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    position: relative;
    right: initial;
    top: initial;
    margin-top: 8px;
}

.forum-create-form-container input#inline_post_title {
    border-radius: 20px;
    border: 1px solid var(--Color-Brand-Dark-Grey, #AAA);
    background: #FFF;
    padding: 18px 24px;
    font-size: 16px;
    font-family: 'Inter';
    font-weight: 400;
}

/* Tab Content */
.tab-content {
    margin-bottom: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Text Editor Toolbar */
.text-editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.editor-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.editor-btn:hover {
    background: #e5e7eb;
}

.text-editor-toolbar + textarea {
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: #3b82f6;
}

.upload-placeholder {
    color: #6b7280;
}

.upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.upload-btn {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

/* Tags Input */
.tags-input {
    background-image: url("data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7 7L13 13M13 7L7 13' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter';
    font-size: 14px;
    line-height: 24px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: #265BF6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.comments-header button#addInlineCommentBtn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Update existing Create Post button styles */
.forum-nav-button {
    background: #265BF6;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    width: 100%;
    text-align: left;
}

.forum-nav-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Remove FAB since we're using inline form */
.forum-create-post-fab {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forum-create-form-container {
              padding: 0;
        margin-bottom: 16px;
        border: 0;
    }
    
     .create-form-header {
        margin-bottom: 10px;
        padding-bottom: 0px;
    }
    
    .create-form-header h3 {
        color: var(--Color-Brand-Black, #151515);

/* Heading/Mobile/H5 */
font-family: Inter;
font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 140%; /* 28px */
    }
    
    .tab-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 20px 16px;
    }
    
    .upload-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .text-editor-toolbar {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .editor-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Link tab specific styles */
#link-tab input {
    margin-bottom: 8px;
}

#link-tab small {
    color: #6b7280;
    font-size: 12px;
}

/* Focus states for accessibility */
.tab-btn:focus,
.editor-btn:focus,
.upload-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state for form submission */
.form-submitting .btn-primary {
    background: #9ca3af;
    cursor: not-allowed;
    position: relative;
}

.form-submitting .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success message styling */
.forum-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

.forum-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.forum-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Dark mode support for the form */
@media (prefers-color-scheme: dark) {
    .forum-create-form-container {
        background: #1f2937;
        border-color: #374151;
    }
    
    .create-form-header h3 {
        color: #f9fafb;
    }
    
    .close-form-btn {
        color: #9ca3af;
    }
    
    .close-form-btn:hover {
        background: #374151;
    }
    
    .tab-btn {
        color: #9ca3af;
    }
    
    .tab-btn.active {
        color: #60a5fa;
    }
    
    .form-group input,
    .form-group textarea,
    .community-selector select {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .text-editor-toolbar {
        background: #374151;
        border-color: #4b5563;
    }
    
    .upload-area {
        border-color: #4b5563;
    }
    
    .upload-placeholder {
        color: #9ca3af;
    }
}


/* ADD THIS TO THE END OF forum-style.css */

/* Enhanced Text Editor Toolbar Styles */
.text-editor-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
    align-items: center;
}

.editor-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    position: relative;
    user-select: none;
}

.editor-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.editor-btn:active,
.editor-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.editor-btn:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.editor-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Enhanced textarea styles when with toolbar */
.text-editor-toolbar + textarea {
    border-top: none;
    border-radius: 0 0 8px 8px;
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.text-editor-toolbar + textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Responsive design for toolbar */
@media (max-width: 768px) {
    .text-editor-toolbar {
        padding: 6px;
        gap: 2px;
    }
    
    .editor-btn {
        padding: 4px 6px;
        font-size: 12px;
        min-width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .text-editor-toolbar {
        flex-wrap: wrap;
    }
    
    .editor-btn {
        min-width: 24px;
        height: 24px;
        padding: 2px 4px;
        font-size: 11px;
    }
}