/*=============================================================*/
/*  ZGAME Forum — WoW Community Board  |  forum.css           */
/*=============================================================*/

/* ── Variables ───────────────────────────────────────────── */
.box.type-forum {
    --f-gold:       #c9a227;
    --f-gold-dim:   rgba(201,162,39,.28);
    --f-dark:       rgba(6,8,16,.92);
    --f-darker:     rgba(4,5,10,.97);
    --f-text:       #a8bfcc;
    --f-text-dim:   #6a7a88;
    --f-border:     rgba(30,42,58,.65);
    --f-border-g:   rgba(201,162,39,.2);
    --f-radius:     3px;
}

/* ══════════════════════════════════════════════════════════ */
/* BREADCRUMB                                                 */
/* ══════════════════════════════════════════════════════════ */

.forum-breadcrumb {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 0 0 1.2rem;
    font-family: 'Cinzel', Georgia, serif;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--f-text-dim);
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.forum-breadcrumb a {
    color: rgba(201,162,39,.65);
    -webkit-transition: color 200ms ease;
    transition: color 200ms ease;
}
.forum-breadcrumb a:hover { color: var(--f-gold); }
.forum-bc-sep { color: rgba(201,162,39,.3); font-size: .8rem; }

/* ══════════════════════════════════════════════════════════ */
/* FORUM HOME — CATEGORY CARDS                               */
/* ══════════════════════════════════════════════════════════ */

.forum-home { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 6px; }

.forum-category { position: relative; }

.forum-cat-header {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    gap: 0 16px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(8,10,20,.95) 0%, rgba(12,15,26,.9) 100%);
    border: 1px solid var(--f-border);
    border-left: 3px solid var(--cat-color, #c9a227);
    border-radius: var(--f-radius);
    -webkit-transition: border-color 200ms ease, background 200ms ease;
    transition: border-color 200ms ease, background 200ms ease;
}
.forum-cat-header:hover {
    border-color: var(--cat-color, #c9a227);
    background: linear-gradient(135deg, rgba(12,15,28,.98) 0%, rgba(16,20,36,.95) 100%);
}

/* Category icon */
.forum-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--cat-color, #c9a227);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--cat-color, #c9a227);
    font-size: 1.2rem;
    background: rgba(0,0,0,.4);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,.5);
    box-shadow: 0 0 10px rgba(0,0,0,.5);
}

/* Category text */
.forum-cat-info { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 3px; min-width: 0; }

.forum-cat-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--cat-color, #c9a227);
    -webkit-transition: color 200ms ease;
    transition: color 200ms ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.forum-cat-name:hover { color: #fff; }

.forum-cat-desc {
    font-size: .75rem;
    color: var(--f-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stats columns */
.forum-cat-stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 24px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.forum-stat {
    text-align: center;
    min-width: 50px;
}
.forum-stat-n {
    display: block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(201,162,39,.8);
    line-height: 1;
}
.forum-stat-l {
    display: block;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--f-text-dim);
    margin-top: 2px;
}

/* Last post */
.forum-cat-last {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 0;
    max-width: 200px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 3px;
}
.forum-last-title {
    display: block;
    font-size: .78rem;
    color: var(--f-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-transition: color 200ms ease;
    transition: color 200ms ease;
}
.forum-last-title:hover { color: var(--f-gold); }
.forum-last-meta { font-size: .68rem; color: var(--f-text-dim); }
.forum-no-post { color: var(--f-text-dim); font-size: .75rem; }

/* Responsive: collapse stats/last on mobile */
@media screen and (max-width: 767px) {
    .forum-cat-header { grid-template-columns: 44px 1fr; }
    .forum-cat-stats, .forum-cat-last { display: none; }
    .forum-cat-icon { width: 36px; height: 36px; font-size: 1rem; }
}

/* ══════════════════════════════════════════════════════════ */
/* ACTIONS BAR                                               */
/* ══════════════════════════════════════════════════════════ */

.forum-actions {
    margin-bottom: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}
.forum-new-btn {
    font-size: .75rem !important;
    padding: .5rem 1.2rem !important;
}

/* ══════════════════════════════════════════════════════════ */
/* THREAD LIST                                               */
/* ══════════════════════════════════════════════════════════ */

.forum-thread-list { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; border: 1px solid var(--f-border); border-radius: var(--f-radius); overflow: hidden; }

.forum-thread-header {
    display: grid;
    grid-template-columns: 1fr 70px 70px 200px;
    gap: 0 12px;
    padding: .6rem 1rem;
    background: linear-gradient(90deg, rgba(20,14,4,.98) 0%, rgba(30,22,6,.9) 50%, rgba(20,14,4,.98) 100%);
    border-bottom: 1px solid rgba(100,76,20,.6);
    font-family: 'Cinzel', Georgia, serif;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--f-gold);
    text-shadow: 0 0 8px rgba(201,162,39,.4);
}
.forum-th-stat { text-align: center; }
.forum-th-last { text-align: right; }

.forum-thread-row {
    display: grid;
    grid-template-columns: 1fr 70px 70px 200px;
    gap: 0 12px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--f-border);
    background: rgba(6,8,16,.7);
    -webkit-transition: background 180ms ease;
    transition: background 180ms ease;
    animation: wow-row-in 240ms ease both;
}
.forum-thread-row:last-child { border-bottom: none; }
.forum-thread-row:hover { background: rgba(30,22,6,.6); }
.forum-thread-row.is-pinned { background: rgba(20,14,4,.85); }
.forum-thread-row.is-locked { opacity: .75; }

.forum-thread-badges { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 5px; margin-bottom: 3px; }

.forum-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: .6rem;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
}
.badge-pin { background: rgba(245,208,64,.15); color: #f5d040; border: 1px solid rgba(245,208,64,.3); }
.badge-lock { background: rgba(255,128,0,.12); color: #ff8000; border: 1px solid rgba(255,128,0,.28); }

.forum-thread-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--f-text);
    display: block;
    -webkit-transition: color 180ms ease;
    transition: color 180ms ease;
    line-height: 1.3;
}
.forum-thread-title:hover { color: var(--f-gold); }

