/* --- ANNOUNCEMENT BANNER SECTION --- */

.announcement-banner-container {
    position: relative;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    max-height: 150px;
    animation: border-flash 6s ease-in-out infinite;
}

/* Pulsing background overlay for slow motion flash */
.announcement-banner-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1f1401 0%, #09090b 100%);
    opacity: 0;
    z-index: 1;
    animation: slow-flash 6s ease-in-out infinite;
}

@keyframes slow-flash {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes border-flash {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.08);
    }
    50% {
        border-color: rgba(255, 204, 0, 0.3);
        box-shadow: 0 4px 20px rgba(255, 204, 0, 0.05);
    }
}

/* Subtly animated pulse glow to attract premium attention */
.announcement-banner-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.4), transparent);
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        opacity: 0.3;
        transform: scaleX(0.9);
    }
    100% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

.announcement-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 5;
}

.announcement-banner-body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
}

/* Badge styled as a glowing pill */
.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: #FFCC00;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Small pulsing dot in the badge */
.pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: #FFCC00;
    border-radius: 50%;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #FFCC00;
    animation: indicator-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes indicator-ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.announcement-message {
    font-size: 0.95rem;
    color: #e4e4e7;
    line-height: 1.5;
    font-weight: 400;
}

.date-highlight {
    color: #FFCC00;
    font-weight: 600;
    border-bottom: 1px dashed rgba(255, 204, 0, 0.5);
    padding-bottom: 1px;
}

.announcement-banner-close {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.announcement-banner-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Smooth collapse animation on dismiss */
.announcement-banner-container.collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Responsiveness */
@media (max-width: 768px) {
    .announcement-banner-container {
        padding: 1.25rem 1.25rem;
        max-height: 300px;
    }
    .announcement-banner-content {
        gap: 0.75rem;
    }
    .announcement-banner-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .announcement-message {
        font-size: 0.875rem;
    }
}
