
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #f0f2f5; 
    --bg-header: #1e293b; 
    --bg-navbar: #ffffff;
    --bg-panel: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --primary: #3b82f6; 
    --primary-hover: #2563eb;
    --border: #e2e8f0;
    --accent: #f59e0b; 
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-main); color: var(--text-main); font-family: 'Inter', sans-serif; line-height: 1.6; font-size: 14px; }
a { text-decoration: none; color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block;}
ul { list-style: none; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }

/* HEADER */
.top-header { background: var(--bg-header); padding: 15px 0; color: #fff; }
.top-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; text-decoration: none !important;}
.user-panel { display: flex; gap: 15px; align-items: center; font-size: 13px;}
.user-panel input { padding: 8px 15px; border-radius: 4px; border: none; outline: none; background: rgba(255,255,255,0.1); color: #fff;}
.user-panel input::placeholder { color: #94a3b8; }
.btn-login { background: rgba(255,255,255,0.15); color: #fff; padding: 8px 16px; border-radius: 4px; text-decoration: none !important; font-weight: 500;}
.btn-login:hover { background: rgba(255,255,255,0.25); }

/* NAVBAR */
.navbar { background: var(--bg-navbar); border-bottom: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.02); margin-bottom: 20px;}
.nav-links { display: flex; gap: 0; }
.nav-links a { display: inline-block; padding: 18px 25px; font-weight: 600; color: var(--text-main); text-decoration: none !important; border-bottom: 3px solid transparent;}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--primary); color: var(--primary); background: #f8fafc;}

/* BREADCRUMBS */
.breadcrumbs { background: var(--bg-panel); padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 25px; font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: center;}
.breadcrumbs a { color: var(--text-main); font-weight: 500; }

/* LAYOUT */
.forum-layout { display: flex; gap: 25px; align-items: flex-start; margin-bottom: 60px;}
.main-col { flex: 1; min-width: 0;}
.sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 25px;}

