/* ========================================
   Notifications System Styles
   ======================================== */

:root {
    --notification-banner-h: auto;
    --notification-z: 9999;
}

/* === Common Styles === */
.announcement-hidden {
    display: none !important;
}

.announcement-close {
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    transform: scale(1.1);
}

/* === Banner Styles === */
.announcement-banner {
    width: 100%;
    padding: 12px 20px;
    position: relative;
    z-index: var(--notification-z);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.announcement-banner.style-info { background: #e0f2fe; color: #0369a1; border-bottom: 1px solid #bae6fd; }
.announcement-banner.style-warning { background: #fefce8; color: #a16207; border-bottom: 1px solid #fef08a; }
.announcement-banner.style-success { background: #f0fdf4; color: #15803d; border-bottom: 1px solid #bbf7d0; }
.announcement-banner.style-danger { background: #fef2f2; color: #b91c1c; border-bottom: 1px solid #fecaca; }

.announcement-banner .content {
    flex: 1;
    max-width: 1200px;
    font-size: 0.95rem;
    font-weight: 500;
}

.announcement-banner .content p { margin: 0; }

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* === Popup Styles === */
.announcement-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: calc(var(--notification-z) + 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.announcement-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.announcement-popup {
    background: #fff;
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.announcement-popup-overlay.active .announcement-popup {
    transform: scale(1);
}

.popup-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.6;
}

.popup-footer {
    padding: 15px 25px;
    background: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.btn-dismiss {
    background: var(--clr-primary, #5616eb);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dismiss:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 22, 235, 0.3);
}

/* Style variants for popup icon/header */
.style-info .popup-header i { color: #0369a1; }
.style-warning .popup-header i { color: #a16207; }
.style-success .popup-header i { color: #15803d; }
.style-danger .popup-header i { color: #b91c1c; }

/* Desktop adjustments */
@media (min-width: 768px) {
    .announcement-banner {
        padding: 12px 40px;
    }
}
