/**
 * Forum Press Zone Frontend Styles
 *
 * Modern Light Mode with Soft Colors
 */

:root {
    /* Light Mode Colors - Slightly Darker Background */
    --presszone-forum-bg: #eef2ff;
    --presszone-forum-surface: #ffffff;
    --presszone-forum-surface-2: #f1f5f9;
    --presszone-forum-surface-3: #e2e8f0;
    --presszone-forum-glass: rgba(255, 255, 255, 0.9);
    --presszone-forum-glass-border: rgba(0, 0, 0, 0.06);

    /* Primary - Vibrant Blue */
    --presszone-forum-primary: #3b82f6;
    --presszone-forum-primary-hover: #2563eb;
    --presszone-forum-primary-dim: rgba(59, 130, 246, 0.1);
    --presszone-forum-primary-glow: rgba(59, 130, 246, 0.2);

    /* Text Colors */
    --presszone-forum-text: #1e293b;
    --presszone-forum-text-secondary: #334155;
    --presszone-forum-text-muted: #475569;

    /* Borders & Dividers */
    --presszone-forum-border: #e2e8f0;
    --presszone-forum-border-hover: #cbd5e1;

    /* Status Colors */
    --presszone-forum-success: #22c55e;
    --presszone-forum-warning: #f59e0b;
    --presszone-forum-error: #ef4444;

    /* Radius & Shadows */
    --presszone-forum-radius: 10px;
    --presszone-forum-radius-lg: 14px;
    --presszone-forum-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --presszone-forum-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --presszone-forum-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Page-Level Light Mode Overrides
   Forces light theme on entire WordPress page
   when forum plugin content is displayed
   ============================================ */

/* Override WordPress theme dark backgrounds - targets the whole page */
html:has(.presszone-forum-container),
body:has(.presszone-forum-container),
html:has(.presszone-forum-wrapper),
body:has(.presszone-forum-wrapper) {
    background: linear-gradient(180deg, var(--presszone-forum-bg-start, #dbeafe) 0%, var(--presszone-forum-bg-end, #eef2ff) 100%) !important;
}

/* The forum wrapper itself */
.presszone-forum-wrapper,
#presszone-forum-content {
    background: linear-gradient(180deg, var(--presszone-forum-bg-start, #dbeafe) 0%, var(--presszone-forum-bg-end, #eef2ff) 100%) !important;
    color: var(--presszone-forum-text) !important;
}

/* Target common WP theme wrapper classes - make them transparent */
body:has(.presszone-forum-container) .site-content,
body:has(.presszone-forum-container) .entry-content,
body:has(.presszone-forum-container) .content-area,
body:has(.presszone-forum-container) .main-content,
body:has(.presszone-forum-container) main,
body:has(.presszone-forum-container) #main,
body:has(.presszone-forum-container) #content,
body:has(.presszone-forum-container) #primary,
body:has(.presszone-forum-container) .hentry,
body:has(.presszone-forum-container) article,
body:has(.presszone-forum-container) .post,
body:has(.presszone-forum-container) .page,
body:has(.presszone-forum-container) .site-main {
    background: transparent !important;
    color: inherit !important;
}

/* Target Twenty Twenty-* themes specifically */
body:has(.presszone-forum-container) .wp-site-blocks,
body:has(.presszone-forum-container) .is-layout-flow,
body:has(.presszone-forum-container) .is-layout-constrained {
    background: transparent !important;
}

/* Force container to have proper background */
.presszone-forum-wrapper {
    background: linear-gradient(180deg, #dbeafe 0%, var(--presszone-forum-bg) 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.presszone-forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    color: var(--presszone-forum-text);
}

.presszone-forum-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

@media (max-width: 900px) {
    .presszone-forum-layout {
        grid-template-columns: 1fr;
    }
}

.presszone-forum-main {
    min-width: 0;
}

/* Page Header */
.presszone-forum-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
}

.presszone-forum-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: var(--presszone-forum-text);
}

.presszone-forum-page-header__desc {
    margin: 6px 0 0;
    color: var(--presszone-forum-text-secondary);
    font-size: 14px;
}

/* Buttons - Clean & Modern */
.presszone-forum-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--presszone-forum-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.presszone-forum-btn--primary {
    background: linear-gradient(135deg, var(--presszone-forum-primary) 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px var(--presszone-forum-primary-glow);
}

.presszone-forum-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.presszone-forum-btn--secondary {
    background: var(--presszone-forum-surface);
    color: var(--presszone-forum-text);
    border: 1px solid var(--presszone-forum-border);
}

.presszone-forum-btn--secondary:hover {
    background: var(--presszone-forum-surface-2);
    border-color: var(--presszone-forum-primary);
    color: var(--presszone-forum-primary);
}

.presszone-forum-btn--sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Breadcrumbs */
.presszone-forum-breadcrumbs {
    margin-bottom: 20px;
}

.presszone-forum-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.presszone-forum-breadcrumbs__item {
    display: flex;
    align-items: center;
    position: relative;
}

.presszone-forum-breadcrumbs__item:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-breadcrumbs__item a {
    color: var(--presszone-forum-primary);
    text-decoration: none;
}

.presszone-forum-breadcrumbs__item a:hover {
    text-decoration: underline;
}

.presszone-forum-breadcrumbs__item--current span {
    color: var(--presszone-forum-text-muted);
}

/* Category - Clean Card Style */
.presszone-forum-category {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--presszone-forum-shadow-sm);
    transition: box-shadow 0.2s ease;
}

.presszone-forum-category:hover {
    box-shadow: var(--presszone-forum-shadow);
}

.presszone-forum-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--presszone-forum-surface-2);
}

.presszone-forum-category__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--presszone-forum-primary);
}

.presszone-forum-category__toggle {
    background: none;
    border: none;
    color: var(--presszone-forum-text-muted);
    cursor: pointer;
    padding: 4px;
}

.presszone-forum-category__description {
    padding: 12px 20px 0;
    font-size: 13px;
    color: var(--presszone-forum-text-muted);
    margin: 0;
}

