/**
 * PG News Ticker - Frontend Styles
 */

.pg-news-ticker-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    font-family: inherit;
    line-height: 1.4;
    margin-bottom: 20px;
}

.pg-news-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.pg-news-ticker-wrapper[data-direction="left"] .pg-news-ticker-content {
    animation-name: scrollLeft;
}

.pg-news-ticker-wrapper[data-direction="right"] .pg-news-ticker-content {
    animation-name: scrollRight;
}

.pg-news-item {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    line-height: 1;
}

.pg-news-item * {
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
}

.pg-news-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.pg-news-item a {
    color: inherit;
    text-decoration: underline;
    display: inline;
}

.pg-news-item a:hover {
    text-decoration: none;
}

.pg-news-item strong {
    font-weight: 700;
    display: inline;
}

.pg-news-item em {
    font-style: italic;
    display: inline;
}

.pg-news-item p {
    display: inline;
    margin: 0;
    padding: 0;
}

.pg-news-separator {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    opacity: 0.6;
    line-height: 1;
}

/* Animations */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

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

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .pg-news-item {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .pg-news-item {
        font-size: 12px;
        padding: 0 8px;
    }
}
