/* Advanced Newsticker - Frontend Styles */

.adv-newsticker {
    display: none; /* Hidden by default, shown by JS after positioning */
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.adv-newsticker.adv-newsticker-positioned {
    display: block;
}

.adv-newsticker-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 5px;
    overflow: hidden;
}

.adv-newsticker-icon {
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.adv-newsticker-icon .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.adv-newsticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.adv-newsticker-items {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    will-change: transform;
}

.adv-newsticker-items.paused {
    animation-play-state: paused;
}

.adv-newsticker-item {
    display: inline-flex;
    align-items: center;
    padding-right: 50px;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
}

.adv-newsticker-item a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.adv-newsticker-item a:hover {
    text-decoration: underline;
}

.adv-newsticker-separator {
    margin: 0 10px;
    opacity: 0.7;
}

/* Animation */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .adv-newsticker-container {
        padding: 10px 15px;
    }
    
    .adv-newsticker-icon {
        margin-right: 10px;
    }
    
    .adv-newsticker-icon .dashicons {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
    
    .adv-newsticker-item {
        font-size: 13px;
        padding-right: 30px;
    }
}

@media (max-width: 480px) {
    .adv-newsticker-container {
        padding: 8px 10px;
    }
    
    .adv-newsticker-icon {
        margin-right: 8px;
    }
    
    .adv-newsticker-item {
        font-size: 12px;
        padding-right: 20px;
    }
}
