/* =============================================================
   FORUM.CSS - Hyperion Forum Theme
   Shared styles for: index, category, topic/show, topic/create
   ============================================================= */

/* ── Page wrapper ─────────────────────────────────────────── */
.forum-page {
    background: #0d0d0f;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* ── Hero banner ──────────────────────────────────────────── */
.forum-hero {
    background: linear-gradient(135deg, #12121a 0%, #0d0d12 60%, #0a0a10 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    padding: 48px 0 32px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.forum-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.10) 0%, transparent 70%);
    pointer-events: none;
}
.forum-hero--compact { padding: 32px 0 24px; margin-bottom: 32px; }
.forum-hero--compact::before { width: 240px; height: 240px; top: -40px; right: -40px; }
.forum-hero--center::before { left: 50%; right: auto; transform: translateX(-50%); }

.forum-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.forum-hero-inner--narrow { max-width: 900px; }

.forum-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.forum-hero p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    margin: 0;
}
.forum-hero p span { color: rgba(255,255,255,0.65); font-weight: 600; }

.forum-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.breadcrumbs a,
.breadcrumbs span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.15s;
}
.breadcrumbs a:hover { color: #3B82F6; }
.breadcrumbs .sep { color: rgba(255, 255, 255, 0.15); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3B82F6;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.18s, transform 0.15s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.btn-primary:hover { background: #2563EB; transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.18s, color 0.15s;
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 5px;
}
.badge-pinned {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-locked {
    background: rgba(239, 68, 68, 0.12);
    color: rgb(252, 165, 165);
    border: 1px solid rgba(239, 68, 68, 0.20);
}

/* ── Sidebar panels ───────────────────────────────────────── */
.sidebar-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.sidebar-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-panel-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ── Activity feed (sidebar) ──────────────────────────────── */
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
    text-decoration: none;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255, 255, 255, 0.03); }
.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.activity-info { flex: 1; min-width: 0; }
.activity-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-meta {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 2px;
}
.activity-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.empty-state .icon { font-size: 2.5rem; opacity: 0.2; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.empty-state p  { font-size: 0.85rem; color: rgba(255, 255, 255, 0.3); margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════════
   INDEX - Category listing
   ══════════════════════════════════════════════════════════ */

.forum-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) { .forum-layout { grid-template-columns: 1fr; } }

/* Search */
.forum-search { margin-bottom: 28px; }
.forum-search-wrap { position: relative; max-width: 480px; }
.forum-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.forum-search-wrap input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.875rem;
    padding: 10px 14px 10px 40px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}
.forum-search-wrap input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
}
.forum-search-wrap input::placeholder { color: rgba(255, 255, 255, 0.2); }

/* Category group */
.category-group { margin-bottom: 24px; }
.category-group-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px 10px 0 0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.category-group-header h2 { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.9); margin: 0; }
.category-group-header p  { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin: 0; }

/* Category table */
.category-list {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.col-headers {
    display: grid;
    grid-template-columns: 1fr 90px 90px 1fr;
    gap: 12px;
    padding: 0 18px 6px;
    margin-top: 2px;
}
.col-header {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.20);
    text-align: center;
}
.col-header:first-child { text-align: left; }

.category-row {
    display: grid;
    grid-template-columns: 1fr 90px 90px 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.18s;
}
.category-row:last-child { border-bottom: none; }
.category-row:hover { background: rgba(255, 255, 255, 0.04); }

.category-row-head { display: flex; align-items: center; gap: 14px; }
.cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cat-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    display: block;
    text-decoration: none;
    transition: color 0.15s;
}
.cat-name:hover { color: #3B82F6; }
.cat-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-stat { text-align: center; }
.cat-stat-num { display: block; font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.cat-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.25); font-weight: 600; }

.cat-latest { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.cat-latest-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cat-latest-info { overflow: hidden; min-width: 0; }
.cat-latest-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
    transition: color 0.15s;
}
.cat-latest-title:hover { color: #3B82F6; }
.cat-latest-meta { font-size: 0.68rem; color: rgba(255,255,255,0.25); margin-top: 1px; }

/* Stats panel */
.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.stat-value { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.9); }

