/* Unread Messages Banner Styles */

.unread-banner {
    position: fixed;
    top: 56px; /* Below navbar */
    left: 0;
    right: 0;
    z-index: 1020;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 12px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.5);
    animation: banner-slide-down 0.4s ease-out, banner-glow 2s ease-in-out infinite;
}
.unread-banner.show {
    display: flex;
}
.unread-banner:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.6);
}
.unread-banner-icon {
    font-size: 1.4rem;
    animation: banner-bell 1s infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}
.unread-banner-text {
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.unread-banner-action {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.unread-banner-action:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}
.unread-banner-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}
.unread-banner-close:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) rotate(90deg);
}
@keyframes banner-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes banner-bell {
    0%, 100% { transform: rotate(0) scale(1); }
    10% { transform: rotate(15deg) scale(1.1); }
    20% { transform: rotate(-15deg) scale(1.1); }
    30% { transform: rotate(10deg) scale(1.05); }
    40% { transform: rotate(-10deg) scale(1.05); }
    50%, 100% { transform: rotate(0) scale(1); }
}
@keyframes banner-glow {
    0%, 100% { box-shadow: 0 6px 20px rgba(238, 90, 36, 0.5); }
    50% { box-shadow: 0 6px 30px rgba(238, 90, 36, 0.7), 0 0 40px rgba(255, 107, 107, 0.3); }
}

/* Mobile responsive for banner */
@media (max-width: 768px) {
    .unread-banner {
        top: 56px;
        padding: 10px 45px 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .unread-banner-icon {
        font-size: 1.2rem;
    }
    .unread-banner-text {
        font-size: 0.9rem;
        flex: 1;
        text-align: left;
    }
    .unread-banner-action {
        font-size: 0.8rem;
        padding: 4px 14px;
    }
    .unread-banner-close {
        right: 10px;
        width: 26px;
        height: 26px;
    }
}

/* Adjust body padding when banner is visible */
body.has-unread-banner {
    padding-top: 52px;
}
@media (max-width: 768px) {
    body.has-unread-banner {
        padding-top: 48px;
    }
}

/* Dark mode for banner - vibrant colors maintained */
[data-theme="dark"] .unread-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}
[data-theme="dark"] .unread-banner:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}