/* Forum Row */
.presszone-forum-forum-row {
    display: grid;
    grid-template-columns: 40px 1fr 120px 220px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--presszone-forum-border);
}

@media (max-width: 768px) {
    .presszone-forum-forum-row {
        grid-template-columns: 32px 1fr;
        grid-template-rows: auto auto;
    }

    .presszone-forum-forum-row__stats,
    .presszone-forum-forum-row__lastpost {
        grid-column: 2;
    }
}

.presszone-forum-forum-row--unread {
    background: var(--presszone-forum-primary-dim);
}

.presszone-forum-forum-row__icon {
    display: flex;
    justify-content: center;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-forum-row__main {
    min-width: 0;
}

.presszone-forum-forum-row__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.presszone-forum-forum-row__title a {
    color: var(--presszone-forum-text);
    text-decoration: none;
}

.presszone-forum-forum-row__title a:hover {
    color: var(--presszone-forum-primary);
}

.presszone-forum-forum-row__desc {
    font-size: 13px;
    color: var(--presszone-forum-text-muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presszone-forum-forum-row__subforums {
    font-size: 12px;
    margin-top: 6px;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-forum-row__subforums a {
    color: var(--presszone-forum-primary);
    text-decoration: none;
}

.presszone-forum-forum-row__stats {
    display: flex;
    gap: 24px;
    text-align: center;
}

.presszone-forum-forum-row__stat-value {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.presszone-forum-forum-row__stat-label {
    font-size: 11px;
    color: var(--presszone-forum-text-muted);
    text-transform: uppercase;
}

.presszone-forum-forum-row__lastpost {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.presszone-forum-forum-row__lastpost img {
    border-radius: 50%;
}

.presszone-forum-forum-row__lastpost-title {
    color: var(--presszone-forum-text);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.presszone-forum-forum-row__lastpost-meta {
    font-size: 12px;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-forum-row__lastpost-meta a {
    color: var(--presszone-forum-primary);
    text-decoration: none;
}

.presszone-forum-forum-row__no-posts {
    color: var(--presszone-forum-text-muted);
    font-style: italic;
}

/* Thread Table */
.presszone-forum-thread-table {
    width: 100%;
    background: var(--presszone-forum-surface);
    border-radius: var(--presszone-forum-radius-lg);
    border-collapse: collapse;
    overflow: hidden;
}

.presszone-forum-thread-table th {
    text-align: start;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--presszone-forum-text-muted);
    background: var(--presszone-forum-surface-2);
    letter-spacing: 0.5px;
}

.presszone-forum-thread-table__status {
    width: 50px;
}

.presszone-forum-thread-table__replies,
.presszone-forum-thread-table__views {
    width: 80px;
    text-align: center !important;
}

.presszone-forum-thread-table__lastpost {
    width: 180px;
}

.presszone-forum-thread-row td {
    padding: 14px 16px;
    border-top: 1px solid var(--presszone-forum-border);
    vertical-align: middle;
}

.presszone-forum-thread-row--unread {
    background: var(--presszone-forum-primary-dim);
}

.presszone-forum-thread-row--sticky {
    background: rgba(251, 191, 36, 0.08);
}

.presszone-forum-thread-row__status {
    display: flex;
    gap: 4px;
    align-items: center;
}

.presszone-forum-badge {
    font-size: 12px;
}

.presszone-forum-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.presszone-forum-status-dot--unread {
    background: var(--presszone-forum-primary);
}

.presszone-forum-thread-row__link {
    color: var(--presszone-forum-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.presszone-forum-thread-row__link:hover {
    color: var(--presszone-forum-primary);
}

.presszone-forum-thread-row__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-thread-row__meta img {
    border-radius: 50%;
}

.presszone-forum-thread-row__replies,
.presszone-forum-thread-row__views {
    text-align: center;
    font-weight: 500;
}

.presszone-forum-thread-row__lastpost-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.presszone-forum-thread-row__lastpost-info img {
    border-radius: 50%;
}

.presszone-forum-thread-row__lastpost-user {
    display: block;
    font-weight: 500;
    font-size: 13px;
}

.presszone-forum-thread-row__lastpost-date {
    display: block;
    font-size: 12px;
    color: var(--presszone-forum-text-muted);
}

/* Pagination */
.presszone-forum-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
}

.presszone-forum-pagination__link {
    padding: 8px 14px;
    background: var(--presszone-forum-surface);
    border-radius: var(--presszone-forum-radius);
    color: var(--presszone-forum-text);
    text-decoration: none;
    font-size: 14px;
}

.presszone-forum-pagination__link:hover,
.presszone-forum-pagination__link--active {
    background: var(--presszone-forum-primary);
    color: #ffffff;
}

.presszone-forum-pagination__info {
    color: var(--presszone-forum-text-muted);
    font-size: 14px;
}

/* Posts */
.presszone-forum-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.presszone-forum-post {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    overflow: hidden;
    box-shadow: var(--presszone-forum-shadow-sm);
}

.presszone-forum-post--op {
    border-color: var(--presszone-forum-primary);
    border-left-width: 3px;
}

/* Modern Horizontal Postbit */
.presszone-forum-postbit--horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--presszone-forum-surface-2);
}

.presszone-forum-postbit__avatar img {
    border-radius: 50%;
    display: block;
}

.presszone-forum-postbit__info {
    flex: 1;
}

.presszone-forum-postbit__username {
    font-weight: 600;
    color: var(--presszone-forum-primary);
    text-decoration: none;
    font-size: 14px;
}

.presszone-forum-postbit__title {
    font-size: 12px;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-postbit__meta {
    font-size: 13px;
    color: var(--presszone-forum-text-muted);
    display: flex;
    gap: 12px;
}

.presszone-forum-postbit__number {
    color: var(--presszone-forum-text-muted);
    text-decoration: none;
}

/* Legacy Vertical Postbit */
.presszone-forum-posts--legacy .presszone-forum-post {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.presszone-forum-postbit--vertical {
    padding: 20px;
    text-align: center;
    border-inline-end: 1px solid var(--presszone-forum-border);
    background: var(--presszone-forum-surface-2);
}

.presszone-forum-postbit--vertical .presszone-forum-postbit__avatar {
    margin-bottom: 10px;
}

.presszone-forum-postbit--vertical .presszone-forum-postbit__avatar img {
    border-radius: 50%;
}

.presszone-forum-postbit--vertical .presszone-forum-postbit__username a {
    font-weight: 600;
    color: var(--presszone-forum-primary);
    text-decoration: none;
}

.presszone-forum-postbit--vertical .presszone-forum-postbit__stats {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 12px;
}

.presszone-forum-postbit--vertical .presszone-forum-postbit__stats li {
    padding: 4px 0;
}

.presszone-forum-postbit--vertical .presszone-forum-postbit__stat-label {
    color: var(--presszone-forum-text-muted);
}

/* Post Content */
.presszone-forum-post__content {
    padding: 20px;
}

.presszone-forum-post__body {
    font-size: 15px;
    line-height: 1.7;
}

.presszone-forum-post__body blockquote,
.presszone-forum-post__body .presszone-forum-quote {
    margin: 16px 0;
    padding: 16px 20px;
    background: var(--presszone-forum-surface-2);
    border-inline-start: 3px solid var(--presszone-forum-primary);
    border-radius: var(--presszone-forum-radius);
    font-style: normal;
}

.presszone-forum-post__body .presszone-forum-quote__author {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--presszone-forum-primary);
    margin-bottom: 8px;
    font-style: normal;
}

.presszone-forum-post__body .presszone-forum-quote p {
    margin: 0;
    color: var(--presszone-forum-text-secondary);
}

.presszone-forum-post__signature {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--presszone-forum-border);
    font-size: 13px;
    color: var(--presszone-forum-text-muted);
    max-height: 100px;
    overflow: hidden;
}

.presszone-forum-post__edit-notice {
    margin-top: 16px;
    font-size: 12px;
    color: var(--presszone-forum-text-muted);
    font-style: italic;
}

/* Post Actions */
.presszone-forum-post__actions {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--presszone-forum-surface-2);
    border-top: 1px solid var(--presszone-forum-border);
}

.presszone-forum-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.presszone-forum-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--presszone-forum-surface);
    border-radius: 20px;
    font-size: 13px;
}

.presszone-forum-reactions__trigger {
    background: none;
    border: 1px solid var(--presszone-forum-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--presszone-forum-text-muted);
    cursor: pointer;
}

.presszone-forum-reactions__trigger:hover {
    border-color: var(--presszone-forum-primary);
    color: var(--presszone-forum-primary);
}

.presszone-forum-post__actions-right {
    display: flex;
    gap: 12px;
}

.presszone-forum-post-action {
    background: none;
    border: none;
    color: var(--presszone-forum-text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
}

.presszone-forum-post-action:hover {
    color: var(--presszone-forum-primary);
}

/* Reply Form */
.presszone-forum-reply-form {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--presszone-forum-shadow-sm);
}

.presszone-forum-reply-form h2 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--presszone-forum-text);
}

.presszone-forum-textarea {
    width: 100%;
    padding: 14px;
    background: var(--presszone-forum-surface-2);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius);
    color: var(--presszone-forum-text);
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.presszone-forum-textarea:focus {
    outline: none;
    border-color: var(--presszone-forum-primary);
    box-shadow: 0 0 0 3px var(--presszone-forum-primary-dim);
}

.presszone-forum-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* Sidebar Widgets */
.presszone-forum-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.presszone-forum-widget-panel {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    padding: 20px;
    box-shadow: var(--presszone-forum-shadow-sm);
}

.presszone-forum-widget-panel h3 {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--presszone-forum-text-secondary);
}

