/* Enhanced Forum Styling - BoAnalyst */

/* Forum Section Base */
#forumSection {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.3s ease;
}

/* Dark Theme */
#forumSection.dark-theme {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

body.forum-dark-theme {
    background: #0a0a0a;
}

/* Lock Screen Styling */
.lock-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.lock-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 100%;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.lock-content h2 {
    color: #FFD700;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lock-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.lock-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Forum Header */
.forum-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.forum-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.forum-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Light theme text colors */
#forumSection:not(.dark-theme) .forum-header p {
    color: rgba(0, 0, 0, 0.7);
}

/* Create Post Button */
.create-post-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-post-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
}

/* Forum Posts Grid */
.forum-posts {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Individual Post Card */
.forum-post {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.forum-post:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-author {
    display: flex;
    align-items: center;
    flex: 1;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #FFD700;
    display: block;
    margin-bottom: 0.25rem;
}

.post-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Post Content */
.post-content {
    margin: 1rem 0;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.post-body {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
}

.action-btn.liked {
    color: #4ade80;
}

.action-btn.disliked {
    color: #f87171;
}

.action-btn span {
    font-weight: 600;
}

/* Replies Section */
.post-replies {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 215, 0, 0.1);
}

.replies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.replies-count {
    color: #FFD700;
    font-weight: 600;
}

.reply-item {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(255, 215, 0, 0.3);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.reply-author {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reply-author-name {
    color: #FFA500;
    font-weight: 500;
    margin-right: 0.5rem;
}

.reply-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.reply-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0.5rem 0;
}

.reply-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.reply-action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
}

.reply-action-btn:hover {
    color: #FFD700;
}

/* Create Post Modal */
.create-post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.create-post-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    /* CRITICAL: Enable line breaks and text selection */
    white-space: pre-wrap;
    word-wrap: break-word;
    /* Enable text selection and copy/paste on mobile */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    /* Enable long-press context menu on mobile */
    -webkit-touch-callout: default !important;
    touch-action: auto !important;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

/* Reply Input Box */
.reply-input-box {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.reply-input-box.active {
    display: block;
}

.reply-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* CRITICAL: Enable line breaks and text selection */
    white-space: pre-wrap;
    word-wrap: break-word;
    /* Enable text selection and copy/paste on mobile */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    /* Enable long-press context menu on mobile */
    -webkit-touch-callout: default !important;
    touch-action: auto !important;
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    min-height: 80px;
    resize: vertical;
    margin-bottom: 1rem;
}

.reply-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.reply-cancel,
.reply-submit {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.reply-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.reply-submit {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .forum-header h1 {
        font-size: 2rem;
    }
    
    .create-post-btn {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .forum-post {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
}

/* Loading States */
.forum-loading {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.1);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 215, 0, 0.7);
}

.no-posts p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* New Forum Styles for Database-backed Forum */

/* Forum Header Actions */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.forum-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.forum-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Modern Toggle Switch - Forum Specific */
#forumSection .theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

#forumSection .theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#forumSection .theme-toggle.dark::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #4a5568, #2d3748);
}

#forumSection .theme-toggle:hover {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Create Post Button */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Admin Delete Button */
.action-btn.delete-btn.admin-only {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
    position: relative;
}

.action-btn.delete-btn.admin-only:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.action-btn.delete-btn.admin-only::before {
    content: '⚠️';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
    background: #fbbf24;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f59e0b;
}

/* Admin-only elements styling */
.admin-only {
    border-left: 3px solid #fbbf24 !important;
    position: relative;
}

/* Light theme admin button */
#forumSection:not(.dark-theme) .action-btn.delete-btn.admin-only {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-color: rgba(220, 38, 38, 0.4);
}

#forumSection:not(.dark-theme) .action-btn.delete-btn.admin-only:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Reply Delete Button */
.reply-action-btn.delete-btn.admin-only {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    position: relative;
}

.reply-action-btn.delete-btn.admin-only:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.reply-action-btn.delete-btn.admin-only::before {
    content: '⚠️';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.6rem;
    background: #fbbf24;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f59e0b;
}

/* Forum Filters */
.forum-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    color: #FFD700;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Forum Stats */
.forum-stats {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* Updated Forum Post Styles */
.forum-post {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forum-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forum-post:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.forum-post:hover::before {
    opacity: 1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.post-info {
    flex: 1;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.post-author {
    color: #FFD700;
    font-weight: 500;
}

.post-category {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.post-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 1rem 0;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.reply-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.delete-post-btn,
.delete-reply-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-post-btn:hover,
.delete-reply-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border-color: transparent;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal Enhancements */
.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.05);
}

.modal-header h2 {
    color: #FFD700;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* CRITICAL: Enable line breaks and text selection for textareas */
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    /* Enable text selection and copy/paste on mobile for textareas */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    /* Enable long-press context menu on mobile */
    -webkit-touch-callout: default !important;
    touch-action: auto !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.reply-context {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #FFD700;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.reply-context h4 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.context-post h5 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.context-post p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.context-post small {
    color: rgba(255, 255, 255, 0.5);
}

/* Light Theme Overrides */
#forumSection:not(.dark-theme) {
    color: #1a202c;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

#forumSection:not(.dark-theme) .forum-header {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#forumSection:not(.dark-theme) .forum-filters {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

#forumSection:not(.dark-theme) .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

#forumSection:not(.dark-theme) .theme-toggle::before {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
}

#forumSection:not(.dark-theme) .theme-toggle.dark::before {
    background: linear-gradient(135deg, #4a5568, #2d3748);
}

#forumSection:not(.dark-theme) .theme-toggle:hover {
    border-color: #d69e2e;
    box-shadow: 0 0 10px rgba(214, 158, 46, 0.3);
}

#forumSection:not(.dark-theme) .lock-content {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(214, 158, 46, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#forumSection:not(.dark-theme) .lock-content h2 {
    color: #d69e2e;
}

#forumSection:not(.dark-theme) .lock-content p {
    color: #4a5568;
}

#forumSection:not(.dark-theme) .lock-icon {
    filter: none;
}

