/* Forum-specific styles */

/* Main Layout */
#main-content {
    display: none;
}

#main-content.visible {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    min-height: calc(100vh - 53px);
}

/* Left Sidebar - Categories */
.sidebar-left {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.category-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.category-item.active {
    background: var(--gold-subtle);
    color: var(--text-primary);
}

.category-icon {
    font-size: 1rem;
}

.category-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
}

.create-category-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--btn-secondary-bg);
    border: 1px dashed var(--btn-secondary-border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.create-category-btn:hover {
    border-style: solid;
    color: var(--text-primary);
}

/* Center - Thread List */
.main-center {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.center-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.center-header-left {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.center-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.center-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.center-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-select {
    padding: 0.4rem 0.6rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--text-sm);
}

.create-thread-btn {
    padding: 0.5rem 1rem;
    background: var(--btn-primary-bg);
    border: none;
    border-radius: 6px;
    color: var(--btn-primary-text);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.create-thread-btn:hover:not(:disabled) {
    background: var(--btn-primary-hover);
}

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

/* Thread List */
.threads-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-subtle);
    border-radius: 6px;
    overflow: hidden;
}

.thread-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    cursor: pointer;
    transition: background 0.1s ease;
}

.thread-card:hover {
    background: var(--bg-elevated);
}

.thread-card.pinned {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--gold-primary);
}

.thread-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 2px;
}

.vote-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.1s ease;
    border-radius: 2px;
}

.vote-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.vote-btn.active.upvote {
    color: var(--color-success);
}

.vote-btn.active.downvote {
    color: var(--color-danger);
}

.vote-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
    text-align: center;
}

.vote-score.positive {
    color: var(--color-success);
}

.vote-score.negative {
    color: var(--color-danger);
}

.thread-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.thread-title {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.thread-title .pinned-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    background: var(--gold-primary);
    color: var(--bg-primary);
    border-radius: 2px;
    margin-left: 0.4rem;
    font-weight: 700;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.thread-meta > span:not(:first-child)::before {
    content: '•';
    margin-right: 0.5rem;
    opacity: 0.5;
}

.thread-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.author-name {
    color: var(--text-secondary);
    text-decoration: none;
}

.author-name:hover {
    color: var(--text-secondary);
}

.author-rating {
    font-weight: 600;
    color: var(--gold-primary);
    font-size: 0.7rem;
}

.thread-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.15rem;
    min-width: 70px;
}

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

.thread-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
}

/* Thread Detail View */
.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.35rem 0;
    margin-bottom: 0.75rem;
    transition: color 0.1s ease;
}

.back-btn:hover {
    color: var(--gold-primary);
}

.thread-detail {
    background: var(--bg-surface);
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.thread-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.thread-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    flex: 1;
    color: var(--text-primary);
}