.presszone-forum-user-panel {
    display: flex;
    align-items: center;
    gap: 14px;
}

.presszone-forum-user-panel__avatar img {
    border-radius: 50%;
    border: 2px solid var(--presszone-forum-border);
}

.presszone-forum-user-panel__name {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--presszone-forum-text);
}

.presszone-forum-user-panel__name a {
    color: var(--presszone-forum-primary);
    text-decoration: none;
}

.presszone-forum-login-panel {
    text-align: center;
}

.presszone-forum-login-panel p {
    margin: 0 0 14px;
    color: var(--presszone-forum-text-secondary);
}

.presszone-forum-login-panel .presszone-forum-btn {
    margin: 4px;
}

.presszone-forum-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.presszone-forum-stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--presszone-forum-border);
}

.presszone-forum-stats-list li:last-child {
    border-bottom: none;
}

.presszone-forum-stats-list__value {
    font-weight: 600;
    color: var(--presszone-forum-primary);
}

.presszone-forum-stats-list__label {
    color: var(--presszone-forum-text-secondary);
}

/* Empty & Error States */
.presszone-forum-empty,
.presszone-forum-error {
    text-align: center;
    padding: 48px;
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    color: var(--presszone-forum-text-secondary);
}

.presszone-forum-login-notice {
    text-align: center;
    padding: 40px;
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    margin-top: 24px;
    box-shadow: var(--presszone-forum-shadow-sm);
}

.presszone-forum-text-muted {
    color: var(--presszone-forum-text-muted);
}

/* WYSIWYG Editor Styles */
.presszone-forum-form-group--editor .wp-editor-wrap {
    border-radius: var(--presszone-forum-radius);
    overflow: hidden;
    border: 1px solid var(--presszone-forum-border);
    background: var(--presszone-forum-surface);
}

.presszone-forum-form-group--editor .wp-editor-tools {
    background: var(--presszone-forum-surface-2);
    border-bottom: 1px solid var(--presszone-forum-border);
    padding: 8px;
}

.presszone-forum-form-group--editor .wp-editor-tabs {
    float: inline-end;
}

