@charset "utf-8";

/*!
 * Modern Clean Notice Ticker CSS
 * Refactored for Flexbox Topbar & Mobile View
 */

.ticker-container {
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ticker-container .ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 30px;
    position: relative;
}

.ticker-container .ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.45s ease-in-out, opacity 0.45s ease-in-out;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

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

.ticker-container .ticker-item.prev {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.ticker-container .ticker-item a {
    display: inline-block;
    max-width: 100%;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    font-weight: bold;
    color: #666666;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.ticker-container .ticker-item a:hover {
    color: #2b7bf5;
    text-decoration: underline;
}

/* Mobile specific styling */
.ticker-container-mobile {
    display: block !important;
    width: 100%;
    height: 30px;
    line-height: 30px;
}

.ticker-container-mobile .ticker-item a {
    color: var(--op-text, #334155);
    font-size: 12.5px;
    font-weight: 500;
}

.ticker-container-mobile .ticker-item a:hover {
    color: var(--op-primary, #3dbf62);
}

/* Dark mode compatibility */
html.theme-dark .ticker-container .ticker-item a,
html.theme-dark .ticker-container-mobile .ticker-item a,
body.theme-dark .ticker-container .ticker-item a,
body.dark-mode .ticker-container .ticker-item a,
.is-dark .ticker-container .ticker-item a {
    color: #e2e8f0;
}

html.theme-dark .ticker-container .ticker-item a:hover,
html.theme-dark .ticker-container-mobile .ticker-item a:hover,
body.theme-dark .ticker-container .ticker-item a:hover,
body.dark-mode .ticker-container .ticker-item a:hover,
.is-dark .ticker-container .ticker-item a:hover {
    color: #4ade80;
}