/* Timeline Archive Widget Styles */
.sammi-timeline-archive {
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Dark mode styles */
body.dark-theme .sammi-timeline-archive {
    color: #b0b0b0;
}

body.dark-theme .recent-link,
body.dark-theme .month-link {
    color: #b0b0b0;
}

body.dark-theme .recent-link:hover,
body.dark-theme .month-link:hover {
    color: #f04494;
}

body.dark-theme .recent-count,
body.dark-theme .month-count {
    background-color: #2a2a2a;
    color: #b0b0b0;
}

body.dark-theme .year-content:before {
    background-color: #2a2a2a;
}

body.dark-theme .month-dot {
    background-color: #323335;
    border-color: #b0b0b0;
}

body.dark-theme .month-link:hover .month-dot {
    background-color: #f04494;
    border-color: #f04494;
}

body.dark-theme .widget_sammi_timeline_archive {
    background-color: #323335;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .widget_sammi_timeline_archive:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-theme .widget_sammi_timeline_archive .widget-title {
    border-bottom-color: #2a2a2a;
}

/* 最近选项 */
.timeline-recent {
    position: relative;
    margin-bottom: 15px;
}

.recent-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
    font-weight: 600;
}

.recent-link:hover {
    color: #f04494;
}

.recent-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    position: relative;
}

/* 最近图标样式 - 在这里使用一个实心圆点 */
.recent-dot:before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    left: 3px;
    top: 3px;
}

.recent-title {
    flex-grow: 1;
    font-size: 15px;
}

.recent-count {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 10px;
    font-size: 12px;
    padding: 0 5px;
}

.recent-link.current-month {
    color: #f04494;
}

/* Year Header */
.timeline-year {
    margin-bottom: 15px;
}

.year-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.year-header:hover {
    color: #f04494;
}

.year-toggle {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    position: relative;
}

.year-toggle:before,
.year-toggle:after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

/* 横线 */
.year-toggle:before {
    width: 12px;
    height: 2px;
    top: 5px;
    left: 0;
}

/* 竖线 (折叠状态) */
.year-toggle:after {
    width: 2px;
    height: 12px;
    top: 0;
    left: 5px;
}

/* 展开状态 - 竖线消失 */
.timeline-year.open .year-toggle:after {
    transform: rotate(90deg);
    opacity: 0;
}

.year-title {
    font-size: 15px;
}

/* Year Content */
.year-content {
    padding: 5px 0 5px 20px;
    position: relative;
}

/* Timeline 垂直线 */
.year-content:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5px;
    width: 2px;
    background-color: #e0e0e0;
}

/* 月份列表 */
.months-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.month-item {
    position: relative;
    margin: 8px 0;
    padding: 0 0 0 20px;
    line-height: 1.5;
}

.month-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.month-link:hover {
    color: #f04494;
}

.month-link:hover .month-dot {
    background-color: #f04494;
    border-color: #f04494;
}

/* 月份点 */
.month-dot {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ccc;
    transition: all 0.3s ease;
}

/* 当前选中的月份 */
.month-item.current-month .month-link {
    color: #f04494;
    font-weight: 600;
}

.month-item.current-month .month-dot {
    background-color: #f04494;
    border-color: #f04494;
}

.month-name {
    flex-grow: 1;
    font-size: 14px;
}

.month-count {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 10px;
    font-size: 12px;
    padding: 0 5px;
}

/* 卡片风格 */
.widget_sammi_timeline_archive {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.widget_sammi_timeline_archive:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.widget_sammi_timeline_archive .widget-title {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px;
    margin: 0;
    font-size: 16px;
}

.widget_sammi_timeline_archive .sammi-timeline-archive {
    padding: 10px 15px 15px;
} 