.presszone-forum-form-group--editor .wp-switch-editor {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    color: var(--presszone-forum-text);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--presszone-forum-radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.presszone-forum-form-group--editor .wp-switch-editor:hover,
.presszone-forum-form-group--editor .wp-switch-editor.switch-html:hover,
.presszone-forum-form-group--editor .wp-switch-editor.switch-tmce:hover {
    background: var(--presszone-forum-primary-dim);
    border-color: var(--presszone-forum-primary);
    color: var(--presszone-forum-primary);
}

.presszone-forum-form-group--editor .html-active .switch-html,
.presszone-forum-form-group--editor .tmce-active .switch-tmce {
    background: var(--presszone-forum-primary);
    border-color: var(--presszone-forum-primary);
    color: #ffffff;
}

.presszone-forum-form-group--editor .mce-toolbar .mce-btn {
    background: var(--presszone-forum-surface);
    border-color: var(--presszone-forum-border);
}

.presszone-forum-form-group--editor .mce-toolbar .mce-btn:hover {
    background: var(--presszone-forum-surface-2);
    border-color: var(--presszone-forum-primary);
}

.presszone-forum-form-group--editor .mce-toolbar .mce-btn.mce-active {
    background: var(--presszone-forum-primary-dim);
    border-color: var(--presszone-forum-primary);
}

.presszone-forum-form-group--editor .mce-container,
.presszone-forum-form-group--editor .mce-container-body {
    background: var(--presszone-forum-surface) !important;
}

.presszone-forum-form-group--editor .mce-toolbar {
    background: var(--presszone-forum-surface-2);
}

.presszone-forum-form-group--editor .wp-editor-container {
    border: none;
}

.presszone-forum-form-group--editor .mce-edit-area {
    background: var(--presszone-forum-surface);
}

.presszone-forum-form-group--editor .mce-edit-area iframe {
    background: var(--presszone-forum-surface);
}

.presszone-forum-form-group--editor .quicktags-toolbar {
    background: var(--presszone-forum-surface-2);
    border-bottom: 1px solid var(--presszone-forum-border);
    padding: 6px;
}

.presszone-forum-form-group--editor .quicktags-toolbar input.ed_button {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    color: var(--presszone-forum-text);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--presszone-forum-radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.presszone-forum-form-group--editor .quicktags-toolbar input.ed_button:hover {
    background: var(--presszone-forum-primary-dim);
    border-color: var(--presszone-forum-primary);
    color: var(--presszone-forum-primary);
}

.presszone-forum-form-group--editor .wp-editor-area {
    width: 100%;
    padding: 14px;
    background: var(--presszone-forum-surface);
    border: none !important;
    color: var(--presszone-forum-text);
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
}

.presszone-forum-form-group--editor .wp-editor-area:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--presszone-forum-primary);
}

/* New Thread Form */
.presszone-forum-new-thread-form {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    padding: 24px;
    box-shadow: var(--presszone-forum-shadow-sm);
}

.presszone-forum-new-thread-form .presszone-forum-form-group {
    margin-bottom: 20px;
}

.presszone-forum-new-thread-form .presszone-forum-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--presszone-forum-text);
}

.presszone-forum-new-thread-form .presszone-forum-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--presszone-forum-surface-2);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius);
    color: var(--presszone-forum-text);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.presszone-forum-new-thread-form .presszone-forum-input:focus {
    outline: none;
    border-color: var(--presszone-forum-primary);
    box-shadow: 0 0 0 3px var(--presszone-forum-primary-dim);
}

/* ============================================
   Modal (for Reports, etc.)
   ============================================ */
.presszone-forum-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.presszone-forum-modal {
    background: var(--presszone-forum-surface);
    width: 500px;
    max-width: 90%;
    border-radius: var(--presszone-forum-radius-lg);
    box-shadow: var(--presszone-forum-shadow-hover);
    overflow: hidden;
    animation: presszone-forum-modal-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes presszone-forum-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.presszone-forum-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--presszone-forum-border);
    background: var(--presszone-forum-surface-2);
}

.presszone-forum-modal__header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--presszone-forum-text);
}

.presszone-forum-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--presszone-forum-text-muted);
    padding: 0;
}

.presszone-forum-modal__close:hover {
    color: var(--presszone-forum-error);
}

.presszone-forum-modal__body {
    padding: 24px;
}

.presszone-forum-form-group {
    margin-bottom: 20px;
}

.presszone-forum-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--presszone-forum-text);
}

.presszone-forum-textarea {
    width: 100%;
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius);
    padding: 12px;
    background: var(--presszone-forum-surface);
    color: var(--presszone-forum-text);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.presszone-forum-textarea:focus {
    outline: none;
    border-color: var(--presszone-forum-primary);
    box-shadow: 0 0 0 3px var(--presszone-forum-primary-glow);
}

.presszone-forum-modal__footer {
    padding: 16px 24px;
    background: var(--presszone-forum-surface-2);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--presszone-forum-border);
}

.presszone-forum-modal__cancel {
    background: transparent;
    border: 1px solid var(--presszone-forum-border);
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-modal__cancel:hover {
    background: var(--presszone-forum-surface-3);
    color: var(--presszone-forum-text);
}

/* Link Item - Simple link nodes */
.presszone-forum-link-item {
    padding: 12px 20px;
    border-top: 1px solid var(--presszone-forum-border);
}

.presszone-forum-link-item__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--presszone-forum-text);
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: var(--presszone-forum-radius);
    transition: background 0.15s ease, color 0.15s ease;
}

.presszone-forum-link-item__link:hover {
    background: var(--presszone-forum-primary-dim);
    color: var(--presszone-forum-primary);
}

.presszone-forum-link-item__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.presszone-forum-link-item__title {
    font-weight: 500;
    font-size: 15px;
    color: var(--presszone-forum-primary);
}

.presszone-forum-link-item__link:hover .presszone-forum-link-item__title {
    color: var(--presszone-forum-primary-hover);
    text-decoration: underline;
}

