/**
 * Notification XYZ - Social Proof Styles
 */

/* Kontener główny powiadomienia */
.nxyz-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    max-width: 340px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateX(-120%);
    pointer-events: none;
}

.nxyz-notification.nxyz-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nxyz-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Awatar */
.nxyz-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nxyz-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Treść powiadomienia */
.nxyz-content {
    flex: 1;
    min-width: 0;
}

.nxyz-message {
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nxyz-name {
    font-weight: 700;
    color: #1a1a2e;
}

.nxyz-action {
    color: #4a5568;
}

.nxyz-product {
    font-weight: 600;
    color: #667eea;
}

.nxyz-time {
    font-size: 12px;
    color: #a0aec0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Przycisk zamknięcia */
.nxyz-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
    line-height: 1;
}

.nxyz-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.nxyz-close::before,
.nxyz-close::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #718096;
    border-radius: 1px;
}

.nxyz-close::before {
    transform: rotate(45deg);
}

.nxyz-close::after {
    transform: rotate(-45deg);
}

/* Ikona weryfikacji */
.nxyz-verified {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: #48bb78;
}

.nxyz-verified svg {
    width: 14px;
    height: 14px;
}

/* Animacje */
@keyframes nxyz-slide-in {
    from {
        opacity: 0;
        transform: translateX(-120%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes nxyz-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-120%);
    }
}

.nxyz-notification.nxyz-entering {
    animation: nxyz-slide-in 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.nxyz-notification.nxyz-leaving {
    animation: nxyz-slide-out 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

/* Ukrywanie na urządzeniach mobilnych */
@media (max-width: 768px) {
    .nxyz-notification {
        display: none !important;
    }
}

/* Mały ekran desktop - zmniejszenie rozmiaru */
@media (max-width: 1024px) and (min-width: 769px) {
    .nxyz-notification {
        max-width: 300px;
        padding: 12px 16px;
        bottom: 15px;
        left: 15px;
    }
    
    .nxyz-avatar,
    .nxyz-avatar-placeholder {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .nxyz-message {
        font-size: 13px;
    }
    
    .nxyz-time {
        font-size: 11px;
    }
}
