/**
 * Marquee Component Styles
 * Used in: _Header.cshtml (between top bar and navbar)
 * Displays scrolling announcements, event titles, local time
 */

.marquee-container {
    background: linear-gradient(135deg, var(--pearl-primary) 0%, var(--pearl-primary-dark) 100%);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

/* Fixed time display on the right */
.marquee-time {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--pearl-white);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.marquee-time i {
    margin-right: 6px;
}

/* Scrolling content area */
.marquee-content {
    display: inline-flex;
    animation: marquee-scroll 30s linear infinite;
    padding-right: 150px; /* Space for time display */
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Individual marquee items */
.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 24px;
    font-size: 0.8rem;
    color: var(--pearl-white);
}

.marquee-item a {
    color: var(--pearl-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.marquee-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Separator between items */
.marquee-separator {
    display: inline-flex;
    align-items: center;
    color: var(--pearl-white);
    font-size: 0.6rem;
    opacity: 0.5;
}

/* Item type icons */
.marquee-item .item-icon {
    margin-right: 8px;
    color: var(--pearl-primary-light);
}

.marquee-item.event-item .item-icon {
    color: #90EE90; /* Light green */
}

.marquee-item.notice-item .item-icon {
    color: #FFD700; /* Gold */
}

/* Keyframes for scrolling animation */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive: hide on small screens */
@media (max-width: 991.98px) {
    .marquee-container {
        display: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }
}