.presszone-forum-link-item__desc {
    font-size: 13px;
    color: var(--presszone-forum-text-muted);
    margin-left: auto;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.presszone-forum-link-item__external {
    font-size: 14px;
    color: var(--presszone-forum-text-muted);
    margin-inline-start: 4px;
    flex-shrink: 0;
}

/* ============================================
   Avatar Visibility Fixes
   ============================================ */

/* Ensure last post avatars don't collapse in flex containers */
.presszone-forum-forum-row__lastpost-avatar,
.presszone-forum-thread-row__meta,
.presszone-forum-thread-row__lastpost-info {
    flex-shrink: 0;
}

/* Force avatar dimensions and display */
.presszone-forum-forum-row__lastpost-avatar img,
.presszone-forum-thread-row__meta img,
.presszone-forum-thread-row__lastpost-info img,
.presszone-forum-user-panel__avatar img {
    display: inline-block;
    max-width: none;
    height: auto;
    object-fit: cover;
    background-color: var(--presszone-forum-surface-3);
    /* Placeholder background */
}

/* Explicit sizes matching PHP get_avatar calls */
.presszone-forum-forum-row__lastpost-avatar img {
    width: 36px;
    height: 36px;
}

.presszone-forum-thread-row__meta img {
    width: 20px;
    height: 20px;
}

.presszone-forum-thread-row__lastpost-info img {
    width: 24px;
    height: 24px;
}

.presszone-forum-user-panel__avatar img {
    width: 64px;
    height: 64px;
}

/* ============================================
   Nested/Threaded Reply Styles
   Reddit/dcforum-style discussions
   ============================================ */

/* Nested post styling - each post in its own distinct box */
.presszone-forum-post--nested {
    position: relative;
    margin-bottom: 12px;
    border-radius: var(--presszone-forum-radius);
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.presszone-forum-post--nested:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--presszone-forum-border-hover, var(--presszone-forum-border));
}

/* Reply posts - distinct boxes with left accent and proper indentation */
.presszone-forum-post--reply {
    margin-inline-start: 0 !important;
    /* Let inline style handle indent */
    border-inline-start: 3px solid var(--presszone-forum-primary);
    background: var(--presszone-forum-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.presszone-forum-post--reply:hover {
    border-inline-start-color: var(--presszone-forum-primary-hover, var(--presszone-forum-primary));
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Depth-based accent colors for visual hierarchy */
.presszone-forum-post--nested[data-depth="1"] {
    border-inline-start-color: #3b82f6;
    /* Blue */
}

.presszone-forum-post--nested[data-depth="2"] {
    border-inline-start-color: #8b5cf6;
    /* Purple */
}

.presszone-forum-post--nested[data-depth="3"] {
    border-inline-start-color: #ec4899;
    /* Pink */
}

.presszone-forum-post--nested[data-depth="4"] {
    border-inline-start-color: #f59e0b;
    /* Amber */
}

.presszone-forum-post--nested[data-depth="5"],
.presszone-forum-post--nested[data-depth="6"] {
    border-inline-start-color: #10b981;
    /* Emerald */
}

/* Thread connecting line - now subtle */
.presszone-forum-post__thread-line {
    display: none;
    /* Hide the old thread line, boxes are clear enough */
}

/* Compact postbit for nested posts */
.presszone-forum-postbit--compact {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    background: var(--presszone-forum-surface-2);
    border-radius: var(--presszone-forum-radius) var(--presszone-forum-radius) 0 0;
    border-bottom: 1px solid var(--presszone-forum-border);
}

.presszone-forum-postbit--compact .presszone-forum-postbit__avatar {
    background: var(--presszone-forum-surface);
    padding: 6px;
    border-radius: var(--presszone-forum-radius);
    border: 1px solid var(--presszone-forum-border);
    margin-right: 12px;
    box-shadow: var(--presszone-forum-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.presszone-forum-postbit--compact .presszone-forum-postbit__avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.presszone-forum-postbit--compact .presszone-forum-postbit__info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.presszone-forum-postbit--compact .presszone-forum-postbit__username {
    font-weight: 600;
    color: var(--presszone-forum-primary);
    text-decoration: none;
    font-size: 13px;
}

.presszone-forum-postbit--compact .presszone-forum-postbit__separator {
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-postbit--compact .presszone-forum-postbit__time {
    color: var(--presszone-forum-text-muted);
    font-size: 12px;
}

/* Score badge */
.presszone-forum-post__score {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--presszone-forum-surface-3);
}

.presszone-forum-post__score--positive {
    color: var(--presszone-forum-success);
}

.presszone-forum-post__score--negative {
    color: var(--presszone-forum-error);
}

/* Vote buttons */
.presszone-forum-vote-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.presszone-forum-vote-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--presszone-forum-text-muted);
    transition: all 0.15s ease;
}

.presszone-forum-vote-btn:hover {
    background: var(--presszone-forum-surface-3);
}

.presszone-forum-vote-btn.presszone-forum-vote--up:hover,
.presszone-forum-vote-btn.presszone-forum-vote--up.active {
    color: var(--presszone-forum-success);
}

.presszone-forum-vote-btn.presszone-forum-vote--down:hover,
.presszone-forum-vote-btn.presszone-forum-vote--down.active {
    color: var(--presszone-forum-error);
}

/* Compact reactions */
.presszone-forum-reactions--compact {
    font-size: 12px;
}

.presszone-forum-reactions--compact .presszone-forum-reaction {
    padding: 2px 6px;
}

/* Per-post reply button */
.presszone-forum-reply-btn {
    color: var(--presszone-forum-primary) !important;
    font-weight: 500;
}

.presszone-forum-reply-btn:hover {
    background: var(--presszone-forum-primary-dim);
}

/* Replies container - sibling to parent post, not nested inside */
.presszone-forum-post__replies {
    margin-top: 12px;
}

/* Legacy children container (fallback) */
.presszone-forum-post__children {
    margin-top: 12px;
    padding-inline-start: 16px;
    position: relative;
}

/* Load more collapsed replies */
.presszone-forum-post__load-more {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 12px;
    background: var(--presszone-forum-surface-2);
    border: 1px dashed var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius);
    color: var(--presszone-forum-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.presszone-forum-post__load-more:hover {
    background: var(--presszone-forum-primary-dim);
    border-color: var(--presszone-forum-primary);
}

/* Inline reply form */
.presszone-forum-inline-reply {
    margin: 12px 0;
    margin-inline-start: 24px;
    padding: 12px;
    background: var(--presszone-forum-surface-2);
    border-radius: var(--presszone-forum-radius);
    border: 1px solid var(--presszone-forum-border);
}

.presszone-forum-inline-reply__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--presszone-forum-text-secondary);
}

.presszone-forum-inline-reply__close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-inline-reply textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.presszone-forum-inline-reply__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* ============================================
   Inline Edit Form
   Appears in-place when editing a post
   ============================================ */
.presszone-forum-inline-edit {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius);
    padding: 12px;
    margin-top: 12px;
}

.presszone-forum-inline-edit__form {
    display: flex;
    flex-direction: column;
}

.presszone-forum-inline-edit__textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background: var(--presszone-forum-surface-2);
    color: var(--presszone-forum-text-color);
}

