/**
 * Announcements Ticker Styles
 * Vertical scrolling animation
 * Takes full height of container
 */

.sm-announcements-ticker {
    background: var(--ticker-bg, #fff8f0);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sm-ticker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--ticker-accent, #f8873b);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-ticker-icon {
    font-size: 16px;
}

.sm-ticker-viewport {
    height: var(--ticker-height, 200px);
    overflow: hidden;
    position: relative;
}

.sm-ticker-track {
    display: flex;
    flex-direction: column;
    animation: ticker-scroll var(--ticker-duration, 20s) linear infinite;
}

.sm-announcements-ticker:hover .sm-ticker-track {
    animation-play-state: paused;
}

.sm-ticker-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-sizing: border-box;
    color: var(--ticker-color, #333);
}

.sm-ticker-item:last-child {
    border-bottom: none;
}

.sm-ticker-date {
    flex-shrink: 0;
    width: 45px;
    padding: 4px 8px;
    background: var(--ticker-accent, #f8873b);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    height: fit-content;
}

.sm-ticker-content {
    flex: 1;
    min-width: 0;
}

.sm-ticker-content strong {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    color: inherit;
}

.sm-ticker-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.sm-ticker-link:hover {
    color: var(--ticker-accent, #f8873b);
}

.sm-ticker-link strong {
    color: inherit;
}

.sm-ticker-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.sm-ticker-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Vertical scroll animation */
@keyframes ticker-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sm-ticker-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .sm-ticker-date {
        width: fit-content;
    }
}
