/* Forum Page Styles */
.forum-page {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.forum-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-header {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.forum-notice {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-notice i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-size: 1.8rem;
    color: var(--text-color);
}

.category-info {
    flex: 1;
}

.category-info h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.category-info h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.category-info h2 a:hover {
    color: var(--primary-color);
}

.category-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.subcategory-link {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subcategory-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    min-width: 150px;
}

.category-stats .stat {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.category-stats .stat i {
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-muted);
}

/* Category Grid - Legacy styles kept for compatibility */
.categories-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-group {
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.category-header {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.category-title-section h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title-section p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.category-header .btn-primary {
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Legacy category header for category groups */
.category-group .category-header {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.category-group .category-header i {
    font-size: 1.5rem;
}

.category-group .category-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.subcategory-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.subcategory-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
    color: var(--text-color);
    flex-shrink: 0;
}

.subcategory-info {
    flex: 1;
}

.subcategory-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #333;
}

.subcategory-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.subcategory-stats {
    display: flex;
    gap: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

.subcategory-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Topic List */
.category-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-header-bar h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

.topics-list {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.topics-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.topic-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.topic-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.topic-row.pinned {
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary-color);
}

.topic-row.locked {
    opacity: 0.7;
}

.topic-col-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.topic-icons {
    display: flex;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.topic-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.topic-info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.topic-info h3 a:hover {
    color: var(--primary-color);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.topic-tags .tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.topic-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.topic-col-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-color);
}

.topic-col-activity {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: right;
    white-space: nowrap;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background: #f8f9fa;
}

.topic-item.pinned {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary-color);
}

.topic-item.locked {
    opacity: 0.7;
}

.topic-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.topic-info {
    flex: 1;
    min-width: 0;
}

.topic-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.topic-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.topic-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.topic-tag {
    padding: 0.25rem 0.5rem;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #666;
}

.topic-stats {
    display: flex;
    gap: 2rem;
    text-align: center;
    color: #999;
}

.topic-stat {
    display: flex;
    flex-direction: column;
}

.topic-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
}

.topic-stat-label {
    font-size: 0.75rem;
}

/* Topic View */
.topic-view-header {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.topic-view-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    color: #333;
}

.topic-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.post-author-role {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--gradient-primary);
    color: var(--text-color);
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-number {
    color: var(--primary-color);
    font-weight: 600;
}

.post-date {
    color: var(--text-muted);
}

.post-edited {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.post-content {
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

.post-content video {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

.post-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
    font-size: 0.875rem;
    text-decoration: none;
}

.post-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.post-action-btn.liked {
    background: var(--gradient-primary);
    color: var(--text-color);
    border-color: var(--primary-color);
}

.post-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reply Form */
.reply-form,
.reply-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.reply-form h3,
.reply-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.editor-toolbar button {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.editor-toolbar button:hover {
    background: var(--gradient-primary);
    color: var(--text-color);
    border-color: var(--primary-color);
}

.editor-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    color: var(--text-color);
}

.editor-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #667eea;
    background: #f8f9fa;
}

.drop-zone i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.drop-zone p {
    margin: 0;
    color: #666;
}

.drop-zone input[type="file"] {
    display: none;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #e74c3c;
    color: var(--text-color);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Forms */
.topic-create-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.topic-create-form h1 {
    margin: 0 0 2rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group label small {
    font-weight: 400;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input.form-control,
textarea.form-control,
select.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    color: var(--text-color);
}

input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="color"].form-control {
    height: 45px;
}

select.form-control {
    height: 45px;
    cursor: pointer;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Admin Options */
.admin-options {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.admin-options h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#userRestrictionInput {
    margin-top: 0.5rem;
    padding-left: 2rem;
}

#userRestrictionInput input {
    margin-bottom: 0.5rem;
}

#userRestrictionInput small {
    display: block;
    color: #856404;
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Badges */
.badge-pinned {
    background: #f39c12;
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-locked {
    background: #e74c3c;
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .forum-page .container {
        padding: 0 30px;
    }
    
    .category-grid {
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .forum-page {
        padding-top: 100px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .topic-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .topic-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .forum-page {
        padding-top: 90px;
    }
    
    .forum-page .container {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .btn-new-topic, .btn-new-post {
        width: 100%;
        justify-content: center;
    }
    
    .category-card {
        grid-template-columns: 50px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .category-stats {
        grid-column: 2;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        min-width: auto;
        gap: 15px;
    }
    
    .category-stats .stat {
        font-size: 0.8rem;
        justify-content: flex-start;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .subcategory-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .topic-stats {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .editor-toolbar {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .editor-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .post-editor textarea {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .forum-page {
        padding-top: 80px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .category-card {
        grid-template-columns: 40px 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .category-info h2 {
        font-size: 1.1rem;
    }
    
    .category-description {
        font-size: 0.85rem;
    }
    
    .topic-card {
        padding: 12px;
    }
    
    .topic-title {
        font-size: 1.1rem;
    }
    
    .post-sidebar {
        padding: 12px;
    }
    
    .post-content {
        padding: 12px;
    }
    
    .editor-toolbar {
        gap: 3px;
    }
    
    .editor-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
