/* ===== Live Activity Banner Styles ===== */

.live-activity-banner {
    position: relative;
    background: linear-gradient(135deg, #1428A0 0%, #2B4CB8 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(20, 40, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

/* Ticker Container */
.activity-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0 20px;
}

.ticker-content {
    display: flex;
    animation: scroll-left 180s linear infinite;
    white-space: nowrap;
    padding-right: 50px;
}

/* Ticker Items */
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    margin: 0 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.ticker-item.type-job {
    border-left: 3px solid #10B981;
}

.ticker-item.type-worker {
    border-left: 3px solid #F59E0B;
}

.ticker-item.type-band {
    border-left: 3px solid #3B82F6;
}

.ticker-item.type-activity {
    border-left: 3px solid #EF4444;
}

/* Icons */
.ticker-icon {
    margin-right: 8px;
    font-size: 16px;
    display: none; /* 이모티콘 숨김 */
}

.ticker-text {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-time {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 8px;
    font-weight: 400;
}

.ticker-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #1428A0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Stats Section */
.ticker-stats {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
}

.stat-icon {
    font-size: 16px;
    display: none; /* 통계 이모티콘 숨김 */
}

.stat-text {
    font-weight: 500;
}

#onlineCount, #todayCount {
    font-weight: 700;
    color: #FFD700;
}

/* Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1000%);  /* 180초 동안 5배 더 빠르게 이동 */
    }
}

/* Pause on Hover */
.activity-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* Mobile Responsiveness - 한 줄 압축 레이아웃 */
@media (max-width: 768px) {
    .live-activity-banner {
        flex-direction: row;  /* 가로 배치로 변경 */
        padding: 8px 0;      /* 패딩 축소 */
        min-height: 36px;    /* 최소 높이 축소 */
    }
    
    .activity-ticker {
        flex: 1;            /* 남은 공간 차지 */
        margin: 0 10px;     /* 좌우 마진만 */
        overflow: hidden;
        padding: 0;
    }
    
    .ticker-content {
        animation: scroll-left-mobile 180s linear infinite; /* 모바일에서도 3분 */
    }
    
    .ticker-stats {
        flex-shrink: 0;     /* 축소 방지 */
        width: auto;        /* 자동 너비 */
        padding: 0 10px;    /* 패딩 축소 */
        border: none;       /* 테두리 제거 */
        margin: 0;          /* 마진 제거 */
        gap: 12px;          /* 간격 축소 */
        justify-content: flex-end;
    }
    
    .ticker-item {
        font-size: 12px;    /* 폰트 크기 축소 */
        padding: 3px 10px;  /* 패딩 축소 */
        margin: 0 8px;      /* 마진도 축소 */
        border-radius: 16px; /* 더 작은 border-radius */
    }
    
    .ticker-time {
        font-size: 10px;    /* 시간 폰트 더 작게 */
        margin-left: 6px;
    }
    
    .stat-item {
        font-size: 11px;    /* 폰트 크기 축소 */
        padding: 2px 8px;   /* 패딩 축소 */
        white-space: nowrap; /* 줄바꿈 방지 */
        background: rgba(255, 255, 255, 0.08); /* 배경 투명도 낮춤 */
    }
    
    /* 모바일 전용 애니메이션 - 전체 콘텐츠 이동 */
    @keyframes scroll-left-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-1000%);  /* 180초 동안 5배 더 빠르게 이동 */
        }
    }
}

/* Loading State */
.ticker-loading {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

.ticker-loading::after {
    content: '데이터 로딩중...';
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Hot Badge Animation */
@keyframes hot-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.ticker-badge.hot {
    background: #FF4444;
    color: white;
    animation: hot-pulse 1s ease-in-out infinite;
}