/* Top announcement banner */

.announcement-banner {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: #fff;
    padding: 0.625rem 1rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
    /* Animation properties */
    max-height: 100px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.3s ease-out, opacity 0.25s ease-out, padding 0.3s ease-out;
}

.announcement-banner.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.announcement-banner__link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.announcement-banner__link:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.announcement-banner__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.announcement-banner__text {
    padding-right: 2rem;
}

.announcement-banner__dismiss {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    font-size: 1.25rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-banner__dismiss:hover {
    color: #fff;
}

/* Offset hamburger menu when banner is visible */
.announcement-banner:not(.hidden) ~ mm-burger {
    top: 100px;
    transition: top 0.3s ease-out;
}

/* ========== MOBILE ========== */
@media (max-width: 640px) {
    .announcement-banner {
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .announcement-banner__icon {
        width: 16px;
        height: 16px;
    }

    .announcement-banner__text {
        padding-right: 0;
    }

    .announcement-banner:not(.hidden) ~ mm-burger {
        top: 70px;
    }
}
