/**
 * نوار اطلاع‌رسانی بالای صفحه
 * @package LZTheme_V2
 */

/* نوار اطلاع‌رسانی */
.lz-notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    animation: slideDown 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* انیمیشن ورود */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* انیمیشن خروج */
.lz-notification-banner.hiding {
    animation: slideUp 0.5s ease-out forwards;
}

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

/* آیکون */
.lz-notification-banner .notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.lz-notification-banner .notification-icon svg {
    width: 100%;
    height: 100%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* متن */
.lz-notification-banner .notification-text {
    flex: 1;
    line-height: 1.5;
}

/* دکمه بستن */
.lz-notification-banner .notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lz-notification-banner .notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lz-notification-banner .notification-close svg {
    width: 16px;
    height: 16px;
}

/* جبران فضای نوار برای محتوای صفحه */
body.has-notification-banner {
    padding-top: 60px;
}

/* موبایل */
@media (max-width: 768px) {
    .lz-notification-banner {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .lz-notification-banner .notification-icon {
        width: 20px;
        height: 20px;
    }
    
    .lz-notification-banner .notification-close {
        width: 26px;
        height: 26px;
    }
    
    body.has-notification-banner {
        padding-top: 50px;
    }
}

/* تبلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .lz-notification-banner {
        font-size: 14px;
    }
}

