/* Reading Memories Widget */
.memories-section {
    margin-bottom: var(--space-10);
}

.memories-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.memories-scroll::-webkit-scrollbar {
    height: 3px;
}

.memories-scroll::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 2px;
}

.memory-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.memory-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.memory-date {
    font-size: var(--xs);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
}

.memory-type {
    font-size: var(--caption);
    color: var(--accent-primary);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-1);
}

.memory-title {
    font-size: var(--body);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.memory-detail {
    font-size: var(--caption);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.memory-empty {
    text-align: center;
    padding: var(--space-6);
    color: var(--text-dim);
    font-size: var(--caption);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

/* Streak Badge in Sidebar */
.sidebar-streak {
    display: flex;
    align-items: center;
    gap: var(--space-1-5, 6px);
    padding: var(--space-1) var(--space-2);
    margin-top: var(--space-1);
    font-size: var(--xs);
    color: var(--text-muted);
    background: var(--surface-bg);
    border-radius: var(--radius-full);
    width: fit-content;
}

.sidebar-streak.fire {
    color: var(--warning);
}

.sidebar-streak .streak-number {
    font-weight: var(--weight-bold);
    font-variant-numeric: tabular-nums;
}

/* Milestone Celebration Toast */
.toast.milestone {
    border-left: 3px solid var(--accent-gold);
    background: var(--gradient-subtle);
}

.toast.milestone .toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.milestone .toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast.milestone .toast-title {
    font-weight: var(--weight-semibold);
    color: var(--accent-gold);
}

.toast.milestone .toast-desc {
    font-size: var(--caption);
    color: var(--text-muted);
}

/* Catch-Up Session Intelligence */
.catchup-sessions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--surface-bg);
    border-radius: var(--radius-md);
    font-size: var(--caption);
    color: var(--text-muted);
}

.catchup-sessions strong {
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
}

@media (max-width: 768px) {
    .memory-card {
        flex: 0 0 240px;
    }
}
