/* assets/style.css - สไตล์เพิ่มเติมสำหรับเว็บบอร์ด */
body {
    font-family: "Kanit", "Prompt", "Segoe UI", Tahoma, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.topic-card {
    transition: box-shadow .15s ease-in-out;
}
.topic-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

.badge-pinned {
    background-color: #ffc107;
    color: #212529;
}

.tag-badge {
    background-color: #eef3ff;
    color: #3b5bd6;
    border: 1px solid #c8d7f8;
    font-weight: 500;
}

.cat-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

/* ตัวอย่างบทความแบบลอยเด้ง overlay (แสดงเมื่อเอาเมาส์วางบนการ์ด) */
.topic-card {
    position: relative;
}
.topic-card:hover {
    z-index: 30;
}
.topic-preview {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
    padding: .75rem 1rem;
    z-index: 20;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, max-height .25s ease;
}
.topic-card:hover .topic-preview {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
    overflow: auto;
}

/* เนื้อหาที่เรนเดอร์เป็น HTML จาก TinyMCE */
.article-body {
    white-space: normal;
    word-break: break-word;
}
.article-body img {
    max-width: 100%;
    height: auto;
}
.article-body p {
    margin-bottom: .6rem;
}

.content-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-box {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
}

.contact-channel {
    padding: .5rem .75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    line-height: 1.6;
}

.contact-select {
    cursor: pointer;
    text-decoration: underline dotted;
    user-select: all;
}
.contact-select:hover {
    color: var(--bs-primary, #0d6efd);
}