.presszone-forum-inline-edit__textarea:focus {
    outline: none;
    border-color: var(--presszone-forum-primary);
    box-shadow: 0 0 0 2px var(--presszone-forum-primary-alpha);
}

.presszone-forum-inline-edit__error {
    color: var(--presszone-forum-danger, #dc2626);
    font-size: 13px;
    margin-top: 8px;
    padding: 8px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 4px;
}

.presszone-forum-inline-edit__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* Thread controls container - combines actions and sorting */
.presszone-forum-thread-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.presszone-forum-thread-controls__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

/* Thread Header Container */
.presszone-forum-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.presszone-forum-thread-header__info {
    flex: 1;
    min-width: 280px;
}

.presszone-forum-thread-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 14px;
    color: var(--presszone-forum-text-muted);
}

/* Thread header actions - flex row with buttons and sort */
.presszone-forum-thread-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    /* Force single line */
    margin-bottom: 4px;
    /* Align visually with text */
}

/* Sort options for nested discussions */
.presszone-forum-sort-options {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-inline-start: 8px;
    padding-inline-start: 12px;
    border-inline-start: 1px solid var(--presszone-forum-border);
    white-space: nowrap;
}

.presszone-forum-sort-options__label {
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-sort-options__btn {
    background: none;
    border: none;
    padding: 4px 10px;
    border-radius: 16px;
    color: var(--presszone-forum-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.presszone-forum-sort-options__btn:hover {
    background: var(--presszone-forum-surface-2);
}

.presszone-forum-sort-options__btn.active {
    background: var(--presszone-forum-primary);
    color: white;
}

/* ============================================
   Thread Tree Navigation
   Collapsible compact tree view of all posts
   ============================================ */

.presszone-forum-thread-tree {
    background: var(--presszone-forum-surface);
    border-radius: var(--presszone-forum-radius);
    border: 1px solid var(--presszone-forum-border);
    margin-bottom: 20px;
    overflow: hidden;
}

.presszone-forum-thread-tree__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--presszone-forum-surface-2);
    cursor: pointer;
    font-weight: 600;
    color: var(--presszone-forum-text);
    font-size: 14px;
    transition: background 0.15s ease;
}

.presszone-forum-thread-tree__header:hover {
    background: var(--presszone-forum-surface-3);
}

.presszone-forum-thread-tree__icon {
    font-size: 16px;
}

.presszone-forum-thread-tree__count {
    font-weight: 400;
    color: var(--presszone-forum-text-muted);
    font-size: 12px;
}

.presszone-forum-thread-tree__content {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
    border-top: 1px solid var(--presszone-forum-border);
}

.presszone-forum-thread-tree__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: var(--presszone-forum-text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: background 0.1s ease, color 0.1s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.presszone-forum-thread-tree__item:hover {
    background: var(--presszone-forum-primary-dim);
    color: var(--presszone-forum-primary);
}

.presszone-forum-thread-tree__connector {
    color: var(--presszone-forum-border-hover);
    font-family: monospace;
    font-size: 11px;
}

.presszone-forum-thread-tree__time {
    color: var(--presszone-forum-text-muted);
    font-size: 11px;
    min-width: 70px;
}

.presszone-forum-thread-tree__author {
    font-weight: 500;
    color: var(--presszone-forum-primary);
    flex-shrink: 0;
}

.presszone-forum-thread-tree__preview {
    color: var(--presszone-forum-text-muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.presszone-forum-thread-tree__item:hover .presszone-forum-thread-tree__author {
    text-decoration: underline;
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

/* Highlight effect when navigating to a post */
.presszone-forum-post[id^="post-"]:target {
    animation: presszone-forum-highlight 1.5s ease-out;
}

@keyframes presszone-forum-highlight {
    0% {
        background-color: var(--presszone-forum-primary-dim);
        box-shadow: 0 0 0 3px var(--presszone-forum-primary-dim);
    }

    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

/* ============================================
   PM Button in Post Headers (SRS §4.2)
   ============================================ */
.presszone-forum-postbit__pm {
    color: var(--presszone-forum-primary);
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: opacity 0.2s ease;
}

.presszone-forum-postbit__pm:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ============================================
   Moderation Checkboxes (SRS §5.2)
   ============================================ */
/* Moderation Checkbox wrapper styling handled by .presszone-forum-post__controls */
.presszone-forum-post__mod-checkbox {
    /* Reset legacy positioning */
    position: static;
}

.presszone-forum-post--nested {
    position: relative;
}

.presszone-forum-mod-select {
    width: 18px;
    height: 18px;
    accent-color: var(--presszone-forum-primary);
    cursor: pointer;
    margin: 0;
    border-radius: 4px;
}

.presszone-forum-mod-select:hover {
    transform: scale(1.1);
}

/* Legacy left margin for checkboxes removed */
/* body.presszone-forum-can-moderate .presszone-forum-posts--nested { margin-inline-start: 0; } */

/* Bulk Action Floating Bar (SRS §5.2) */
.presszone-forum-bulk-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    box-shadow: var(--presszone-forum-shadow-hover);
    padding: 12px 20px;
    display: none;
    align-items: center;
    gap: 16px;
    z-index: 1000;
}

.presszone-forum-bulk-actions[data-visible="true"] {
    display: flex;
}

.presszone-forum-bulk-actions__count {
    font-weight: 600;
    color: var(--presszone-forum-primary);
}

.presszone-forum-bulk-actions__buttons {
    display: flex;
    gap: 8px;
}

.presszone-forum-bulk-actions__btn {
    padding: 8px 16px;
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius);
    background: var(--presszone-forum-surface);
    color: var(--presszone-forum-text);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.presszone-forum-bulk-actions__btn:hover {
    border-color: var(--presszone-forum-primary);
    color: var(--presszone-forum-primary);
}

.presszone-forum-bulk-actions__btn--delete {
    border-color: var(--presszone-forum-error);
    color: var(--presszone-forum-error);
}

.presszone-forum-bulk-actions__btn--delete:hover {
    background: var(--presszone-forum-error);
    color: #fff;
}

.presszone-forum-bulk-actions__close {
    background: none;
    border: none;
    color: var(--presszone-forum-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

/* ============================================
   RTL (Right-to-Left) Language Support
   Overrides directional properties when body
   has .presszone-forum-rtl class
   ============================================ */

/* Overall text direction */
.presszone-forum-rtl .presszone-forum-container,
.presszone-forum-rtl .presszone-forum-wrapper {
    direction: rtl;
    text-align: right;
}

/* Breadcrumb separator direction */
.presszone-forum-rtl .presszone-forum-breadcrumbs__item:not(:last-child)::after {
    content: '‹';
    /* Flipped chevron */
}

/* Note: Table header text-align now uses 'start' - no override needed */

/* Note: Forum rows automatically reverse with direction:rtl - no flex-direction override needed */

/* Note: Icon margins now use logical properties - no override needed */

/* Note: OP post, quote blocks, and postbit borders now use border-inline-start/end - no override needed */

/* Nested posts need to inherit direction for logical properties to work */
.presszone-forum-rtl .presszone-forum-posts--nested,
.presszone-forum-rtl .presszone-forum-post--nested,
.presszone-forum-rtl .presszone-forum-post__replies {
    direction: rtl;
}

/* RTL: Explicit border flip for nested replies - logical properties may not work with inline styles */
.presszone-forum-rtl .presszone-forum-post--reply {
    border-left: 1px solid var(--presszone-forum-border);
    border-right: 3px solid var(--presszone-forum-primary);
}

.presszone-forum-rtl .presszone-forum-post--reply:hover {
    border-right-color: var(--presszone-forum-primary-hover, var(--presszone-forum-primary));
}

/* RTL depth-based accent colors on RIGHT border */
.presszone-forum-rtl .presszone-forum-post--nested[data-depth="1"] {
    border-right-color: #3b82f6;
}

.presszone-forum-rtl .presszone-forum-post--nested[data-depth="2"] {
    border-right-color: #8b5cf6;
}

.presszone-forum-rtl .presszone-forum-post--nested[data-depth="3"] {
    border-right-color: #ec4899;
}

.presszone-forum-rtl .presszone-forum-post--nested[data-depth="4"] {
    border-right-color: #f59e0b;
}

.presszone-forum-rtl .presszone-forum-post--nested[data-depth="5"],
.presszone-forum-rtl .presszone-forum-post--nested[data-depth="6"] {
    border-right-color: #10b981;
}

/* RTL: Flip indentation from left to right */
.presszone-forum-rtl .presszone-forum-post__replies,
.presszone-forum-rtl .presszone-forum-post__load-more {
    margin-left: 0 !important;
    margin-right: var(--fpz-indent, 24px);
}

/* Note: User panel and postbit layouts are handled by direction:rtl auto-reversal */

/* Note: Editor tabs float now uses inline-end - no override needed */

/* Form action buttons alignment - use flex-start for RTL (which becomes right side) */
.presszone-forum-rtl .presszone-forum-form-actions,
.presszone-forum-rtl .presszone-forum-modal__footer {
    justify-content: flex-start;
}

/* Link item description margin */
.presszone-forum-rtl .presszone-forum-link-item__desc {
    margin-left: 0;
    margin-right: auto;
}

/* External link icon margin */
.presszone-forum-rtl .presszone-forum-link-item__external {
    margin-left: 0;
    margin-right: 4px;
}

/* Moderation checkbox position */
.presszone-forum-rtl .presszone-forum-post__mod-checkbox {
    left: auto;
    right: -28px;
}

/* Pagination arrows - flip the arrow icons */
.presszone-forum-rtl .presszone-forum-pagination__prev::before {
    content: '→';
}

.presszone-forum-rtl .presszone-forum-pagination__next::after {
    content: '←';
}

/* Note: Post actions, vote buttons, reactions - all handled by direction:rtl auto-reversal */

/* Thread tree connector - mirror horizontally */
.presszone-forum-rtl .presszone-forum-thread-tree__connector {
    transform: scaleX(-1);
}

/* Thread tree item - flip padding direction */
.presszone-forum-rtl .presszone-forum-thread-tree__item {
    padding-left: 12px !important;
    padding-right: var(--fpz-tree-indent, 28px) !important;
}

/* Search form - icon position still needs explicit positioning */
.presszone-forum-rtl .presszone-forum-search__icon {
    left: auto;
    right: 12px;
}

/* Social Links */
.presszone-forum-link--social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.presszone-forum-link--social:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* Platform Colors */
.presszone-forum-link--facebook {
    background-color: rgba(24, 119, 242, 0.1);
    color: #1877F2 !important;
}

.presszone-forum-link--facebook:hover {
    background-color: #1877F2;
    color: #ffffff !important;
}

.presszone-forum-link--whatsapp {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366 !important;
}

.presszone-forum-link--whatsapp:hover {
    background-color: #25D366;
    color: #ffffff !important;
}

.presszone-forum-link--discord {
    background-color: rgba(88, 101, 242, 0.1);
    color: #5865F2 !important;
}

.presszone-forum-link--discord:hover {
    background-color: #5865F2;
    color: #ffffff !important;
}

.presszone-forum-link--telegram {
    background-color: rgba(0, 136, 204, 0.1);
    color: #0088cc !important;
}

.presszone-forum-link--telegram:hover {
    background-color: #0088cc;
    color: #ffffff !important;
}

.presszone-forum-link--twitter {
    background-color: rgba(29, 161, 242, 0.1);
    color: #1DA1F2 !important;
}

.presszone-forum-link--twitter:hover {
    background-color: #1DA1F2;
    color: #ffffff !important;
}

.presszone-forum-link--youtube {
    background-color: rgba(255, 0, 0, 0.1);
    color: #FF0000 !important;
}

.presszone-forum-link--youtube:hover {
    background-color: #FF0000;
    color: #ffffff !important;
}

.presszone-forum-link--instagram {
    background: linear-gradient(45deg, rgba(64, 93, 230, 0.1), rgba(225, 48, 108, 0.1));
    color: #E1306C !important;
}

.presszone-forum-link--instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: #ffffff !important;
}

.presszone-forum-link--linkedin {
    background-color: rgba(10, 102, 194, 0.1);
    color: #0A66C2 !important;
}

.presszone-forum-link--linkedin:hover {
    background-color: #0A66C2;
    color: #ffffff !important;
}

.presszone-forum-link--github {
    background-color: rgba(36, 41, 46, 0.1);
    color: #24292e !important;
}

.presszone-forum-link--github:hover {
    background-color: #24292e;
    color: #ffffff !important;
}

.presszone-forum-link--reddit {
    background-color: rgba(255, 69, 0, 0.1);
    color: #FF4500 !important;
}

.presszone-forum-link--reddit:hover {
    background-color: #FF4500;
    color: #ffffff !important;
}

/* Layout Updates: Mod Checkbox & Avatar Badges */

.presszone-forum-post__controls {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 20;
    background: transparent;
}

.presszone-forum-postbit__avatar {
    position: relative;
    display: inline-block;
}

.presszone-forum-postbit__rank-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.presszone-forum-postbit__rank-badge--img {
    overflow: hidden;
    padding: 2px;
    background: var(--presszone-forum-surface);
}

.presszone-forum-postbit__rank-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Ensure checkbox is visible on dark backgrounds */
.presszone-forum-mod-select {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--presszone-forum-primary);
}

/* ============================================
   User Post History Styles
   ============================================ */

.presszone-forum-user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    background: var(--presszone-forum-surface);
    padding: 24px;
    border-radius: var(--presszone-forum-radius-lg);
    border: 1px solid var(--presszone-forum-border);
    box-shadow: var(--presszone-forum-shadow-sm);
}

.presszone-forum-user-header__avatar img {
    border-radius: 50%;
    display: block;
}

.presszone-forum-user-header__info {
    flex: 1;
}

.presszone-forum-user-header__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--presszone-forum-text);
}

.presszone-forum-user-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-user-header__separator {
    opacity: 0.5;
}

.presszone-forum-user-header__profile-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--presszone-forum-primary);
    text-decoration: none;
    font-weight: 500;
}

