/**
 * Archihub PWA Update Notification Styles
 *
 * Styles for the service worker update notification toast.
 *
 * @version 1.0.1
 */

/* Animation for slide-in effect */
@keyframes archihub-pwa-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Main notification container */
#archihub-pwa-update-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0C5ADB;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    z-index: 999999;
    max-width: 320px;
    animation: archihub-pwa-slideIn 0.3s ease-out;
}

/* Notification content wrapper */
#archihub-pwa-update-notification .pwa-notification-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header row with title and dismiss button */
#archihub-pwa-update-notification .pwa-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Title text */
#archihub-pwa-update-notification .pwa-notification-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

/* Description text */
#archihub-pwa-update-notification .pwa-notification-text {
    margin: 4px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Dismiss (X) button */
#archihub-pwa-update-notification .pwa-dismiss-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 0 8px;
    line-height: 1;
    transition: opacity 0.2s;
}

#archihub-pwa-update-notification .pwa-dismiss-btn:hover {
    opacity: 0.8;
}

/* Button row */
#archihub-pwa-update-notification .pwa-notification-buttons {
    display: flex;
    gap: 8px;
}

/* Primary button (Refresh Now) */
#archihub-pwa-update-notification .pwa-btn-primary {
    flex: 1;
    background: white;
    color: #0C5ADB;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

#archihub-pwa-update-notification .pwa-btn-primary:hover {
    background: #f0f0f0;
}

/* Secondary button (Later) */
#archihub-pwa-update-notification .pwa-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

#archihub-pwa-update-notification .pwa-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Mobile responsiveness */
@media (max-width: 400px) {
    #archihub-pwa-update-notification {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}