.thread-badge {
    display: inline-block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.thread-badge.pinned {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

.thread-badge.locked {
    background: var(--color-danger);
    color: white;
}

.thread-detail-actions {
    display: flex;
    gap: 0.35rem;
}

.action-btn {
    background: transparent;
    border: none;
    border-radius: 2px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    transition: all 0.1s ease;
}

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

.action-btn.danger {
    color: var(--color-danger);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.thread-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.thread-detail-meta > span:not(:first-child)::before {
    content: '•';
    margin-right: 0.5rem;
    opacity: 0.5;
}

.thread-detail-content {
    line-height: 1.7;
    color: var(--text-primary);
}

.thread-detail-content h1,
.thread-detail-content h2,
.thread-detail-content h3 {
    font-family: 'Playfair Display', serif;
    margin: 1.5rem 0 0.75rem;
}

.thread-detail-content h1 { font-size: 1.5rem; }
.thread-detail-content h2 { font-size: 1.25rem; }
.thread-detail-content h3 { font-size: 1.1rem; }

.thread-detail-content p {
    margin-bottom: 1rem;
}

.thread-detail-content code {
    background: var(--bg-elevated);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.thread-detail-content pre {
    background: var(--bg-elevated);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.thread-detail-content blockquote {
    border-left: 3px solid var(--gold-dim);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.thread-detail-content ul,
.thread-detail-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.thread-detail-content li {
    margin-bottom: 0.5rem;
}

.thread-detail-content a {
    color: var(--gold-primary);
}

.thread-detail-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.thread-voting {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.thread-voting .vote-btn {
    font-size: 0.9rem;
    padding: 4px 8px;
}

.thread-voting .vote-score {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Replies Section */
.replies-section {
    margin-bottom: 1.5rem;
}

.replies-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reply-item {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    position: relative;
}

/* Reddit-style thread lines */
.reply-item.nested {
    margin-left: 1.25rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-subtle);
}

.reply-item.nested:hover {
    border-left-color: var(--gold-dim);
}

.reply-item.nested-2 { margin-left: 2.5rem; }
.reply-item.nested-3 { margin-left: 3.75rem; }
.reply-item.nested-4 { margin-left: 5rem; }
.reply-item.nested-5 { margin-left: 6.25rem; }

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.reply-author .author-name {
    font-weight: 500;
    color: var(--text-secondary);
}

.reply-author .author-rating {
    font-size: 0.7rem;
}

.reply-content {
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.reply-content p { margin-bottom: 0.35rem; }
.reply-content p:last-child { margin-bottom: 0; }

.reply-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-voting {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reply-voting .vote-btn {
    font-size: 0.75rem;
    padding: 2px 4px;
}

.reply-voting .vote-score {
    font-size: 0.75rem;
    min-width: 18px;
}

.reply-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.reply-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    transition: all 0.1s ease;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

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

/* Reply Composer */
.reply-composer {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 1rem;
}

.composer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.replying-to {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--bg-elevated);
    border-left: 3px solid var(--gold-primary);
    border-radius: 0 4px 4px 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.replying-to-name {
    color: var(--gold-primary);
    font-weight: 600;
}

.replying-to-cancel {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.25rem;
}

.replying-to-cancel:hover {
    color: var(--text-primary);
}

/* Simple reply-to tag */
.reply-to-tag {
    margin-left: 0.5rem;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* Admin Panel */
.admin-panel {
    background: var(--bg-surface);
    border: 1px solid var(--color-danger);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
}

.admin-panel-header h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-danger);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-panel-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
}

.admin-panel-content {
    padding: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.admin-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
}

.admin-tab:hover {
    background: var(--bg-hover);
}

.admin-tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.report-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--color-danger);
}

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

.report-type {
    font-weight: 600;
    color: var(--color-danger);
    font-size: var(--text-sm);
    text-transform: capitalize;
}

.report-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.report-reporter {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.report-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    background: var(--bg-surface);
    padding: 0.5rem;
    border-radius: 4px;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.report-action-btn {
    padding: 0.35rem 0.75rem;
    font-size: var(--text-xs);
    border-radius: 4px;
    cursor: pointer;
    border: none;
    background: var(--bg-surface);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

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

.report-action-btn.danger {
    background: var(--color-danger);
    color: white;
}

.report-action-btn.danger:hover {
    background: #dc2626;
}

.no-reports {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
    font-size: var(--text-sm);
}

/* Highlighted post (when viewing reported content) */
.reply-item.highlighted {
    animation: highlight-pulse 0.5s ease-out;
    box-shadow: 0 0 0 2px var(--gold);
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 4px var(--gold);
        background: rgba(212, 175, 55, 0.1);
    }
    100% {
        box-shadow: 0 0 0 2px var(--gold);
        background: transparent;
    }
}

.composer-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.composer-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-sm);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.composer-tab:hover {
    color: var(--text-primary);
}

.composer-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--gold-primary);
}

.composer-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--text-sm);
    resize: vertical;
}

.composer-textarea:focus {
    outline: none;
    border-color: var(--gold-dim);
}

.composer-preview {
    min-height: 120px;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    line-height: 1.6;
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.char-count.warning { color: var(--color-warning); }
.char-count.danger { color: var(--color-danger); }

.composer-actions {
    display: flex;
    gap: 0.5rem;
}

.cancel-reply-btn {
    padding: 0.4rem 0.8rem;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    border-radius: 6px;
    color: var(--btn-secondary-text);
    font-family: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
}

.submit-reply-btn {
    padding: 0.4rem 0.8rem;
    background: var(--btn-primary-bg);
    border: none;
    border-radius: 6px;
    color: var(--btn-primary-text);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
}

.submit-reply-btn:hover {
    background: var(--btn-primary-hover);
}

/* Right Sidebar */
.sidebar-right {
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.forum-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--gold-primary);
}

.forum-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.forum-rules li {
    padding: 0.4rem 0;
    padding-left: 1rem;
    position: relative;
}

.forum-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

/* Modal Styles - for showAlert/showConfirm from modal-utils.js */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: var(--bg-surface);
    border: 2px solid var(--border-accent);
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.2s ease;
}

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

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.modal-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Modal Styles - for forum-specific modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    margin: 5% auto;
    width: 500px;
    max-width: 90%;
    border-radius: 8px;
}

.modal-content.modal-large {
    width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea,
.form-textarea-small {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--text-sm);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold-dim);
}

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

.form-textarea-small {
    min-height: 80px;
    resize: vertical;
}

.form-input-small {
    width: 80px;
}

.btn-primary {
    padding: 0.5rem 1.25rem;
    background: var(--btn-primary-bg);
    border: none;
    border-radius: 6px;
    color: var(--btn-primary-text);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
}

.btn-secondary {
    padding: 0.5rem 1.25rem;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    border-radius: 6px;
    color: var(--btn-secondary-text);
    font-family: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--btn-secondary-hover-border);
}

/* Responsive */
@media (max-width: 1100px) {
    #main-content.visible {
        grid-template-columns: 220px 1fr;
    }
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    #main-content.visible {
        grid-template-columns: 1fr;
    }
    .sidebar-left {
        display: none;
    }
    .thread-card {
        grid-template-columns: 40px 1fr;
        padding: 0.6rem 0.75rem;
    }
    .thread-stats {
        display: none;
    }
    .reply-item.nested,
    .reply-item.nested-2,
    .reply-item.nested-3,
    .reply-item.nested-4,
    .reply-item.nested-5 {
        margin-left: 0.75rem;
        padding-left: 0.75rem;
    }
}
