/* assets/css/style.css */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --border-color: #e2e8f0;
    --primary-color: #3b82f6;
}

.dark {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

/* Header & Navbar */
.header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.navbar a {
    margin-left: 20px;
    font-weight: 500;
    color: #555;
}

.navbar a:hover {
    color: var(--primary-color);
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.page-title {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Categories */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 20px;
    margin-bottom: 5px;
}

.category-desc {
    color: #666;
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Buttons */
.btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background-color: #004494;
    color: #fff;
    text-decoration: none;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.header-actions .page-title {
    border: none;
    margin: 0;
    padding: 0;
}

/* Threads */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thread-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thread-title {
    font-size: 18px;
    font-weight: bold;
}

.thread-meta {
    font-size: 12px;
    color: #888;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Comments & Threads */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.comment-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    overflow: hidden;
}

/* Voting System sidebar */
.vote-sidebar {
    background: #f8f9fa;
    padding: 15px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.vote-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}

.vote-btn:hover {
    color: var(--primary-color);
}

.vote-score {
    font-weight: bold;
    margin: 10px 0;
    font-size: 16px;
}

/* Comment Content */
.comment-content {
    padding: 15px;
    width: 100%;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-date {
    color: #888;
}

.comment-body {
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

/* Images inside comments */
.comment-body img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
    margin-top: 10px;
    display: block;
}