#forumSection:not(.dark-theme) .forum-post {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a202c;
}

/* Light Theme Text Color Fix - ONLY the specific change requested */
#forumSection:not(.dark-theme) .forum-post .post-title {
    color: #2d3748 !important;
}

#forumSection:not(.dark-theme) .forum-post .post-body {
    color: #4a5568 !important;
}

#forumSection:not(.dark-theme) .forum-post .author-name {
    color: #2d3748 !important;
}

#forumSection:not(.dark-theme) .forum-post .post-time {
    color: #718096 !important;
}

#forumSection:not(.dark-theme) .post-title {
    color: #1a202c;
}

#forumSection:not(.dark-theme) .post-content {
    color: #4a5568;
}

#forumSection:not(.dark-theme) .post-meta {
    color: #718096;
}

#forumSection:not(.dark-theme) .post-author {
    color: #d69e2e;
}

#forumSection:not(.dark-theme) .filter-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #4a5568;
}

#forumSection:not(.dark-theme) .stat-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

#forumSection:not(.dark-theme) .stat-number {
    color: #d69e2e;
}

#forumSection:not(.dark-theme) .stat-label {
    color: #718096;
}

/* New Forum Post Card Styles */
.forum-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.forum-post-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.forum-post-card .post-preview {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-post-card .read-more-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.forum-post-card .read-more-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Post Modal Styles */
.post-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.post-modal {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-modal-header {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.post-modal-header h2 {
    color: #1e293b;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.close-modal-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.close-modal-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

.post-modal-meta {
    padding: 0 2rem 1rem 2rem;
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.modal-author,
.modal-date,
.modal-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-author {
    color: #475569;
    font-weight: 500;
}

.modal-category {
    background: #e2e8f0;
    color: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-modal-content {
    padding: 2rem;
    color: #334155;
    line-height: 1.7;
    font-size: 1.05rem;
}

.post-modal-content h1,
.post-modal-content h2,
.post-modal-content h3 {
    color: #1e293b;
    margin: 1.5rem 0 0.6rem 0;
    font-weight: 600;
}

.post-modal-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.post-modal-content h2 {
    font-size: 1.5rem;
}

.post-modal-content h3 {
    font-size: 1.3rem;
}

.post-modal-content ul {
    margin: 1.2rem 0;
    padding-left: 0;
    list-style: none;
}

.post-modal-content ol {
    margin: 1.2rem 0;
    padding-left: 0;
    list-style: none;
    counter-reset: list-counter;
}

.post-modal-content li {
    margin: 0.1rem 0;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.4;
}

.post-modal-content ul li:before {
    content: "•";
    color: #64748b;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.post-modal-content ol li {
    counter-increment: list-counter;
}

.post-modal-content ol li:before {
    content: counter(list-counter) ".";
    color: #64748b;
    font-weight: 600;
    position: absolute;
    left: 0;
    min-width: 1.5rem;
}

.post-modal-content li.checkmark:before {
    content: "✅";
}

.post-modal-content li.cross:before {
    content: "❌";
}

.post-modal-content strong {
    color: #1e293b;
    font-weight: 600;
}

.post-modal-content em {
    color: #64748b;
    font-style: italic;
}

.post-modal-content p {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.post-modal-content h2 + p,
.post-modal-content h3 + p {
    margin-top: 0.6rem;
}

.post-modal-content ul + p,
.post-modal-content ol + p {
    margin-top: 1.2rem;
}

.post-modal-content p + ul,
.post-modal-content p + ol {
    margin-top: 0.8rem;
}

.post-modal-footer {
    padding: 2rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-modal-footer .post-stats {
    display: flex;
    gap: 2rem;
}

.post-modal-footer .stat {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.post-modal-footer .post-actions {
    display: flex;
    gap: 1rem;
}

/* Light Theme Modal Styles */
#forumSection:not(.dark-theme) .post-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-color: rgba(214, 158, 46, 0.3);
    color: #1a202c;
}

#forumSection:not(.dark-theme) .post-modal-header {
    background: rgba(214, 158, 46, 0.05);
    border-color: rgba(214, 158, 46, 0.2);
}

#forumSection:not(.dark-theme) .post-modal-header h2 {
    color: #d69e2e;
}

#forumSection:not(.dark-theme) .post-modal-content {
    color: #2d3748;
}

#forumSection:not(.dark-theme) .post-modal-content h1,
#forumSection:not(.dark-theme) .post-modal-content h2,
#forumSection:not(.dark-theme) .post-modal-content h3 {
    color: #d69e2e;
}

#forumSection:not(.dark-theme) .post-modal-content strong {
    color: #d69e2e;
}

#forumSection:not(.dark-theme) .post-modal-content em {
    color: #b7791f;
}

#forumSection:not(.dark-theme) .post-modal-meta {
    color: #718096;
}

#forumSection:not(.dark-theme) .modal-author {
    color: #d69e2e;
}