.presszone-forum-user-header__profile-link:hover {
    text-decoration: underline;
}

.presszone-forum-user-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.presszone-forum-user-post {
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    border-radius: var(--presszone-forum-radius-lg);
    overflow: hidden;
    box-shadow: var(--presszone-forum-shadow-sm);
}

.presszone-forum-user-post__header {
    padding: 16px 20px;
    background: var(--presszone-forum-surface-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--presszone-forum-border);
}

.presszone-forum-user-post__thread-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.presszone-forum-user-post__thread-title a {
    color: var(--presszone-forum-text);
    text-decoration: none;
}

.presszone-forum-user-post__thread-title a:hover {
    color: var(--presszone-forum-primary);
}

.presszone-forum-user-post__type-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: var(--presszone-forum-surface);
    border: 1px solid var(--presszone-forum-border);
    color: var(--presszone-forum-text-secondary);
    font-weight: 500;
}

.presszone-forum-user-post__date {
    font-size: 13px;
    color: var(--presszone-forum-text-muted);
}

.presszone-forum-user-post__content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--presszone-forum-text);
}

.presszone-forum-user-post__footer {
    padding: 12px 20px;
    background: var(--presszone-forum-surface-2);
    border-top: 1px solid var(--presszone-forum-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.presszone-forum-user-post__score {
    font-weight: 600;
    font-size: 14px;
}

.presszone-forum-user-post__score--positive {
    color: var(--presszone-forum-success);
}

.presszone-forum-user-post__score--negative {
    color: var(--presszone-forum-error);
}

.presszone-forum-user-post__link {
    font-size: 13px;
    color: var(--presszone-forum-primary);
    text-decoration: none;
    font-weight: 500;
}

.presszone-forum-user-post__link:hover {
    text-decoration: underline;
}

.presszone-forum-empty {
    text-align: center;
    padding: 40px;
    color: var(--presszone-forum-text-muted);
    font-size: 16px;
    background: var(--presszone-forum-surface);
    border-radius: var(--presszone-forum-radius-lg);
    border: 1px solid var(--presszone-forum-border);
}

/* Fix for Single Thread Header visibility */
.presszone-forum-thread-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: var(--presszone-forum-text);
}

/* Force full width alignment for all post containers */
.presszone-forum-posts--op,
.presszone-forum-posts--nested {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    border: none;
}

/* Indentation for threaded replies restored */
/* .presszone-forum-post__replies { margin-left: calculated via inline style; } */