/* ============================================================
   FORUM — tambahkan ke style.css
   ============================================================ */

/* TOOLBAR */
.forum-toolbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--theme-card-bg, var(--theme-card-bg));
    border-bottom: 1px solid var(--theme-accent2);
}
.forum-btn-outline {
    padding: 6px 20px;
    border: 2px solid var(--theme-accent1, var(--theme-accent1));
    border-radius: 6px;
    color: var(--theme-text-main, #333);
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    background: var(--theme-card-bg, var(--theme-card-bg));
    display: flex;
    align-items: center;
    gap: 6px;
}
.forum-btn-solid {
    padding: 6px 20px;
    border: 2px solid var(--theme-accent1);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    background: linear-gradient(180deg, var(--theme-accent2), var(--theme-accent1));
    display: flex;
    align-items: center;
    gap: 6px;
}

/* NAP NGOC */
.forum-nap-topup {
    background: #c9952a;
    text-align: center;
    padding: 8px;
    border-bottom: 2px solid #a07020;
}
.nap-btn {
    background: linear-gradient(180deg, #f5c842, #d4a020);
    border: 2px solid #a07020;
    border-radius: 8px;
    padding: 6px 24px;
    color: #5a2d00;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* KATEGORI TABS — scroll horizontal */
.forum-cat-tabs {
    display: flex;
    overflow-x: auto;
    background: var(--theme-accent2, var(--theme-accent2));
    border-bottom: 2px solid var(--theme-accent1, var(--theme-accent1));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.forum-cat-tabs::-webkit-scrollbar { display: none; }
.forum-cat-tab {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: bold;
    color: var(--theme-text-main, #333);
    text-decoration: none;
    border-right: 1px solid var(--theme-accent1, var(--theme-accent1));
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}
.forum-cat-tab:hover { background: var(--theme-accent2, color-mix(in srgb, var(--theme-accent2) 80%, #fff)); }
.forum-cat-tab.active {
    background: var(--theme-card-bg, var(--theme-card-bg));
    color: var(--theme-text-main, #333);
    box-shadow: inset 0 -3px 0 var(--theme-accent1, var(--theme-accent1));
}

/* TOPIC LIST */
.forum-topic-list {
    background: var(--theme-main-bg, var(--theme-main-bg));
    border-bottom: 2px solid var(--theme-accent2, var(--theme-accent2));
}
.forum-topic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
    text-decoration: none;
    background: var(--theme-main-bg);
    transition: background 0.15s;
}
.forum-topic-item:hover { background: var(--theme-card-bg); }
.topic-left { flex-shrink: 0; width: 14px; display: flex; justify-content: center; }
.topic-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.topic-pin-icon { color: #e57373; font-size: 12px; }
.topic-mid { flex: 1; min-width: 0; }
.topic-title {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topic-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.topic-cat-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
}
.topic-author { font-size: 10px; color: #888; }
.topic-time   { font-size: 10px; color: #aaa; }
.topic-right  { font-size: 10px; color: #aaa; white-space: nowrap; flex-shrink: 0; }
.forum-empty  { text-align: center; padding: 40px; color: #aaa; }
.forum-empty i { font-size: 30px; margin-bottom: 10px; display: block; }

/* RECENT */
.forum-recent-header {
    background: var(--theme-card-bg);
    padding: 9px 15px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    border-top: 2px solid var(--theme-accent2);
    border-bottom: 1px solid var(--theme-accent2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.forum-recent { background: var(--theme-main-bg); }
.forum-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
    text-decoration: none;
    transition: background 0.15s;
}
.forum-recent-item:hover { background: var(--theme-card-bg); }
.recent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-accent1), var(--theme-accent2));
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--theme-accent1);
}
.recent-info { flex: 1; min-width: 0; }
.recent-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--theme-link);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-meta { font-size: 10px; color: #888; margin-top: 2px; }
.recent-meta span { color: var(--theme-link); }

/* DETAIL VIEW */
.forum-topbar {
    background: var(--theme-accent1);
    padding: 9px 14px;
    border-bottom: 2px solid color-mix(in srgb, var(--theme-accent1) 80%, #000);
    display: flex;
    align-items: center;
    gap: 10px;
}
.forum-back {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.forum-topbar-title {
    color: var(--theme-main-bg);
    font-size: 12px;
    opacity: 0.8;
}

.forum-detail-wrap {
    background: var(--theme-main-bg);
    padding: 15px;
    min-height: 200px;
}
.topic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.badge-announce {
    background: #c62828;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: bold;
}
.badge-pin {
    background: #e65100;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: bold;
}
.badge-cat {
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: bold;
}
.topic-detail-title {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent2) 60%, #888);
    padding-bottom: 10px;
}
.forum-post-card {
    background: var(--theme-card-bg, var(--theme-card-bg));
    border: 1px solid var(--theme-accent2);
    border-radius: 10px;
    overflow: hidden;
}
.post-card-header {
    background: linear-gradient(to right, var(--theme-card-bg), var(--theme-main-bg));
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--theme-accent2);
}
.post-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-accent1), var(--theme-accent2));
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--theme-accent1);
    flex-shrink: 0;
}
.post-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.post-card-author { font-weight: bold; color: var(--theme-link); font-size: 13px; }
.post-card-time   { font-size: 10px; color: #888; }
.post-card-views  { font-size: 10px; color: #aaa; }
.post-card-body {
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}