/* ============================================
   今日黑料 - 今日黑料与热门黑料持续更新 - 社区论坛与匿名投票互动站
   全局样式表 (Global Stylesheet)
   ============================================ */

/* CSS Variables - 色彩方案 */
:root {
    --primary: #FF4500;
    --secondary: #1A1A1B;
    --bg: #1A1A1B;
    --card-bg: #272729;
    --accent: #FF5722;
    --text: #D7DADC;
    --text-muted: #818384;
    --border: #343536;
    --success: #46D160;
    --danger: #EA0027;
    --upvote: #FF5722;
    --downvote: #7193FF;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --transition: all 0.2s ease;
    --max-width: 1200px;
    --sidebar-width: 260px;
    --aside-width: 320px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
    line-height: 1.6;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: 1px solid var(--border);
    background: var(--secondary);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
}

/* ============================================
   Layout - 全局布局
   ============================================ */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--aside-width);
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.main-content {
    min-width: 0;
}

/* ============================================
   Header - 顶部导航栏
   ============================================ */

.global-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.site-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.site-logo:hover {
    text-decoration: none;
    color: var(--primary);
}

.header-search {
    position: relative;
    width: 400px;
}

.header-search input {
    width: 100%;
    padding: 8px 16px 8px 36px;
    border-radius: 20px;
    background: #3a3a3c;
    border: 1px solid var(--border);
}

.header-search input:focus {
    background: var(--card-bg);
    border-color: var(--primary);
}

.header-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-create-post {
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.btn-create-post:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.header-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: transparent;
    position: relative;
}

.header-icon:hover {
    background: var(--card-bg);
    color: var(--text);
}

.header-icon .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--radius);
    cursor: pointer;
}

.user-menu:hover {
    background: var(--card-bg);
}

.user-menu img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.user-menu .karma {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    color: var(--text);
    font-size: 24px;
    padding: 4px;
}

/* ============================================
   Sidebar - 左侧导航栏
   ============================================ */

.sidebar {
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
    padding-right: 8px;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 12px;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.sidebar-link:hover {
    background: var(--card-bg);
    text-decoration: none;
}

.sidebar-link.active {
    background: var(--card-bg);
    color: var(--primary);
}

.sidebar-link .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ============================================
   Post Card - 帖子卡片
   ============================================ */

.post-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
    overflow: hidden;
}

.post-card:hover {
    background: #2D2D2F;
    border-color: #4a4a4c;
}

.post-card .vote-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    min-width: 44px;
    background: rgba(0,0,0,0.1);
}

.vote-btn {
    background: transparent;
    color: var(--text-muted);
    padding: 4px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    line-height: 1;
}

.vote-btn:hover {
    color: var(--upvote);
    background: rgba(255, 87, 34, 0.1);
}

.vote-btn.downvote:hover {
    color: var(--downvote);
    background: rgba(113, 147, 255, 0.1);
}

.vote-btn.active-up {
    color: var(--upvote);
    animation: voteUp 0.3s ease;
}

.vote-btn.active-down {
    color: var(--downvote);
    animation: voteDown 0.3s ease;
}

@keyframes voteUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

@keyframes voteDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

.vote-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 4px 0;
    min-width: 24px;
    text-align: center;
    transition: var(--transition);
}

