/* ============================================
   iOS MARQUEE NEWS TICKER - UPDATED
   ============================================ */

.ios-marquee-wrapper {
    display: block;
    width: 100%;
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ios-marquee-container {
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 
                inset 0 0 0 0.5px rgba(60, 60, 67, 0.08);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    background: rgba(255, 255, 255, 0.92);
    padding: 0 16px;
    position: relative;
    min-height: 50px;
}

/* Badge LIVE */
.ios-marquee-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 14px;
    height: 26px;
}

.ios-marquee-badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: ios-blink 1.2s infinite;
}

@keyframes ios-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Track untuk scroll */
.ios-marquee-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.ios-marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll linear infinite;
    font-weight: 500;
    letter-spacing: -0.2px;
    padding: 0 10px;
    width: auto;
}

/* Animasi scroll */
@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Item berita */
.ios-marquee-item {
    display: inline-block;
    padding: 0 8px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
    position: relative;
}

.ios-marquee-item:hover {
    color: #007aff;
}

.ios-marquee-item .marquee-separator {
    display: inline-block;
    margin: 0 12px;
    color: rgba(60, 60, 67, 0.2);
    font-weight: 300;
}

.ios-marquee-item .marquee-date {
    font-size: 0.75em;
    color: rgba(60, 60, 67, 0.4);
    font-weight: 400;
    margin-left: 8px;
}

/* Pause on hover */
.ios-marquee-track.pause .ios-marquee-content {
    animation-play-state: paused !important;
}

/* Loader */
.ios-marquee-loader {
    display: inline-block;
    color: rgba(60, 60, 67, 0.4);
    font-weight: 400;
}

/* Empty state */
.ios-marquee-empty {
    display: inline-block;
    color: rgba(60, 60, 67, 0.4);
    font-weight: 400;
}

/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
    .ios-marquee-container {
        background: rgba(28, 28, 30, 0.92);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .ios-marquee-item .marquee-date {
        color: rgba(255, 255, 255, 0.3);
    }
    
    .ios-marquee-item .marquee-separator {
        color: rgba(255, 255, 255, 0.15);
    }
    
    .ios-marquee-loader {
        color: rgba(255, 255, 255, 0.3);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .ios-marquee-container {
        padding: 0 12px;
        border-radius: 10px;
        min-height: 45px;
    }
    
    .ios-marquee-badge {
        font-size: 9px;
        padding: 3px 10px;
        height: 22px;
        margin-right: 10px;
    }
    
    .ios-marquee-item {
        font-size: 0.9em;
    }
    
    .ios-marquee-item .marquee-separator {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .ios-marquee-badge {
        display: none;
    }
    
    .ios-marquee-container {
        padding: 0 10px;
    }
}

/* Animasi masuk */
.ios-marquee-wrapper {
    animation: ios-fade-in 0.5s ease;
}

@keyframes ios-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}