@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali&display=swap');

.bnt-ticker-wrap {
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
    font-family: 'Noto Serif Bengali', sans-serif;
    height: 40px;
    position: relative;
    border-radius: 2px;
}

.bnt-ticker-title {
    background: #d30000;
    color: #fff;
    padding: 8px 12px;
    font-weight: bold;
    white-space: nowrap;
    font-family: 'Noto Serif Bengali', sans-serif;
    min-width: 80px;
    text-align: center;
    z-index: 2;
    position: relative;
    border-radius: 2px 0 0 2px;
}

.bnt-ticker {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.bnt-items {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    position: absolute;
    left: 100%;
}

.bnt-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    color: #fff;
    font-size: 16px;
    font-family: 'Noto Serif Bengali', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.bnt-item a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.bnt-item a:hover {
    color: #ffcc00;
}

.bnt-item img {
    height: 16px;
    width: 16px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ⭐ Smooth continuous scrolling animation */
@keyframes scroll-left {
    0% { 
        transform: translateX(0%); 
    }
    100% { 
        transform: translateX(-100%); 
    }
}

/* ⭐ Speed variations */
.bnt-items.speed-very-fast {
    animation-duration: 10s;
}

.bnt-items.speed-fast {
    animation-duration: 20s;
}

.bnt-items.speed-medium {
    animation-duration: 30s;
}

.bnt-items.speed-slow {
    animation-duration: 45s;
}

.bnt-items.speed-very-slow {
    animation-duration: 60s;
}

/* ⭐ Loading state */
.bnt-ticker-wrap.loading .bnt-items {
    animation-play-state: paused;
}

.bnt-ticker-wrap.loading::after {
    content: "Loading news...";
    position: absolute;
    left: 100px;
    color: #fff;
    font-size: 14px;
    animation: pulse 1s infinite;
}

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

/* Responsive tweaks */
@media (max-width: 768px) {
    .bnt-item {
        font-size: 14px;
        margin-right: 30px;
    }
    .bnt-ticker-title {
        padding: 6px 8px;
        font-size: 14px;
        min-width: 60px;
    }
    .bnt-ticker-wrap {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .bnt-item {
        font-size: 13px;
        margin-right: 25px;
    }
    .bnt-ticker-title {
        padding: 5px 6px;
        font-size: 12px;
        min-width: 50px;
    }
    .bnt-ticker-wrap {
        height: 32px;
    }
}

/* ⭐ Dark mode support */
@media (prefers-color-scheme: dark) {
    .bnt-ticker-wrap {
        background: #1a1a1a;
        border: 1px solid #333;
    }
    
    .bnt-ticker-title {
        background: #cc0000;
    }
}

/* ⭐ Print styles */
@media print {
    .bnt-ticker-wrap {
        display: none;
    }
}

/* Ensure smooth animation */
.bnt-items {
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

/* ⭐ Pause indicator */
.bnt-ticker-wrap.paused::before {
    content: "⏸";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffcc00;
    font-size: 12px;
    z-index: 10;
}