/* CATEGORY BLOCK */
.category { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 25px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.02);}
.category-header { background: #f8fafc; padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center;}
.category-header h2 { font-size: 17px; font-weight: 600; color: var(--bg-header); margin: 0; display:flex; align-items:center; gap:10px;}
.category-stats-head { font-size: 13px; color: var(--text-muted); display: flex; gap: 50px; margin-right: 140px;}

/* THREAD LIST */
.thread-item { display: flex; padding: 20px; border-bottom: 1px solid #f1f5f9; transition: background 0.2s; align-items: center;}
.thread-item:last-child { border-bottom: none; }
.thread-item:hover { background: #f8fafc; }
.thread-icon { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; margin-right: 20px; border: 1px solid var(--border); background: #fff; flex-shrink:0; display:flex; align-items:center; justify-content:center;}
.thread-icon img { max-width: 100%; max-height: 100%; }
.thread-main { flex: 1; }
.thread-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; display: inline-block;}
.thread-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 15px; align-items: center;}
.thread-tag { background: #e2e8f0; color: #475569; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase;}

.thread-stats { width: 160px; text-align: right; font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 5px;}
.thread-last-post { width: 180px; padding-left: 20px; font-size: 13px; color: var(--text-muted); border-left: 1px solid var(--border); text-align: right;}
.thread-last-post strong { color: var(--text-main); display: block;}

.pinned-badge { background: #ef4444; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; margin-right: 8px;}

/* SIDEBAR WIDGETS */
.widget { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.02);}
.widget-header { background: #f8fafc; padding: 15px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15px; color: var(--bg-header);}
.widget-content { padding: 20px; }
.team-member { display: flex; align-items: center; gap: 15px; margin-bottom: 20px;}
.team-member:last-child { margin-bottom: 0; }
.team-av { width: 45px; height: 45px; border-radius: 50%; object-fit: cover;}
.team-info strong { display: block; font-size: 14px; color: var(--text-main);}
.team-info span { font-size: 11px; color: #fff; background: var(--text-muted); padding: 2px 6px; border-radius: 4px; font-weight: 600; display: inline-block; margin-top:3px;}

.stat-row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding: 10px 0; font-size: 14px;}
.stat-row:last-child { border-bottom: none;}

.recent-post { margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px;}
.recent-post:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0;}
.rp-title { font-size: 14px; font-weight: 600; margin-bottom: 5px; display: block;}
.rp-meta { font-size: 12px; color: var(--text-muted);}

/* POST (FORUM THREAD VIEW) */
.thread-header { background: var(--bg-panel); padding: 25px; border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;}
.thread-header h1 { font-size: 24px; font-weight: 700; color: var(--bg-header); margin-bottom: 10px;}
.th-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 20px;}

.post-container { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 25px;}
.post-row { display: flex; border-bottom: 6px solid var(--bg-main);}
.post-row:last-child { border-bottom: none; }

.post-user { width: 200px; padding: 25px; background: #f8fafc; border-right: 1px solid var(--border); text-align: center; flex-shrink: 0;}
.pu-avatar { width: 100px; height: 100px; border-radius: 6px; margin: 0 auto 12px; background: #e2e8f0; display:flex; align-items:center; justify-content:center; overflow:hidden;}
.pu-avatar img { width: 100%; height: 100%; object-fit: cover;}
.pu-name { font-weight: 700; font-size: 15px; color: var(--primary); display:block; text-decoration:none !important; word-wrap: break-word;}
.pu-title { font-size: 11px; color: #fff; background: var(--bg-header); padding: 4px 8px; border-radius: 4px; display: inline-block; margin-top: 8px; font-weight: 600;}
.pu-stats { margin-top: 15px; font-size: 12px; color: var(--text-muted); text-align: left; background: #fff; border: 1px solid var(--border); padding: 10px; border-radius: 6px; line-height: 1.8;}

.post-body { flex: 1; display: flex; flex-direction: column; min-width: 0;}
.pb-header { padding: 12px 25px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; background: #fff;}
.pb-content { padding: 25px; font-size: 15px; color: var(--text-main); line-height: 1.7; flex: 1;}
.pb-content h3 { font-size: 18px; margin: 25px 0 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; color: var(--bg-header);}
.pb-content p { margin-bottom: 18px; }
.pb-footer { padding: 12px 25px; background: #f8fafc; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px;}
.pb-btn { background: #fff; border: 1px solid var(--border); padding: 6px 15px; font-size: 13px; font-weight: 500; border-radius: 4px; color: var(--text-muted); cursor: pointer; text-decoration:none !important;}
.pb-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary);}

/* SPECS TABLE IN POST */
.forum-table { width: 100%; border-collapse: collapse; margin-bottom: 25px; font-size: 14px;}
.forum-table th, .forum-table td { padding: 12px 18px; border: 1px solid var(--border); text-align: left;}
.forum-table th { background: #f8fafc; width: 35%; font-weight: 600; color: var(--text-main);}

/* FOOTER */
.footer { background: var(--bg-header); color: #cbd5e1; padding: 50px 0 30px; margin-top: 50px;}
.footer-inner { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 25px; margin-bottom: 25px;}
.f-links { display: flex; gap: 25px;}
.f-links a { color: #cbd5e1; font-weight: 500;}
.f-links a:hover { color: #fff;}
.copyright { text-align: center; font-size: 13px; color: #94a3b8;}

@media (max-width: 1024px) {
    .forum-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .category-stats-head, .thread-stats { display: none; }
    .post-row { flex-direction: column; }
    .post-user { width: 100%; border-right: none; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 20px; padding: 15px 25px;}
    .pu-avatar { width: 60px; height: 60px; margin: 0; }
    .pu-stats { display: none; }
}
@media (max-width: 768px) {
    .top-header .container { flex-direction: column; gap: 15px; text-align: center;}
    .thread-last-post { display: none; }
}
