/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f111a; /* พื้นหลังมืดสนิท */
    color: #cbd5e0;
    font-family: 'Kanit', sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar */
.navbar {
    background-color: #1a1c23;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #3182ce; /* เส้นใต้สีน้ำเงิน */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.logo span {
    color: #3182ce;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #a0aec0;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.btn-login {
    background: #3182ce;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Header */
.forum-header {
    padding: 40px 0;
    text-align: center;
}

.forum-header h1 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 10px;
}

/* Forum Category */
.forum-category {
    background: #1a1c23;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #2d3748;
}

.category-header {
    background: #242731;
    padding: 15px 20px;
    font-weight: 600;
    color: #3182ce;
    border-bottom: 1px solid #2d3748;
}

/* Thread Item */
.thread-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #2d3748;
    align-items: center;
    transition: background 0.2s;
}

.thread-item:hover {
    background: #21242e;
}

.thread-icon {
    font-size: 24px;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.thread-info {
    flex-grow: 1;
}

.thread-title {
    color: #edf2f7;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
}

.thread-title:hover {
    color: #3182ce;
}

.thread-meta {
    font-size: 0.85em;
    color: #718096;
}

.author {
    color: #f6ad55; /* สีส้มให้ชื่อคนเขียนเด่น */
}

.thread-stats {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: #718096;
    text-align: right;
}

.thread-stats b {
    color: #fff;
}