.newest-member { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.newest-avatar { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.newest-name   { font-size: 0.8rem; font-weight: 600; color: #fff; }
.newest-label  { font-size: 0.65rem; color: rgba(255,255,255,0.3); margin-bottom: 2px; }

/* Search results */
.search-results-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}
.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(59, 130, 246, 0.06); }
.search-result-title { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); transition: color 0.15s; }
.search-result-item:hover .search-result-title { color: #3B82F6; }
.search-result-meta { font-size: 0.72rem; color: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════════════════════════
   CATEGORY - Thread list
   ══════════════════════════════════════════════════════════ */

.cat-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) { .cat-layout { grid-template-columns: 1fr; } }

.controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.cat-stat-pills { display: flex; align-items: center; gap: 10px; }
.pill {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 4px 10px;
    text-transform: uppercase;
}
.pill span { color: rgba(255,255,255,0.75); margin-left: 4px; }

/* Thread list table */
.thread-list {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
}
.thread-col-headers {
    display: grid;
    grid-template-columns: 1fr 80px 80px 160px;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}
.thread-col-header {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.18);
    text-align: center;
}
.thread-col-header:first-child { text-align: left; }

.thread-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 160px;
    gap: 12px;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
    cursor: pointer;
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: rgba(255, 255, 255, 0.03); }

.thread-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thread-avatar-wrap { position: relative; flex-shrink: 0; }
.thread-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.pin-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: #3B82F6;
    border-radius: 50%;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0d0d0f;
}
.thread-title-wrap { min-width: 0; }
.thread-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.thread-row:hover .thread-title { color: #3B82F6; }
.thread-meta { font-size: 0.7rem; color: rgba(255,255,255,0.28); margin-top: 2px; }
.thread-meta a { color: rgba(255,255,255,0.45); text-decoration: none; font-weight: 600; transition: color 0.15s; }
.thread-meta a:hover { color: #3B82F6; }
.badges-row { display: flex; align-items: center; gap: 5px; margin-top: 4px; }

.thread-stat { text-align: center; }
.thread-stat-num { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.75); }

.thread-last { display: flex; align-items: center; gap: 9px; overflow: hidden; }
.thread-last-avatar { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.05); }
.thread-last-info { min-width: 0; }
.thread-last-name { font-size: 0.73rem; font-weight: 600; color: rgba(255,255,255,0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-last-time { font-size: 0.65rem; color: rgba(255,255,255,0.22); }

/* Category hero specifics */
.cat-hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-hero-left { display: flex; align-items: center; gap: 16px; }
.cat-hero-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.cat-hero-name { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 0 4px; letter-spacing: -0.02em; }
.cat-hero-desc { font-size: 0.83rem; color: rgba(255,255,255,0.40); margin: 0; }

/* ══════════════════════════════════════════════════════════
   TOPIC SHOW - Post cards
   ══════════════════════════════════════════════════════════ */

.topic-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) { .topic-layout { grid-template-columns: 1fr; } }

.topic-hero-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topic-hero-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.02em; line-height: 1.3; flex: 1; }

/* Post card */
.post-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.post-card.first-post {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.06);
}
.post-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
}
@media (max-width: 640px) { .post-inner { grid-template-columns: 1fr; } }

.post-author {
    padding: 20px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.post-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
}
.post-author-name { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.post-author-role {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid;
    margin-bottom: 12px;
}
.role-admin     { background: rgba(239,68,68,0.12);  color: rgb(252,165,165); border-color: rgba(239,68,68,0.25); }
.role-moderator { background: rgba(234,179,8,0.12);  color: rgb(253,224,71);  border-color: rgba(234,179,8,0.25); }
.role-user      { background: rgba(59,130,246,0.10); color: #93c5fd;          border-color: rgba(59,130,246,0.20); }

.post-author-stats { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 4px; }
.post-author-stat { display: flex; justify-content: space-between; font-size: 0.68rem; }
.post-author-stat-label { color: rgba(255,255,255,0.25); }
.post-author-stat-value { color: rgba(255,255,255,0.65); font-weight: 600; }

.post-content-wrap { padding: 20px 22px; display: flex; flex-direction: column; }
.post-content { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.75; white-space: pre-wrap; flex: 1; }
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.post-date { font-size: 0.7rem; color: rgba(255,255,255,0.22); }
.post-actions { display: flex; align-items: center; gap: 8px; }
.post-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.75rem;
    text-decoration: none;
    font-family: inherit;
}
.post-action-btn:hover        { color: #fff; background: rgba(255,255,255,0.09); }
.post-action-btn.danger:hover { color: #f87171; background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.20); }

/* Replies section header */
.replies-header { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; }
.replies-header h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin: 0; white-space: nowrap; }
.replies-header-line { height: 1px; background: rgba(255,255,255,0.06); flex: 1; }
.replies-count { font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* Views badge */
.views-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; color: rgba(255,255,255,0.25); }

/* Mod action buttons */
.mod-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
    background: none;
}
.mod-btn-default { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); color: rgba(255,255,255,0.5); }
.mod-btn-default:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mod-btn-danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: rgb(252,165,165); }
.mod-btn-danger:hover { background: rgba(239,68,68,0.16); }