#forumSection:not(.dark-theme) .modal-category {
    background: rgba(214, 158, 46, 0.2);
    color: #d69e2e;
}

#forumSection:not(.dark-theme) .post-modal-footer {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(214, 158, 46, 0.2);
}

#forumSection:not(.dark-theme) .close-modal-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: #718096;
}

#forumSection:not(.dark-theme) .close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Post card styling - Light theme (default) */
.forum-post-card .post-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.forum-post-card .post-meta {
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.forum-post-card .post-author {
    color: #475569;
    font-weight: 500;
}

.forum-post-card .post-category {
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.forum-post-card .post-stats {
    display: flex;
    gap: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.forum-post-card .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.forum-post-card .reply-btn {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forum-post-card .reply-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Dark theme for forum posts */
#forumSection.dark-theme .forum-post-card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

#forumSection.dark-theme .forum-post-card:hover {
    background: #334155;
    border-color: #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#forumSection.dark-theme .forum-post-card .post-title {
    color: #f1f5f9;
}

#forumSection.dark-theme .forum-post-card .post-preview {
    color: #cbd5e1;
}

#forumSection.dark-theme .forum-post-card .post-meta {
    color: #94a3b8;
}

#forumSection.dark-theme .forum-post-card .post-author {
    color: #e2e8f0;
}

#forumSection.dark-theme .forum-post-card .post-category {
    background: #334155;
    color: #cbd5e1;
}

#forumSection.dark-theme .forum-post-card .post-stats {
    color: #94a3b8;
}

#forumSection.dark-theme .forum-post-card .post-footer {
    border-color: #334155;
}

#forumSection.dark-theme .forum-post-card .reply-btn {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

#forumSection.dark-theme .forum-post-card .reply-btn:hover {
    background: #475569;
    border-color: #64748b;
}

#forumSection.dark-theme .forum-post-card .read-more-btn {
    background: #3b82f6;
    color: #ffffff;
}

#forumSection.dark-theme .forum-post-card .read-more-btn:hover {
    background: #2563eb;
}

/* Dark theme for modal - Updated selectors */
.post-modal-overlay.dark-theme .post-modal,
#forumSection.dark-theme .post-modal {
    background: #1e293b;
    border-color: #334155;
}

.post-modal-overlay.dark-theme .post-modal-header,
#forumSection.dark-theme .post-modal-header {
    background: #334155;
    border-color: #475569;
}

.post-modal-overlay.dark-theme .post-modal-header h2,
#forumSection.dark-theme .post-modal-header h2 {
    color: #f1f5f9;
}

.post-modal-overlay.dark-theme .close-modal-btn,
#forumSection.dark-theme .close-modal-btn {
    background: #475569;
    border-color: #64748b;
    color: #cbd5e1;
}

.post-modal-overlay.dark-theme .close-modal-btn:hover,
#forumSection.dark-theme .close-modal-btn:hover {
    background: #64748b;
    border-color: #94a3b8;
    color: #f1f5f9;
}

