
/* FluxBB Static Archive Stylesheet */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    margin: 0;
    padding: 20px;
}
.container { max-width: 1200px; margin: 0 auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
header { border-bottom: 2px solid #2c3e50; padding-bottom: 15px; margin-bottom: 20px; }
header h1 { margin: 0 0 10px 0; color: #2c3e50; }
.breadcrumbs { font-size: 0.9em; color: #666; }
.breadcrumbs a { color: #3498db; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
footer { margin-top: 30px; padding-top: 15px; border-top: 1px solid #ddd; text-align: center; color: #666; font-size: 0.85em; }

/* Categories and Forums */
.category { margin-bottom: 30px; }
.category h2 { background: #2c3e50; color: #fff; padding: 10px 15px; margin: 0; border-radius: 4px 4px 0 0; }
.forum-list { border: 1px solid #ddd; border-top: none; }
.forum-item { display: flex; padding: 12px 15px; border-bottom: 1px solid #eee; align-items: center; }
.forum-item:last-child { border-bottom: none; }
.forum-item:hover { background: #f9f9f9; }
.forum-icon { width: 40px; text-align: center; font-size: 1.5em; color: #3498db; }
.forum-info { flex: 1; }
.forum-info h3 { margin: 0 0 5px 0; }
.forum-info h3 a { color: #2c3e50; text-decoration: none; }
.forum-info h3 a:hover { color: #3498db; }
.forum-desc { color: #666; font-size: 0.9em; margin: 0; }
.forum-stats { text-align: right; color: #888; font-size: 0.85em; min-width: 150px; }

/* Topics */
.topic-list { width: 100%; border-collapse: collapse; }
.topic-list th { background: #34495e; color: #fff; padding: 10px; text-align: left; }
.topic-list td { padding: 10px; border-bottom: 1px solid #eee; }
.topic-list tr:hover td { background: #f9f9f9; }
.topic-list a { color: #2c3e50; text-decoration: none; }
.topic-list a:hover { color: #3498db; }
.topic-sticky { background: #fff9e6 !important; }
.topic-closed { opacity: 0.7; }

/* Posts - FluxBB style with user sidebar */
.post { border: 1px solid #ddd; margin-bottom: 20px; border-radius: 4px; overflow: hidden; }
.post-header { background: #ecf0f1; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; }
.post-date { color: #888; font-size: 0.85em; }
.post-content { display: flex; }
.post-user-info { width: 180px; min-width: 180px; background: #f8f9fa; padding: 15px; border-right: 1px solid #eee; text-align: center; }
.post-user-info .user-avatar { margin-bottom: 10px; }
.post-user-info .user-avatar img { max-width: 100px; max-height: 100px; border-radius: 4px; }
.post-user-info .user-avatar .avatar-placeholder { width: 60px; height: 60px; background: #ddd; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1.5em; color: #666; }
.post-user-info .username { font-weight: bold; margin-bottom: 5px; }
.post-user-info .username a { color: #2c3e50; text-decoration: none; }
.post-user-info .username a:hover { color: #3498db; }
.post-user-info .user-title { color: #666; font-size: 0.85em; margin-bottom: 10px; }
.post-user-info .user-details { font-size: 0.8em; color: #888; text-align: left; }
.post-user-info .user-details dt { font-weight: bold; color: #666; margin-top: 5px; }
.post-user-info .user-details dd { margin: 0 0 3px 0; }
.post-main { flex: 1; display: flex; flex-direction: column; }
.post-body { padding: 15px; flex: 1; }
.post-body blockquote { background: #f9f9f9; border-left: 4px solid #3498db; margin: 10px 0; padding: 10px 15px; }
.post-body blockquote cite { display: block; font-weight: bold; margin-bottom: 5px; color: #666; }
.post-body pre { background: #2c3e50; color: #ecf0f1; padding: 15px; border-radius: 4px; overflow-x: auto; }
.post-body code { font-family: "Fira Code", Consolas, Monaco, monospace; }
.post-body img { max-width: 100%; height: auto; }
.post-signature { border-top: 1px dashed #ddd; margin: 0 15px; padding: 10px 0; color: #888; font-size: 0.85em; }
.post-edited { background: #f9f9f9; padding: 8px 15px; font-size: 0.85em; color: #888; border-top: 1px solid #eee; }

/* User profiles */
.user-profile { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.user-avatar { text-align: center; }
.user-avatar img { max-width: 150px; border-radius: 8px; }
.user-details dl { display: grid; grid-template-columns: 150px 1fr; gap: 5px 15px; }
.user-details dt { font-weight: bold; color: #666; }
.user-details dd { margin: 0; }

/* User list */
.user-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.user-card { border: 1px solid #ddd; padding: 15px; border-radius: 4px; text-align: center; }
.user-card a { color: #2c3e50; text-decoration: none; font-weight: bold; }
.user-card a:hover { color: #3498db; }
.user-card .user-title { color: #888; font-size: 0.85em; }

/* Pagination */
.pagination { text-align: center; margin: 20px 0; }
.pagination a, .pagination span { display: inline-block; padding: 5px 12px; margin: 0 2px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #333; }
.pagination a:hover { background: #3498db; color: #fff; border-color: #3498db; }
.pagination .current { background: #2c3e50; color: #fff; border-color: #2c3e50; }

/* Private messages (for private directory) */
.message-list { list-style: none; padding: 0; }
.message-item { border: 1px solid #ddd; margin-bottom: 10px; padding: 15px; border-radius: 4px; }
.message-item.unread { border-left: 4px solid #e74c3c; }
.message-participants { color: #666; font-size: 0.9em; margin-bottom: 10px; }
.message-preview { color: #333; }

/* Responsive */
@media (max-width: 768px) {
    .user-profile { grid-template-columns: 1fr; }
    .forum-item { flex-direction: column; align-items: flex-start; }
    .forum-stats { margin-top: 10px; text-align: left; }
    .post-content { flex-direction: column; }
    .post-user-info { width: 100%; min-width: 100%; border-right: none; border-bottom: 1px solid #eee; padding: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    .post-user-info .user-avatar { margin-bottom: 0; }
    .post-user-info .user-details { display: none; }
}
