/* Newsticker Plugin Styles */

.newsticker-wrapper {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
	margin-bottom:20px;
}

.newsticker-wrapper::before {
    content: "📢";
    position: absolute;
    left: 10px;
    z-index: 2;
    background: inherit;
    padding-right: 10px;
    font-size: 16px;
}

.newsticker-content {
    display: flex;
    animation: scroll-left linear infinite;
    padding-left: 50px; /* Space for the icon */
}

.newsticker-item {
    padding-right: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

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

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

.newsticker-title {
    font-weight: bold;
}

.newsticker-text {
    font-weight: normal;
}

/*
.newsticker-empty {
    height: 40px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.newsticker-empty::after {
    content: "No current news items";
}
*/

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

/* Responsive design */
@media (max-width: 768px) {
    .newsticker-wrapper {
        font-size: 12px;
    }
    
    .newsticker-wrapper::before {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .newsticker-wrapper {
        font-size: 11px;
    }
    
    .newsticker-content {
        padding-left: 40px;
    }
    
    .newsticker-wrapper::before {
        left: 8px;
        font-size: 12px;
    }
}

/* Pause animation on hover */
.newsticker-wrapper:hover .newsticker-content {
    animation-play-state: paused;
}

/* Alternative styles for different themes */
.newsticker-breaking {
    background: #ff4444 !important;
    color: white !important;
    border-color: #cc3333;
}

.newsticker-breaking .newsticker-item a {
    color: white;
}

.newsticker-info {
    background: #2196f3 !important;
    color: white !important;
    border-color: #1976d2;
}

.newsticker-info .newsticker-item a {
    color: white;
}

.newsticker-success {
    background: #4caf50 !important;
    color: white !important;
    border-color: #388e3c;
}

.newsticker-success .newsticker-item a {
    color: white;
}