/* Reply form & notices */
.reply-form-card { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 22px; margin-top: 28px; }
.reply-form-title { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.notice-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 36px; text-align: center; margin-top: 28px; }
.notice-card .icon { font-size: 2rem; opacity: 0.2; margin-bottom: 12px; }
.notice-card p  { font-size: 0.85rem; color: rgba(255,255,255,0.35); margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════
   TOPIC CREATE - Form
   ══════════════════════════════════════════════════════════ */

.create-form-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.form-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
}
.form-group { margin-bottom: 22px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}
.form-label .optional { font-size: 0.65rem; color: rgba(255,255,255,0.2); text-transform: none; letter-spacing: 0; font-weight: 400; }

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 9px;
    color: #fff;
    font-size: 0.875rem;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    line-height: 1.6;
}
.form-input { font-size: 0.9rem; font-weight: 600; }
.form-textarea { resize: vertical; min-height: 200px; }
.form-input:focus,
.form-textarea:focus { border-color: rgba(59,130,246,0.45); background: rgba(59,130,246,0.04); }
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,0.18); font-weight: 400; }

.form-hint  { font-size: 0.7rem; color: rgba(255,255,255,0.20); margin-top: 6px; }
.form-error { font-size: 0.72rem; color: #f87171; margin-top: 6px; }

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.form-footer-hint { display: flex; align-items: center; gap: 10px; }
.hint-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.hint-text { font-size: 0.75rem; color: rgba(255,255,255,0.25); line-height: 1.4; max-width: 220px; }
.form-footer-actions { display: flex; align-items: center; gap: 10px; }

.alert-error {
    background: rgba(239,68,68,0.10);
    border: 1px solid rgba(239,68,68,0.20);
    border-radius: 9px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #f87171;
    font-size: 0.82rem;
}

/* ── Sidebar navigation links ─────────────────────────────── */
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
}
.sidebar-nav-link--accent       { color: #93c5fd; }
.sidebar-nav-link--accent:hover { background: rgba(59, 130, 246, 0.08); color: #60a5fa; }

/* ── Sidebar quick links ──────────────────────────────────── */
.sidebar-quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sidebar-quick-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
}
.sidebar-quick-link--accent       { color: #93c5fd; }
.sidebar-quick-link--accent:hover { background: rgba(59, 130, 246, 0.08); color: #60a5fa; }

/* ══════════════════════════════════════════════════════════
   GRADE BADGE
   ══════════════════════════════════════════════════════════ */

.grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   POST AUTHOR SIDEBAR - XenForo style
   ══════════════════════════════════════════════════════════ */

.post-author {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 14px;
    border-right: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
.post-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}
.author-avatar-link { display: block; }
.post-author-name-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.15s;
}
.post-author-name-link:hover { color: #3B82F6; }

.post-author-signature {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.2);
    font-style: italic;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 8px;
    margin-top: 4px;
    word-break: break-word;
    width: 100%;
}

/* ══════════════════════════════════════════════════════════
   TOPIC TAGS
   ══════════════════════════════════════════════════════════ */

.topic-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(59,130,246,0.1);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,0.2);
    font-size: 0.63rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    text-transform: lowercase;
    letter-spacing: 0.03em;
}
.topic-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* ══════════════════════════════════════════════════════════
   TAG CHIP INPUT (Alpine.js)
   ══════════════════════════════════════════════════════════ */

.tag-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    cursor: text;
    min-height: 44px;
    align-items: center;
    transition: border-color 0.15s;
}
.tag-chips-wrap:focus-within {
    border-color: rgba(59,130,246,0.3);
}
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(59,130,246,0.15);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,0.25);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    user-select: none;
}
.tag-chip button {
    background: none;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 1px;
    opacity: 0.55;
    transition: opacity 0.1s;
}
.tag-chip button:hover { opacity: 1; }
.tag-chip-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.82rem;
    font-family: inherit;
    flex: 1;
    min-width: 80px;
}
.tag-chip-input::placeholder { color: rgba(255,255,255,0.2); }
