/* Announcement Banner Styles */
.announcement-banner {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.announcement-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0.75rem 3rem 0.75rem 1rem;
}

.announcement-slider {
    overflow: hidden;
    white-space: nowrap;
    animation: scroll-announcements 30s linear infinite;
}

.announcement-slider:hover {
    animation-play-state: paused;
}

.announcement-item {
    display: inline-block;
    padding: 0 3rem;
    animation: fade-in 0.5s ease-in;
}

.announcement-item:not(:last-child)::after {
    content: '•';
    margin-left: 3rem;
    opacity: 0.5;
}

.announcement-icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.announcement-title {
    font-weight: 600;
    margin-right: 0.5rem;
}

.announcement-message {
    opacity: 0.95;
}

.announcement-link {
    color: #ffffff;
    text-decoration: underline;
    margin-left: 0.5rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.announcement-link:hover {
    opacity: 0.8;
    color: #ffffff;
}

.announcement-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Type-specific colors */
.announcement-banner.type-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.announcement-banner.type-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
}

.announcement-banner.type-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.announcement-banner.type-promotion {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.announcement-banner.type-platform {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Priority indicators */
.announcement-item.priority-urgent {
    animation: pulse 2s ease-in-out infinite;
}

.announcement-item.priority-urgent .announcement-icon {
    animation: shake 0.5s ease-in-out infinite;
}

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

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .announcement-container {
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    }
    
    .announcement-item {
        padding: 0 2rem;
        font-size: 0.9rem;
    }
    
    .announcement-item:not(:last-child)::after {
        margin-left: 2rem;
    }
    
    .announcement-title {
        display: block;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .announcement-item {
        padding: 0 1.5rem;
        font-size: 0.85rem;
    }
    
    .announcement-link {
        display: block;
        margin-top: 0.25rem;
        margin-left: 0;
    }
}

/* Print styles */
@media print {
    .announcement-banner {
        display: none !important;
    }
}
