/* 主界面特定样式 */

/* 主内容区域 */
.main-content {
    padding: 10px 0;
}

/* 今天生日卡片 */
.today-birthday {
    margin: 16px;
    margin-bottom: 24px;
}

.today-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.today-header .material-icons {
    font-size: 16px;
    margin-right: 6px;
    color: var(--accent-color);
}

.birthday-card {
    background-color: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.birthday-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--accent-color);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.birthday-info {
    flex: 1;
    margin-left: 5px;
}

.birthday-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.birthday-date {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.birthday-actions {
    display: flex;
    gap: 12px;
}

.action-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.action-button .material-icons {
    font-size: 20px;
}

/* 生日列表项目 */
.birthday-item {
    position: relative;
}

.birthday-item:active {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .birthday-item:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.countdown {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-color);
    margin-right: 10px;
}

.countdown.passed {
    color: var(--text-secondary);
}

.birthday-item.passed .list-item-title,
.birthday-item.passed .list-item-subtitle {
    opacity: 0.7;
}

/* 重要性指示器 */
.importance-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

.importance-indicator.high {
    background-color: var(--error-color);
}

.importance-indicator.medium {
    background-color: var(--warning-color);
}

.importance-indicator.normal {
    background-color: var(--success-color);
}

/* 左滑操作 */
.birthday-item {
    transition: transform 0.3s ease;
}

.birthday-item.swiped {
    transform: translateX(-100px);
}

/* 滑动操作按钮 - 这里只是视觉效果，实际功能需要JavaScript实现 */
.swipe-actions {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.swipe-action {
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.swipe-action.edit {
    background-color: var(--accent-color);
}

.swipe-action.delete {
    background-color: var(--error-color);
}

.birthday-item.swiped .swipe-actions {
    transform: translateX(0);
}

/* 下拉刷新指示器 - 视觉效果 */
.pull-to-refresh {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pull-to-refresh.visible {
    opacity: 1;
}

.pull-to-refresh .material-icons {
    animation: spin 1s infinite linear;
    margin-right: 8px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式调整 */
@media (max-width: 375px) {
    .birthday-card {
        padding: 15px;
    }
    
    .action-button {
        width: 36px;
        height: 36px;
    }
} 