/* ============================================================
   macOS Desktop Theme - Notification Center
   ============================================================ */

.notification-center {
  position: fixed;
  top: calc(var(--macos-statusbar-height) + 12px);
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: 380px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

.notification-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.notification-item.show::before {
  transform: scaleX(1);
}

.notification-item.show {
  transform: translateX(0);
  opacity: 1;
  animation: notificationBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification-item.hide {
  transform: translateX(120%);
  opacity: 0;
}

@keyframes notificationBounce {
  0% { transform: translateX(120%); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.notification-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.notification-app-name {
  font-size: 12px;
  font-weight: 600;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notification-time {
  font-size: 11px;
  color: #999;
}

.notification-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.notification-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.2s;
  cursor: pointer;
  margin-top: 2px;
}

.notification-close-btn:hover {
  background: #ff5f57;
  color: #fff;
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .notification-item {
    min-width: auto;
    max-width: calc(100vw - 32px);
  }
}
