/* ============================================================
 * widget.css — 右侧栏小部件
 * ============================================================ */

.forum-widget {
    background: rgba(22, 20, 17, 0.95);
    border: 1px solid rgba(224, 192, 96, 0.12);
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.forum-widget-header {
    padding: 10px 14px;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    color: #e0c060;
    background: rgba(224, 192, 96, 0.06);
    border-bottom: 1px solid rgba(224, 192, 96, 0.12);
}

.forum-widget-body {
    padding: 10px 14px;
}

.forum-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
}

.forum-stat-label {
    color: rgba(184, 176, 160, 0.6);
}

.forum-stat-value {
    color: #d0c8b0;
}

.forum-widget-post-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(224, 192, 96, 0.04);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.forum-widget-post-item:last-child {
    border-bottom: none;
}

.forum-widget-post-item:hover {
    opacity: 0.85;
}

.forum-widget-post-title {
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: rgba(208, 200, 176, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.forum-widget-post-meta {
    font-family: 'VT323', monospace;
    font-size: 0.72rem;
    color: rgba(184, 176, 160, 0.4);
}

/* 签到组件 */
.forum-checkin-widget .forum-widget-body { padding: 14px; }
.checkin-btn-wrap { text-align: center; margin-bottom: 12px; }
.checkin-btn {
    display: inline-block;
    padding: 10px 32px;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #fff;
    background: #2d8a4e;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.checkin-btn:hover { background: #36a85e; }
.checkin-btn:disabled { background: #3a3530; color: rgba(184,176,160,0.5); cursor: default; }
.checkin-btn.checked {
    background: #2d8a4e;
    color: #fff;
    cursor: default;
    pointer-events: none;
}
.checkin-stats {
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: rgba(184,176,160,0.7);
}
.checkin-stats .checkin-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}
.checkin-stats .checkin-stat-value { color: #e0c060; }
