/**
 * Billionaire Homepage v2 - Timeline CSS
 * 실시간 타임라인 위젯 스타일
 */

/* === 타임라인 위젯 === */
.timeline-widget {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 300px;
    max-height: 300px;
    background: var(--color-bg-surface);
    border-radius: var(--radius-xl);
    backdrop-filter: var(--blur-lg);
    border: var(--border-light);
    box-shadow: var(--shadow-soft);
    z-index: var(--z-panel);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.timeline-widget.collapsed {
    max-height: 48px;
}

.timeline-widget.collapsed .timeline-content {
    display: none;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(78, 205, 196, 0.1);
    border-bottom: var(--border-subtle);
    cursor: pointer;
}

.timeline-header h4 {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    margin: 0;
}

.timeline-toggle {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: var(--font-size-lg);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.timeline-toggle:hover {
    background: var(--color-bg-hover);
}

.timeline-widget.collapsed .timeline-toggle {
    transform: rotate(180deg);
}

.timeline-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
}

/* === 타임라인 아이템 === */
.timeline-event {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xs);
    border-left: 3px solid var(--color-primary);
    animation: slideIn 0.3s ease;
}

.timeline-event.conquered {
    border-left-color: var(--color-secondary);
}

.timeline-event.auction {
    border-left-color: var(--color-accent);
}

.timeline-event.pixel {
    border-left-color: #a29bfe;
}

.timeline-event.collab {
    border-left-color: #fd79a8;
}

.event-icon {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-text {
    font-size: var(--font-size-xs);
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-time {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* === 빈 상태 === */
.timeline-empty {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* === 새 이벤트 알림 === */
.timeline-event.new {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
    }
}

/* === 반응형 === */
@media (max-width: 768px) {
    .timeline-widget {
        display: none;
    }
}