.post-card .post-body {
    flex: 1;
    padding: 12px 16px;
    min-width: 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.post-meta .node-name {
    color: var(--primary);
    font-weight: 600;
}

.post-meta .separator {
    color: var(--border);
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
}

.post-title a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Post Tags / Flair */
.post-flair {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}

.flair-hot {
    background: rgba(234, 0, 39, 0.2);
    color: #FF6B6B;
}

.flair-vote {
    background: rgba(113, 147, 255, 0.2);
    color: #7193FF;
}

.flair-discussion {
    background: rgba(70, 209, 96, 0.2);
    color: #46D160;
}

.flair-nsfw {
    background: rgba(255, 69, 0, 0.3);
    color: #FF4500;
}

.flair-exclusive {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-left: 12px;
    flex-shrink: 0;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    background: transparent;
}

.post-action-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

/* ============================================
   Right Aside - 右侧信息栏
   ============================================ */

.right-aside {
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
}

.aside-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.aside-card-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.aside-card-body {
    padding: 16px;
}

.community-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.stat-item .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-rank {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    min-width: 24px;
}

.trending-title {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    flex: 1;
}

.trending-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* Featured Poll */
.featured-poll {
    padding: 12px 0;
}

.poll-question {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.poll-option {
    margin-bottom: 8px;
}

.poll-option-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.poll-option-label {
    color: var(--text);
}

.poll-option-percent {
    color: var(--primary);
    font-weight: 700;
}

.poll-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.poll-total {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   Create Post Prompt
   ============================================ */

.create-post-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.create-post-prompt img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.create-post-prompt input {
    flex: 1;
    border-radius: 20px;
    padding: 10px 16px;
    background: var(--secondary);
    border: 1px solid var(--border);
    cursor: pointer;
}

.create-post-prompt input:hover {
    border-color: var(--text-muted);
}

/* ============================================
   Feed Tabs / Sort
   ============================================ */

.feed-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-bottom: 16px;
}

.feed-tab {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
}

.feed-tab:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.feed-tab.active {
    background: rgba(255, 69, 0, 0.1);
    color: var(--primary);
}

/* ============================================
   Comment Tree - 评论嵌套树
   ============================================ */

.comment-tree {
    margin-top: 24px;
}

.comment-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
}

.comment-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    border-radius: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.comment-item:hover::before {
    background: var(--primary);
}

.comment-item.collapsed > .comment-replies {
    display: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.comment-author.op {
    color: var(--primary);
}

.comment-karma {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 1px 6px;
    border-radius: 8px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 6px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-action {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    background: transparent;
    font-weight: 600;
}

.comment-action:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.comment-replies {
    margin-top: 12px;
    padding-left: 16px;
    transition: var(--transition);
}

/* ============================================
   Karma Badge
   ============================================ */

.karma-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 69, 0, 0.1);
    color: var(--primary);
    cursor: help;
    position: relative;
}

.karma-badge .karma-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: var(--shadow);
}

.karma-badge:hover .karma-tooltip {
    display: block;
}

/* ============================================
   Action Floating Menu
   ============================================ */

.action-menu-trigger {
    position: relative;
}

.action-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}

.action-menu.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.action-menu-item:hover {
    background: rgba(255,255,255,0.05);
}

.action-menu-item.danger {
    color: var(--danger);
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    color: var(--text-muted);
    font-size: 20px;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: #4a4a4c;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

/* ============================================
   Skeleton Loading
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, #3a3a3c 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-post {
    height: 120px;
    margin-bottom: 12px;
    border-radius: var(--radius);
}

/* ============================================
   Footer
   ============================================ */

.global-footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-section a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
}

.footer-section a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 24px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-disclaimer {
    max-width: var(--max-width);
    margin: 16px auto 0;
    padding: 12px 16px;
    background: rgba(234, 0, 39, 0.05);
    border: 1px solid rgba(234, 0, 39, 0.2);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   Page-specific: Vote Detail
   ============================================ */

.vote-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.vote-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.vote-option {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.vote-option:hover {
    border-color: var(--primary);
    background: rgba(255, 69, 0, 0.05);
}

.vote-option.selected {
    border-color: var(--primary);
    background: rgba(255, 69, 0, 0.1);
}

.vote-option-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vote-progress {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.vote-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.vote-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   User Profile
   ============================================ */

.profile-header {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.profile-info h1 {
    font-size: 22px;
    font-weight: 700;
}

.profile-info .join-date {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 8px 0;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--border);
}

/* ============================================
   Timeline (Yearly Recap)
   ============================================ */

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.timeline-date {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 48px;
        left: 0;
        width: 280px;
        height: calc(100vh - 48px);
        background: var(--secondary);
        z-index: 999;
        padding: 16px;
        border-right: 1px solid var(--border);
    }

    .sidebar.show {
        display: block;
    }

    .right-aside {
        display: none;
    }

    .header-search {
        width: 240px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .btn-create-post span {
        display: none;
    }

    .post-card {
        flex-direction: column;
    }

    .post-card .vote-column {
        flex-direction: row;
        padding: 8px 12px;
        gap: 8px;
    }

    .post-thumbnail {
        width: 100%;
        height: 160px;
        margin: 8px 0 0;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .modal {
        width: 95%;
        max-height: 90vh;
    }

    .community-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
