/* Unismuh News Ticker - Styles */
.unt-news-ticker {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 50px;
    padding: 6px 8px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Label Badge - TERBARU */
.unt-ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
}

.unt-ticker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: unt-pulse 2s infinite;
}

.unt-ticker-icon svg {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.unt-ticker-label-text {
    line-height: 1;
}

/* Ticker Content Area */
.unt-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.unt-ticker-items {
    position: relative;
    width: 100%;
    height: 100%;
}

.unt-ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.unt-ticker-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.unt-ticker-item.slide-out-up {
    opacity: 0;
    transform: translateY(-20px);
}

.unt-ticker-item.slide-in-down {
    transform: translateY(20px);
}

/* Fade animation */
.unt-news-ticker[data-animation="fade"] .unt-ticker-item {
    transform: none;
    transition: opacity 0.5s ease;
}

.unt-news-ticker[data-animation="fade"] .unt-ticker-item.active {
    opacity: 1;
}

.unt-news-ticker[data-animation="fade"] .unt-ticker-item.slide-out-up {
    opacity: 0;
    transform: none;
}

/* Typing animation */
.unt-news-ticker[data-animation="typing"] .unt-ticker-item {
    transform: none;
    transition: opacity 0.3s ease;
}

.unt-news-ticker[data-animation="typing"] .unt-ticker-item.active a {
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    animation: unt-typing 2s steps(40, end), unt-blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: 100%;
}

.unt-ticker-item a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: var(--unt-font-size, 14px);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    transition: color 0.3s ease;
    line-height: 36px;
}

.unt-ticker-item a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Navigation Buttons */
.unt-ticker-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding-right: 4px;
}

.unt-ticker-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.unt-ticker-nav button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.unt-ticker-nav button svg {
    width: 12px;
    height: 12px;
}

/* Gradient overlay on right side */
.unt-ticker-content::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, #16213e, transparent);
    pointer-events: none;
    z-index: 1;
}

/* Animations */
@keyframes unt-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes unt-typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes unt-blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: rgba(255, 255, 255, 0.75);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .unt-news-ticker {
        border-radius: 30px;
        padding: 5px 6px;
    }

    .unt-ticker-label {
        padding: 6px 12px;
        font-size: 10px;
    }

    .unt-ticker-icon svg {
        width: 12px;
        height: 12px;
    }

    .unt-ticker-content {
        margin: 0 10px;
        height: 30px;
    }

    .unt-ticker-item a {
        font-size: 12px !important;
        line-height: 30px;
    }

    .unt-ticker-nav button {
        width: 24px;
        height: 24px;
    }

    .unt-ticker-nav button svg {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .unt-ticker-label-text {
        display: none;
    }

    .unt-ticker-label {
        padding: 6px 10px;
    }

    .unt-ticker-nav {
        display: none;
    }

    .unt-ticker-content {
        margin: 0 10px;
    }
}
