/**
 * News Website Pro - Notifications Styles
 */

.nwp-notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nwp-notification-banner.nwp-notification-visible {
    transform: translateY(0);
}

.nwp-notification-banner.nwp-notification-hiding {
    transform: translateY(-100%);
}

.nwp-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.nwp-notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.nwp-notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nwp-notification-text strong {
    font-size: 14px;
    font-weight: 600;
}

.nwp-notification-text span {
    font-size: 13px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.nwp-notification-link {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.nwp-notification-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.nwp-notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.nwp-notification-close:hover {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nwp-notification-content {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .nwp-notification-text span {
        display: none;
    }
    
    .nwp-notification-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* WordPress admin bar adjustment */
.admin-bar .nwp-notification-banner {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .nwp-notification-banner {
        top: 46px;
    }
}