.forum-thread-meta { font-size: .68rem; color: var(--f-text-dim); margin-top: 2px; }
.forum-thread-meta strong { color: rgba(201,162,39,.7); }

.forum-th-stat { text-align: center; color: rgba(201,162,39,.6); font-size: .85rem; font-family: 'Cinzel', Georgia, serif; }

.forum-th-last { text-align: right; }
.forum-last-name { display: block; font-size: .75rem; color: var(--f-text); }
.forum-last-date { display: block; font-size: .65rem; color: var(--f-text-dim); }

.forum-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--f-text-dim);
    font-family: 'Cinzel', Georgia, serif;
    font-size: .8rem;
    letter-spacing: .06em;
}

/* Responsive thread list */
@media screen and (max-width: 767px) {
    .forum-thread-header,
    .forum-thread-row { grid-template-columns: 1fr; }
    .forum-th-stat, .forum-th-last,
    .forum-thread-header .forum-th-stat,
    .forum-thread-header .forum-th-last { display: none; }
}

/* ══════════════════════════════════════════════════════════ */
/* POSTS                                                      */
/* ══════════════════════════════════════════════════════════ */

.forum-posts { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 1px; }

.forum-post {
    display: grid;
    grid-template-columns: 100px 1fr;
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    overflow: hidden;
    background: var(--f-dark);
    animation: wow-row-in 260ms ease both;
}

.forum-post.is-op { border-color: var(--f-border-g); }

.forum-post-author {
    padding: 1.2rem .8rem;
    background: var(--f-darker);
    border-right: 1px solid var(--f-border);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.forum-avatar {
    width: 52px;
    height: 52px;
    border-radius: 3px;
    border: 1px solid rgba(201,162,39,.3);
    -webkit-box-shadow: 0 0 8px rgba(0,0,0,.6);
    box-shadow: 0 0 8px rgba(0,0,0,.6);
}

.forum-author-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: .72rem;
    letter-spacing: .05em;
    color: rgba(201,162,39,.85);
    word-break: break-word;
}

.forum-post-body { padding: 1rem 1.2rem; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }

.forum-post-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--f-border);
}
.forum-post-date { font-size: .7rem; color: var(--f-text-dim); }
.forum-post-op-badge {
    padding: 1px 7px;
    border-radius: 2px;
    font-size: .62rem;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    letter-spacing: .08em;
    background: rgba(245,208,64,.15);
    color: #f5d040;
    border: 1px solid rgba(245,208,64,.3);
}

