/* ============================================
   Flavour Developer News Ticker - Frontend
   ============================================ */

.fdnt-ticker-wrap {
    position: relative;
    overflow: hidden;
    line-height: 1;
}
.fdnt-ticker-wrap * {
    box-sizing: border-box;
}

.fdnt-ticker-inner {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Label */
.fdnt-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    position: relative;
    height: 100%;
}
.fdnt-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid inherit;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Ticker content area */
.fdnt-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

/* Track */
.fdnt-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
}

/* Scroll animation */
.fdnt-ticker-wrap[data-animation="scroll"] .fdnt-ticker-track {
    will-change: transform;
}

/* Fade / Slide / Typewriter animation */
.fdnt-ticker-wrap[data-animation="fade"] .fdnt-ticker-track,
.fdnt-ticker-wrap[data-animation="slide"] .fdnt-ticker-track,
.fdnt-ticker-wrap[data-animation="typewriter"] .fdnt-ticker-track {
    width: 100%;
}
.fdnt-ticker-item-single {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

/* Divider */
.fdnt-divider {
    display: inline-block;
    opacity: 0.7;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
}

/* News item */
.fdnt-news-item {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}
.fdnt-news-item a {
    transition: color 0.2s ease;
}

/* Navigation */
.fdnt-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 0 10px;
    z-index: 2;
}
.fdnt-nav button {
    border: 1px solid #ddd;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: inherit;
    line-height: 1;
    transition: all 0.2s;
    padding: 0;
}
.fdnt-nav button:hover {
    border-color: #999;
}

/* Fixed position styles */
.fdnt-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.fdnt-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Pause indicator */
.fdnt-ticker-wrap.fdnt-paused .fdnt-ticker-track {
    animation-play-state: paused !important;
}

/* Typewriter cursor */
.fdnt-typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: currentColor;
    margin-left: 2px;
    animation: fdnt-blink 0.7s infinite;
    vertical-align: text-bottom;
}
@keyframes fdnt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Gradient fade edges */
.fdnt-ticker-content::before,
.fdnt-ticker-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 1;
    pointer-events: none;
}
.fdnt-ticker-content::before {
    left: 0;
    background: linear-gradient(to right, var(--fdnt-bg, #f5f5f5), transparent);
}
.fdnt-ticker-content::after {
    right: 0;
    background: linear-gradient(to left, var(--fdnt-bg, #f5f5f5), transparent);
}

/* Responsive */
@media (max-width: 768px) {
    .fdnt-label {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
    .fdnt-ticker-content {
        padding: 0 8px;
    }
}
