/* ============================================
   ArkaGaming.cl — Forum Styles
   ============================================ */

:root {
    --forum-bg: #0d0d14;
    --forum-card: #16161f;
    --forum-border: #2a2a3a;
    --forum-hover: #1e1e2e;
    --forum-muted: #6a6a7a;
    --forum-accent: #e50914;
    --forum-accent2: #00d4ff;
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--forum-bg);
    color: #e0e0e8;
    min-height: 100vh;
}

a { color: var(--forum-accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Navbar ===== */
.forum-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--forum-border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forum-navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.forum-navbar .nav-logo .accent { color: var(--forum-accent); }

.forum-navbar .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.forum-navbar .nav-links a {
    color: #a0a0b0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.forum-navbar .nav-links a:hover,
.forum-navbar .nav-links a.active {
    color: #fff;
}

.forum-navbar .nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-navbar .nav-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--forum-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    overflow: hidden;
}

.forum-navbar .nav-user .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-navbar .btn-login {
    background: var(--forum-accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.forum-navbar .btn-login:hover {
    background: #c70812;
    text-decoration: none;
}

/* ===== Layout ===== */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.forum-header {
    margin-bottom: 32px;
}

.forum-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.forum-header p {
    color: var(--forum-muted);
    font-size: 15px;
}

/* ===== Breadcrumb ===== */
.forum-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--forum-muted);
    flex-wrap: wrap;
}

.forum-breadcrumb a {
    color: var(--forum-accent2);
    text-decoration: none;
}

.forum-breadcrumb a:hover { text-decoration: underline; }

.forum-breadcrumb .separator { color: #3a3a4a; }

/* ===== Game Cards (main page) — visual image cards ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.forum-game-card {
    position: relative;
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--forum-border);
    background: var(--forum-card);
    text-decoration: none;
    color: inherit;
}

.forum-game-card:hover {
    transform: translateY(-6px);
    border-color: var(--forum-accent);
    box-shadow: 0 12px 40px rgba(229, 9, 20, 0.2);
}

.forum-game-card .game-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.5s ease;
}

.forum-game-card:hover .game-card-bg {
    transform: scale(1.05);
}

.forum-game-card .game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 20, 0.5) 40%, rgba(13, 13, 20, 0.95) 100%);
}

.forum-game-card .game-card-content {
    position: relative;
    z-index: 1;
    padding: 32px;
}

.forum-game-card .game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.forum-game-card .game-genre {
    font-size: 0.75rem;
    color: var(--forum-accent2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.forum-game-card .game-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.forum-game-card .game-desc {
    font-size: 0.9rem;
    color: rgba(160, 160, 176, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
}

.forum-game-card .game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-card-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--forum-muted);
}

.forum-card-stats .fc-stat strong {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.forum-game-card .game-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forum-accent);
    transition: all 0.2s;
    white-space: nowrap;
}

.forum-game-card:hover .game-btn {
    background: var(--forum-accent);
    color: #fff;
}

/* Fallback gradient backgrounds when no card image */
.forum-game-card[data-game="lineage2"] .game-card-bg,
.forum-game-card[data-game="lineage-2"] .game-card-bg {
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 40%, #0f3460 100%);
}

.forum-game-card[data-game="ark"] .game-card-bg {
    background: linear-gradient(135deg, #0d1b0e 0%, #1a3a1a 40%, #0d2818 100%);
}

.forum-game-card[data-game="general"] .game-card-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

/* ===== Categories ===== */
.category-section {
    margin-bottom: 32px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.category-header .cat-icon {
    font-size: 18px;
}

.category-header .cat-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-header .cat-desc {
    color: var(--forum-muted);
    font-size: 13px;
    margin-left: auto;
}

.forum-list {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.forum-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--forum-border);
    cursor: pointer;
    transition: background 0.2s;
}

.forum-item:last-child { border-bottom: none; }
.forum-item:hover { background: var(--forum-hover); }

.forum-item .forum-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1e1e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}

.forum-item .forum-info {
    flex: 1;
    min-width: 0;
}

.forum-item .forum-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    margin-bottom: 2px;
}

.forum-item .forum-desc {
    color: var(--forum-muted);
    font-size: 13px;
}

.forum-item .forum-meta {
    text-align: right;
    font-size: 12px;
    color: var(--forum-muted);
    flex-shrink: 0;
    margin-left: 16px;
}

.forum-item .forum-meta .meta-count {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* ===== Topics List ===== */
.topics-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.topics-toolbar .toolbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.topics-toolbar .search-box {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 6px;
    padding: 8px 14px;
    color: #fff;
    font-size: 14px;
    width: 260px;
}

.topics-toolbar .search-box::placeholder { color: var(--forum-muted); }
.topics-toolbar .search-box:focus { outline: none; border-color: var(--forum-accent2); }

.btn-new-topic {
    background: var(--forum-accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-new-topic:hover { background: #c70812; }
.btn-new-topic:disabled { opacity: 0.5; cursor: not-allowed; }

.topics-table {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 8px;
    overflow: hidden;
}

.topic-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--forum-border);
    cursor: pointer;
    transition: background 0.2s;
}

.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: var(--forum-hover); }

.topic-row.pinned {
    background: rgba(229, 9, 20, 0.05);
    border-left: 3px solid var(--forum-accent);
}

.topic-row .topic-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e1e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 14px;
    flex-shrink: 0;
}

.topic-row .topic-status.locked { background: #3a2a1a; }
.topic-row .topic-status.pinned { background: #2a1a1a; }

.topic-row .topic-info {
    flex: 1;
    min-width: 0;
}

.topic-row .topic-title {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-row .topic-meta {
    font-size: 12px;
    color: var(--forum-muted);
    display: flex;
    gap: 12px;
    align-items: center;
}

.topic-row .topic-meta .topic-author {
    color: var(--forum-accent2);
}

.topic-row .topic-stats {
    text-align: right;
    font-size: 12px;
    color: var(--forum-muted);
    flex-shrink: 0;
    margin-left: 16px;
    min-width: 80px;
}

.topic-row .topic-stats .stat-num {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.topic-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination button {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    color: #a0a0b0;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: var(--forum-accent2);
    color: #fff;
}

.pagination button.active {
    background: var(--forum-accent);
    border-color: var(--forum-accent);
    color: #fff;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Topic View (posts) ===== */
.topic-view-header {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.topic-view-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.topic-view-header .topic-info-bar {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--forum-muted);
    align-items: center;
    flex-wrap: wrap;
}

.topic-view-header .topic-info-bar .topic-author {
    color: var(--forum-accent2);
    font-weight: 600;
}

.topic-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.post-card {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 8px;
    overflow: hidden;
}

.post-card.first-post { border-color: var(--forum-accent); }

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--forum-border);
    background: rgba(0, 0, 0, 0.15);
}

.post-header .post-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--forum-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.post-header .post-username {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.post-header .post-user-title {
    font-size: 11px;
    color: var(--forum-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-header .post-team-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 212, 255, 0.15);
    color: var(--forum-accent2);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.post-header .post-date {
    font-size: 12px;
    color: var(--forum-muted);
}

.post-body {
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #c0c0d0;
}

.post-body p { margin-bottom: 12px; }
.post-body img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.post-body code {
    background: #0a0a0f;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--forum-accent2);
}
.post-body pre {
    background: #0a0a0f;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}
.post-body blockquote {
    border-left: 3px solid var(--forum-accent);
    padding-left: 16px;
    margin: 12px 0;
    color: var(--forum-muted);
    font-style: italic;
}

.post-footer {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid var(--forum-border);
    gap: 16px;
}

.post-reactions {
    display: flex;
    gap: 8px;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--forum-border);
    color: var(--forum-muted);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.reaction-btn:hover { border-color: var(--forum-accent2); color: #fff; }
.reaction-btn.active.like { border-color: #00e676; color: #00e676; background: rgba(0, 230, 118, 0.1); }
.reaction-btn.active.dislike { border-color: #ff1744; color: #ff1744; background: rgba(255, 23, 68, 0.1); }

.post-signature {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--forum-border);
    font-size: 12px;
    color: var(--forum-muted);
    font-style: italic;
}

/* ===== Reply Box ===== */
.reply-box {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.reply-box h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.reply-box textarea {
    width: 100%;
    min-height: 120px;
    background: var(--forum-bg);
    border: 1px solid var(--forum-border);
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.reply-box textarea:focus { outline: none; border-color: var(--forum-accent2); }

.reply-box .reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.btn-reply {
    background: var(--forum-accent);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-reply:hover { background: #c70812; }

.btn-cancel {
    background: transparent;
    color: var(--forum-muted);
    border: 1px solid var(--forum-border);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-cancel:hover { border-color: var(--forum-muted); color: #fff; }

/* ===== New Topic Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

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

.modal-content label {
    display: block;
    font-size: 13px;
    color: var(--forum-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    background: var(--forum-bg);
    border: 1px solid var(--forum-border);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--forum-accent2);
}

.modal-content textarea {
    min-height: 150px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--forum-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state .empty-text {
    font-size: 16px;
}

/* ===== Loading ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--forum-muted);
    font-size: 14px;
}

/* ===== Search Results ===== */
.search-results {
    background: var(--forum-card);
    border: 1px solid var(--forum-border);
    border-radius: 8px;
    overflow: hidden;
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--forum-border);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--forum-hover); }

.search-result-item .result-title {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.search-result-item .result-meta {
    font-size: 12px;
    color: var(--forum-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .forum-navbar { padding: 0 16px; }
    .forum-navbar .nav-links { display: none; }
    .forum-container { padding: 20px 16px; }
    .forum-header h1 { font-size: 24px; }
    .games-grid { grid-template-columns: 1fr; }
    .topic-row { flex-wrap: wrap; }
    .topic-row .topic-stats { min-width: auto; margin-left: 46px; }
    .post-header { flex-wrap: wrap; }
    .post-header .post-date { width: 100%; margin-top: 4px; }
    .topics-toolbar .search-box { width: 100%; }
    .topics-toolbar { flex-direction: column; align-items: stretch; }
    .modal-content { padding: 20px; }
    .modal-content-wide { width: 95%; max-width: 700px; }
    .forum-editor-canvas { padding: 16px 14px; min-height: 200px; max-height: 350px; }
    .forum-quick-canvas { min-height: 120px; max-height: 250px; }
}

/* ===== WYSIWYG EDITOR IN FORUM ===== */
.modal-content-wide {
    width: 90%;
    max-width: 800px;
}

.forum-editor-canvas {
    min-height: 300px;
    max-height: 450px;
    padding: 24px 28px;
}

.forum-reply-canvas {
    min-height: 200px;
    max-height: 350px;
}

.forum-quick-canvas {
    min-height: 140px;
    max-height: 300px;
    border-radius: var(--radius-sm);
}

.forum-quick-toolbar {
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 8px;
}

.forum-quick-toolbar .toolbar-btn {
    width: 30px;
    height: 30px;
}

/* ===== POST CONTENT (rendered HTML in topic view) ===== */
.post-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #c8c8d0;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    margin: 20px 0 10px;
    line-height: 1.3;
}

.post-content h1 { font-size: 1.6rem; font-weight: 700; }
.post-content h2 { font-size: 1.35rem; font-weight: 700; }
.post-content h3 { font-size: 1.15rem; font-weight: 600; }

.post-content p {
    margin: 12px 0;
}

.post-content ul,
.post-content ol {
    padding-left: 28px;
    margin: 12px 0;
}

.post-content li {
    margin: 6px 0;
}

.post-content a {
    color: var(--forum-accent2);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content strong {
    color: #fff;
    font-weight: 700;
}

.post-content em {
    color: #d0d0d8;
}

.post-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 3px solid var(--forum-accent);
    background: rgba(229, 9, 20, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--forum-muted);
    font-style: italic;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--forum-border);
    margin: 20px 0;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    height: auto;
    margin: 12px 0;
}

.post-content img.align-left {
    float: left;
    margin: 8px 20px 8px 0;
    max-width: 50%;
}

.post-content img.align-right {
    float: right;
    margin: 8px 0 8px 20px;
    max-width: 50%;
}

.post-content img.align-center {
    display: block;
    margin: 16px auto;
    float: none;
}

.post-content img.align-full {
    display: block;
    width: 100%;
    height: auto;
    margin: 16px 0;
    float: none;
}

.post-content p::after {
    content: '';
    display: table;
    clear: both;
}

.post-content code,
.post-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--forum-border);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
}

.post-content code {
    padding: 2px 6px;
}

.post-content pre {
    padding: 14px 18px;
    overflow-x: auto;
    margin: 12px 0;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
}

/* ===== EDITOR CANVAS INSIDE MODAL ===== */
.modal-content .editor-toolbar {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.modal-content .editor-canvas {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* ===== UPLOAD MODAL IN FORUM ===== */
#forumUploadModal .upload-modal-card {
    max-width: 460px;
}

/* ===== REPLY BOX WITH EDITOR ===== */
.reply-box .editor-toolbar {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.reply-box .editor-canvas {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    margin-bottom: 12px;
}

/* ===== NOTIFICATIONS ===== */
.nav-notifications {
    position: relative;
    margin-right: 12px;
}

.notif-bell {
    position: relative;
    background: none;
    border: none;
    color: var(--forum-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}

.notif-bell:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--forum-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 18px;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--forum-card, #1a1a26);
    border: 1px solid var(--forum-border, #2a2a3a);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notif-dropdown.show { display: flex; }

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--forum-border, #2a2a3a);
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.notif-mark-all {
    background: none;
    border: none;
    color: var(--forum-accent2, #00d4ff);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.notif-mark-all:hover { text-decoration: underline; }

.notif-list {
    overflow-y: auto;
    max-height: 420px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s;
}

.notif-item:hover { background: rgba(255, 255, 255, 0.04); }

.notif-item.unread {
    background: rgba(229, 9, 20, 0.06);
}

.notif-item.unread::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--forum-accent);
    flex-shrink: 0;
    margin-top: 8px;
}

.notif-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.notif-body { flex: 1; min-width: 0; }

.notif-text {
    font-size: 13px;
    color: #d0d0d8;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notif-meta {
    font-size: 11px;
    color: var(--forum-muted, #6a6a7a);
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--forum-muted, #6a6a7a);
    font-size: 13px;
}

/* ===== @MENTION DROPDOWN ===== */
.mention-dropdown {
    position: fixed;
    z-index: 10000;
    background: var(--forum-card, #1a1a26);
    border: 1px solid var(--forum-border, #2a2a3a);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.mention-item:hover, .mention-item.active {
    background: rgba(229, 9, 20, 0.12);
}

.mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--forum-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mention-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mention-avatar-placeholder {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.mention-info { flex: 1; min-width: 0; }

.mention-username {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.mention-title {
    font-size: 11px;
    color: var(--forum-muted, #6a6a7a);
}

.mention-item-empty {
    padding: 12px 16px;
    color: var(--forum-muted, #6a6a7a);
    font-size: 12px;
    text-align: center;
}

/* ===== @MENTION LINKS IN POSTS ===== */
.post-content a.mention-link {
    color: var(--forum-accent2, #00d4ff);
    background: rgba(0, 212, 255, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.post-content a.mention-link:hover {
    background: rgba(0, 212, 255, 0.2);
    text-decoration: underline;
}

/* ===== ADMIN MODERATION BAR ===== */
.admin-moderation-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 12px 0;
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: 8px;
}

.admin-mod-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--forum-accent, #e50914);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
}

.admin-btn {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #d0d0d8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-btn-danger {
    border-color: rgba(229, 9, 20, 0.3);
    color: var(--forum-accent, #e50914);
}

.admin-btn-danger:hover {
    background: rgba(229, 9, 20, 0.15);
    color: #ff5252;
}

/* ===== CLAUSURADO WATERMARK + PIXELATED CONTENT ===== */
.topic-locked {
    position: relative;
}

.locked-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 6rem;
    font-weight: 900;
    font-family: 'Rajdhani', sans-serif;
    color: rgba(229, 9, 20, 0.15);
    pointer-events: none;
    z-index: 5;
    letter-spacing: 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.posts-pixelated {
    filter: blur(4px);
    opacity: 0.7;
    user-select: none;
    pointer-events: none;
}

.locked-notice {
    text-align: center;
    padding: 20px;
    margin: 16px 0;
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 10px;
    color: var(--forum-accent, #e50914);
    font-weight: 600;
    font-size: 14px;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
    .notif-dropdown { width: 300px; right: -50px; }
    .locked-watermark { font-size: 3rem; }
    .admin-moderation-bar { flex-wrap: wrap; }
}