.forum-post-content {
    font-size: .9rem;
    color: var(--f-text);
    line-height: 1.7;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.forum-post-content a { color: rgba(201,162,39,.8); }
.forum-post-content a:hover { color: var(--f-gold); }

.forum-post-edited {
    margin-top: .75rem;
    font-size: .68rem;
    color: var(--f-text-dim);
    font-style: italic;
}

.forum-delete-btn {
    color: rgba(220,50,50,.6);
    font-size: .75rem;
    margin-left: auto;
    -webkit-transition: color 200ms ease;
    transition: color 200ms ease;
}
.forum-delete-btn:hover { color: #dc3545; }

/* Mobile: posts stacked */
@media screen and (max-width: 575px) {
    .forum-post { grid-template-columns: 1fr; }
    .forum-post-author { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; border-right: none; border-bottom: 1px solid var(--f-border); padding: .8rem 1rem; }
    .forum-avatar { width: 36px; height: 36px; }
}

/* ══════════════════════════════════════════════════════════ */
/* REPLY BOX                                                  */
/* ══════════════════════════════════════════════════════════ */

.forum-reply-box {
    margin-top: 1.5rem;
    border: 1px solid var(--f-border-g);
    border-radius: var(--f-radius);
    overflow: hidden;
    background: var(--f-dark);
}

.forum-reply-header {
    padding: .7rem 1.2rem;
    background: linear-gradient(90deg, rgba(20,14,4,.98) 0%, rgba(30,22,6,.9) 50%, rgba(20,14,4,.98) 100%);
    border-bottom: 1px solid rgba(100,76,20,.5);
    font-family: 'Cinzel', Georgia, serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--f-gold);
    text-shadow: 0 0 8px rgba(201,162,39,.4);
}

.forum-reply-box form { padding: 1.2rem; }

.forum-reply-input {
    width: 100%;
    background: rgba(0,0,0,.55) !important;
    border: 1px solid rgba(100,80,30,.45) !important;
    border-radius: 2px !important;
    color: #b0c0cc !important;
    font-family: var(--font-family-primary) !important;
    font-size: .875rem !important;
    padding: .75rem 1rem !important;
    resize: vertical;
    min-height: 100px;
    -webkit-transition: border-color 250ms ease !important;
    transition: border-color 250ms ease !important;
    -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.5) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.5) !important;
    margin-bottom: .8rem;
    display: block;
}
.forum-reply-input:focus {
    border-color: rgba(130,100,25,.7) !important;
    color: #e8e0c8 !important;
    outline: none;
}
.forum-reply-btn { margin-top: 0; }

/* ══════════════════════════════════════════════════════════ */
/* NEW THREAD FORM                                           */
/* ══════════════════════════════════════════════════════════ */

.forum-new-thread-form {
    border: 1px solid var(--f-border-g);
    border-radius: var(--f-radius);
    padding: 1.5rem;
    background: var(--f-dark);
}

.forum-field { margin-bottom: 1rem; }
.forum-field label {
    display: block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(201,162,39,.7);
    margin-bottom: .4rem;
}
.forum-input {
    width: 100%;
    background: rgba(0,0,0,.55) !important;
    border: 1px solid rgba(100,80,30,.45) !important;
    border-radius: 2px !important;
    color: #b0c0cc !important;
    font-family: var(--font-family-primary) !important;
    font-size: .875rem !important;
    padding: .75rem 1rem !important;
    -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.5) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.5) !important;
}

.forum-form-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 1.2rem;
}
.forum-back-link { color: rgba(201,162,39,.6); font-size: .8rem; }
.forum-back-link:hover { color: var(--f-gold); }

/* ══════════════════════════════════════════════════════════ */
/* ADMIN BAR                                                 */
/* ══════════════════════════════════════════════════════════ */

.forum-admin-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    padding: .6rem .8rem;
    background: rgba(30,14,4,.7);
    border: 1px solid rgba(255,100,0,.25);
    border-radius: var(--f-radius);
}
.forum-admin-btn {
    font-size: .72rem;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: .05em;
    color: rgba(255,150,50,.8);
    padding: 3px 10px;
    border: 1px solid rgba(255,100,0,.3);
    border-radius: 2px;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
    background: transparent;
}
.forum-admin-btn:hover { color: #ff8000; border-color: rgba(255,128,0,.6); background: rgba(255,80,0,.08); }

/* ══════════════════════════════════════════════════════════ */
/* MISC                                                       */
/* ══════════════════════════════════════════════════════════ */

.forum-locked-notice {
    padding: .7rem 1rem;
    margin-bottom: 1rem;
    background: rgba(255,80,0,.08);
    border: 1px solid rgba(255,128,0,.3);
    border-radius: var(--f-radius);
    color: rgba(255,150,50,.85);
    font-size: .82rem;
}

.forum-login-prompt {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--f-border-g);
    border-radius: var(--f-radius);
    background: var(--f-dark);
    color: var(--f-text-dim);
    font-size: .85rem;
}
.forum-login-prompt a { color: rgba(201,162,39,.8); }
.forum-login-prompt a:hover { color: var(--f-gold); }

