/* ═══════════════════════════════════════════════════
   Announcement Banner Component — McDave Consult
   Styled to match reference: solid color bg, white text
   ═══════════════════════════════════════════════════ */

.announcement-banner-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    padding: 20px;
}

.announcement-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    max-width: 500px;
    padding: 20px 20px 22px;
    border-radius: 16px;
    animation: annModalFade 0.3s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    color: #fff;
}

@keyframes annModalFade {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.announcement-banner.ann-closing {
    animation: annModalClose 0.25s ease forwards;
}

@keyframes annModalClose {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.95); }
}

/* Banner Types — Solid gradient backgrounds */
.announcement-banner--info {
    background: linear-gradient(135deg, #4488ff 0%, #5ba3ff 100%);
}

.announcement-banner--success {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.announcement-banner--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.announcement-banner--critical {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

/* Icon — circled info style */
.ann-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1;
    backdrop-filter: blur(4px);
}

/* Body */
.ann-banner-body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.ann-banner-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #fff;
}

.ann-banner-msg {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.92;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #fff;
}

.ann-banner-msg a {
    text-decoration: underline;
    font-weight: 600;
    color: #fff;
}
.ann-banner-msg a:hover {
    opacity: 0.8;
}

/* Close button — circular translucent */
.ann-banner-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
    backdrop-filter: blur(4px);
}
.ann-banner-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .announcement-banner-wrap {
        padding: 16px;
    }

    .announcement-banner {
        max-width: 100%;
        padding: 16px 16px 18px;
        gap: 12px;
        border-radius: 14px;
    }

    .ann-banner-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 1rem;
    }

    .ann-banner-title {
        font-size: 0.92rem;
    }

    .ann-banner-msg {
        font-size: 0.84rem;
        line-height: 1.6;
    }

    .ann-banner-close {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .announcement-banner-wrap {
        padding: 12px;
    }

    .announcement-banner {
        max-width: 100%;
        padding: 14px 14px 16px;
        gap: 10px;
        border-radius: 12px;
    }

    .ann-banner-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .ann-banner-title {
        font-size: 0.88rem;
    }

    .ann-banner-msg {
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .ann-banner-close {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }
}

/* Multiple banners stack */
.announcement-banner-wrap .announcement-banner + .announcement-banner {
    margin-top: 8px;
}