.post-modal-overlay.dark-theme .post-modal-meta,
#forumSection.dark-theme .post-modal-meta {
    color: #94a3b8;
}

.post-modal-overlay.dark-theme .modal-author,
#forumSection.dark-theme .modal-author {
    color: #e2e8f0;
}

.post-modal-overlay.dark-theme .modal-category,
#forumSection.dark-theme .modal-category {
    background: #475569;
    color: #cbd5e1;
}

.post-modal-overlay.dark-theme .post-modal-content,
#forumSection.dark-theme .post-modal-content {
    color: #e2e8f0;
}

.post-modal-overlay.dark-theme .post-modal-content h1,
.post-modal-overlay.dark-theme .post-modal-content h2,
.post-modal-overlay.dark-theme .post-modal-content h3,
#forumSection.dark-theme .post-modal-content h1,
#forumSection.dark-theme .post-modal-content h2,
#forumSection.dark-theme .post-modal-content h3 {
    color: #f1f5f9;
}

.post-modal-overlay.dark-theme .post-modal-content h1,
#forumSection.dark-theme .post-modal-content h1 {
    border-color: #475569;
}

.post-modal-overlay.dark-theme .post-modal-content strong,
#forumSection.dark-theme .post-modal-content strong {
    color: #f1f5f9;
}

.post-modal-overlay.dark-theme .post-modal-content em,
#forumSection.dark-theme .post-modal-content em {
    color: #cbd5e1;
}

.post-modal-overlay.dark-theme .post-modal-content ul li:before,
.post-modal-overlay.dark-theme .post-modal-content ol li:before,
#forumSection.dark-theme .post-modal-content ul li:before,
#forumSection.dark-theme .post-modal-content ol li:before {
    color: #94a3b8;
}

.post-modal-overlay.dark-theme .post-modal-footer,
#forumSection.dark-theme .post-modal-footer {
    background: #334155;
    border-color: #475569;
}

.post-modal-overlay.dark-theme .post-modal-footer .stat,
#forumSection.dark-theme .post-modal-footer .stat {
    color: #94a3b8;
}

/* Dark theme modal overlay */
.post-modal-overlay.dark-theme,
#forumSection.dark-theme .post-modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

/* Forum Media Upload Styles */
.media-upload-container {
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #fafbfc;
}

.btn-media-upload {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #475569;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    min-height: 50px;
    z-index: 1000;
    position: relative;
}

.btn-media-upload:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}

.media-preview {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.media-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.media-preview-item .remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.media-preview-item .remove-media:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.media-preview-item .media-info {
    padding: 0.25rem;
    font-size: 0.7rem;
    color: #64748b;
    text-align: center;
    background: rgba(248, 250, 252, 0.9);
}

.upload-help {
    margin-top: 0.5rem;
    text-align: center;
}

.upload-help small {
    color: #64748b;
    font-size: 0.8rem;
}

/* Forum post media display */
.forum-post-media {
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.forum-post-media.single-media {
    grid-template-columns: 1fr;
    max-width: 500px;
}

.forum-post-media.two-media {
    grid-template-columns: 1fr 1fr;
}

.forum-post-media-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.forum-post-media-item img,
.forum-post-media-item video {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.forum-post-media-item img:hover,
.forum-post-media-item video:hover {
    transform: scale(1.02);
}

.forum-post-media-item.gif {
    border: 2px solid #fbbf24;
}

.forum-post-media-item .media-caption {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    background: rgba(248, 250, 252, 0.9);
}

/* Dark theme media styles */
#forumSection.dark-theme .btn-media-upload {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

#forumSection.dark-theme .btn-media-upload:hover {
    background: #475569;
    border-color: #64748b;
    color: #f1f5f9;
}

#forumSection.dark-theme .media-preview-item {
    background: #334155;
    border-color: #475569;
}

#forumSection.dark-theme .media-preview-item .media-info {
    background: rgba(51, 65, 85, 0.9);
    color: #cbd5e1;
}

#forumSection.dark-theme .forum-post-media-item {
    background: #334155;
    border-color: #475569;
}

#forumSection.dark-theme .forum-post-media-item .media-caption {
    background: rgba(51, 65, 85, 0.9);
    color: #cbd5e1;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .forum-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .forum-actions {
        justify-content: center;
    }
    
    .forum-filters {
        justify-content: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .pagination-controls {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .post-modal {
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .post-modal-header {
        padding: 1.5rem;
    }
    
    .post-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .post-modal-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .post-modal-footer {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-modal-meta {
        padding: 0 1.5rem 1rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}