.forum-pagination {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 4px;
    margin: 1rem 0;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.forum-page-btn {
    padding: .3rem .7rem;
    font-size: .72rem;
    font-family: 'Cinzel', Georgia, serif;
    background: linear-gradient(to bottom, #1c1408 0%, #100c04 100%);
    border: 1px solid rgba(100,75,20,.55);
    color: var(--f-gold);
    border-radius: 2px;
    -webkit-transition: all 180ms ease;
    transition: all 180ms ease;
}
.forum-page-btn.active,
.forum-page-btn:hover {
    background: linear-gradient(to bottom, #c9a227 0%, #7a5c10 100%);
    border-color: var(--f-gold);
    color: #ffe680;
    -webkit-box-shadow: 0 0 8px rgba(201,162,39,.28);
    box-shadow: 0 0 8px rgba(201,162,39,.28);
}

.forum-back {
    margin-top: 1.2rem;
    font-size: .78rem;
}
.forum-back a { color: rgba(201,162,39,.6); -webkit-transition: color 200ms ease; transition: color 200ms ease; }
.forum-back a:hover { color: var(--f-gold); }

/* ══════════════════════════════════════════════════════════ */
/* ANIMATIONS                                                */
/* ══════════════════════════════════════════════════════════ */

@keyframes wow-row-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════ */
/* ADMIN BAR EXTRAS                                          */
/* ══════════════════════════════════════════════════════════ */

.forum-admin-btn-danger {
    color: rgba(220,60,60,.75) !important;
    border-color: rgba(200,40,40,.28) !important;
}
.forum-admin-btn-danger:hover {
    color: #ff4444 !important;
    border-color: rgba(255,60,60,.55) !important;
    background: rgba(180,0,0,.10) !important;
}
.forum-admin-btn-panel {
    color: rgba(100,160,255,.8) !important;
    border-color: rgba(80,130,220,.28) !important;
}
.forum-admin-btn-panel:hover {
    color: #7eb8ff !important;
    border-color: rgba(100,160,255,.55) !important;
    background: rgba(40,80,180,.10) !important;
}

/* ══════════════════════════════════════════════════════════ */
/* FORUM ADMIN PANEL                                         */
/* ══════════════════════════════════════════════════════════ */

.forum-admin-panel { display: flex; flex-direction: column; gap: 1.2rem; }

/* ── Stat cards ───────────────────────────────────────── */
.fadmin-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.fadmin-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: .9rem 1.6rem;
    background: linear-gradient(135deg, rgba(8,10,20,.96) 0%, rgba(14,18,32,.93) 100%);
    border: 1px solid rgba(201,162,39,.22);
    border-radius: 3px;
    min-width: 100px;
    transition: border-color 200ms ease;
    text-decoration: none !important;
}
.fadmin-stat-card:hover { border-color: rgba(201,162,39,.5); }
.fadmin-stat-card i { color: rgba(201,162,39,.65); font-size: 1.1rem; }
.fadmin-stat-n {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #c9a227;
    line-height: 1;
    text-shadow: 0 0 10px rgba(201,162,39,.35);
}
.fadmin-stat-l {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(168,191,204,.55);
}
.fadmin-back-card i { color: rgba(100,160,255,.65); }
.fadmin-back-card .fadmin-stat-l { color: rgba(100,160,255,.7); }

/* ── Table ────────────────────────────────────────────── */
.fadmin-table-wrap {
    border: 1px solid rgba(30,42,58,.65);
    border-radius: 3px;
    overflow: hidden;
}

.fadmin-table-header {
    display: grid;
    grid-template-columns: 1fr 130px 120px 60px 95px 110px;
    gap: 0 8px;
    padding: .65rem 1rem;
    background: linear-gradient(90deg, rgba(20,14,4,.99) 0%, rgba(30,22,6,.96) 50%, rgba(20,14,4,.99) 100%);
    border-bottom: 1px solid rgba(100,76,20,.6);
    font-family: 'Cinzel', Georgia, serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #c9a227;
    text-shadow: 0 0 8px rgba(201,162,39,.4);
}

.fadmin-thread-row {
    display: grid;
    grid-template-columns: 1fr 130px 120px 60px 95px 110px;
    gap: 0 8px;
    align-items: center;
    padding: .6rem 1rem;
    border-bottom: 1px solid rgba(22,30,44,.7);
    border-left: 3px solid transparent;
    background: rgba(5,7,14,.8);
    transition: background 150ms ease, border-color 150ms ease;
    animation: wow-row-in 260ms ease both;
}
.fadmin-thread-row:last-child { border-bottom: none; }
.fadmin-thread-row:hover { background: rgba(25,18,6,.7); border-left-color: rgba(201,162,39,.35); }
.fadmin-thread-row.is-pinned { background: rgba(20,14,4,.9); border-left-color: rgba(245,208,64,.4); }
.fadmin-thread-row.is-locked { opacity: .7; }

.fadmin-td-title { min-width: 0; }
.fadmin-thread-title {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #a8bfcc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 150ms ease;
}
.fadmin-thread-title:hover { color: #c9a227; }
.forum-admin-panel .forum-thread-badges { margin-bottom: 2px; }

/* Category badge */
.fadmin-cat-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: .68rem;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: .04em;
    background: rgba(0,0,0,.4);
    border: 1px solid var(--cat, #c9a227);
    color: var(--cat, #c9a227);
    white-space: nowrap;
    overflow: hidden;
    max-width: 120px;
    text-overflow: ellipsis;
}

.fadmin-author {
    font-size: .78rem;
    color: rgba(168,191,204,.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.fadmin-count {
    font-family: 'Cinzel', Georgia, serif;
    font-size: .82rem;
    color: rgba(201,162,39,.65);
    text-align: center;
    display: block;
}

.fadmin-td-date {
    font-size: .7rem;
    color: rgba(106,122,136,.8);
}

/* Action buttons */
.fadmin-td-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.fadmin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 2px;
    border: 1px solid rgba(50,65,85,.6);
    background: rgba(8,10,18,.7);
    color: rgba(140,155,170,.75);
    font-size: .78rem;
    transition: all 160ms ease;
    text-decoration: none !important;
}
.fadmin-btn:hover { background: rgba(20,25,40,.9); }
.fadmin-btn-pin:hover  { color: #f5d040; border-color: rgba(245,208,64,.4); }
.fadmin-btn-lock:hover { color: #ff8000; border-color: rgba(255,128,0,.4); }
.fadmin-btn-view:hover { color: #7eb8ff; border-color: rgba(100,160,255,.4); }
.fadmin-btn-delete { color: rgba(200,60,60,.65) !important; }
.fadmin-btn-delete:hover { color: #ff4444 !important; border-color: rgba(255,60,60,.45) !important; background: rgba(120,0,0,.15) !important; }

/* Responsive */
@media screen and (max-width: 900px) {
    .fadmin-table-header,
    .fadmin-thread-row { grid-template-columns: 1fr 80px 80px 110px; }
    .fadmin-th-author, .fadmin-td-author,
    .fadmin-th-stats,  .fadmin-td-stats { display: none; }
}
@media screen and (max-width: 600px) {
    .fadmin-table-header,
    .fadmin-thread-row { grid-template-columns: 1fr 110px; }
    .fadmin-th-cat, .fadmin-td-cat,
    .fadmin-th-date, .fadmin-td-date { display: none; }
}

/* ══════════════════════════════════════════════════════════ */
/* FORUM EDITOR — custom dark toolbar + textarea              */
/* ══════════════════════════════════════════════════════════ */

.forum-editor-wrap {
    border: 1px solid rgba(100,78,28,.48);
    border-radius: 3px;
    overflow: hidden;
    background: rgba(0,0,0,.55);
    transition: border-color 240ms ease;
}
.forum-editor-wrap:focus-within {
    border-color: rgba(201,162,39,.65);
    box-shadow: 0 0 16px rgba(201,162,39,.15);
}

/* Toolbar */
.forum-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: linear-gradient(90deg, rgba(16,10,3,.98), rgba(28,20,5,.95), rgba(16,10,3,.98));
    border-bottom: 1px solid rgba(100,76,20,.5);
}
.forum-editor-toolbar button {
    width: 30px; height: 30px;
    border-radius: 3px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(168,191,204,.65);
    font-size: .82rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 150ms ease;
}
.forum-editor-toolbar button:hover {
    background: rgba(201,162,39,.12);
    border-color: rgba(201,162,39,.35);
    color: #c9a227;
}

/* Textarea */
.forum-editor-ta {
    width: 100%;
    display: block;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #c8c0a8 !important;
    font-family: var(--font-family-primary) !important;
    font-size: .9rem !important;
    font-weight: normal !important;
    line-height: 1.65 !important;
    padding: .85rem 1rem !important;
    resize: vertical;
    min-height: 90px;
    box-shadow: none !important;
    outline: none !important;
    caret-color: #c9a227;
}
.forum-editor-ta::placeholder {
    color: rgba(168,191,204,.35) !important;
}
.forum-editor-ta:focus {
    background: rgba(0,0,0,.1) !important;
    color: #e0d8c0 !important;
}
