/* ============================================
   Alert Banner - Theme Styles
   ============================================ */

.alert-banner {
    display: none;
    position: fixed;
    top: 33.33vh;
    left: 0;
    width: 100%;
    z-index: 29; /* below header z-30 */
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
}

.alert-banner--closing {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ---- Information theme (blue/white, promotional) ---- */
.alert-banner--information {
    background-color: rgba(224, 242, 254, 0.7);
    color: #0c4a6e;
}

.alert-banner--information .alert-banner__link {
    color: #0369a1;
}

.alert-banner--information .alert-banner__btn {
    background-color: #0369a1;
    color: #ffffff;
}

.alert-banner--information .alert-banner__btn:hover {
    background-color: #075985;
}

.alert-banner--information .alert-banner__close {
    color: #0c4a6e;
}

/* ---- Warning theme (yellow, attention-grabbing) ---- */
.alert-banner--warning {
    background-color: rgba(253, 224, 71, 0.7);
    color: #422006;
}

.alert-banner--warning .alert-banner__link {
    color: #854d0e;
}

.alert-banner--warning .alert-banner__btn {
    background-color: #422006;
    color: #fde047;
}

.alert-banner--warning .alert-banner__btn:hover {
    background-color: #341a04;
}

.alert-banner--warning .alert-banner__close {
    color: #422006;
}

.alert-banner--warning .alert-banner__description {
    animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ---- Other theme (neutral/grey) ---- */
.alert-banner--other {
    background-color: rgba(245, 245, 245, 0.7);
    color: #404040;
}

.alert-banner--other .alert-banner__link {
    color: #525252;
}

.alert-banner--other .alert-banner__btn {
    background-color: #404040;
    color: #ffffff;
}

.alert-banner--other .alert-banner__btn:hover {
    background-color: #2d2d2d;
}

.alert-banner--other .alert-banner__close {
    color: #404040;
}

/* ============================================
   Social Media Icon (inside link button)
   ============================================ */

.alert-banner__btn {
    flex-shrink: 0;
    width: auto;
}

.alert-banner__social-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.alert-banner__social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
