/* Bond Priori - Notification Styles (Phase 10) */

/* ===== Permission Banner ===== */
.notification-banner {
  display: none;
  position: fixed;
  bottom: var(--space-4, 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  align-items: center;
  gap: var(--space-3, 12px);
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.notification-banner-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dusty-taupe, #AF8F73);
}

.notification-banner-icon svg {
  width: 24px;
  height: 24px;
}

.notification-banner-text {
  flex: 1;
  font-size: var(--font-size-sm, 14px);
  color: var(--color-alabaster, #DEDFE1);
  line-height: 1.4;
}

.notification-banner-actions {
  display: flex;
  gap: var(--space-2, 8px);
  flex-shrink: 0;
}

.notification-banner-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: var(--font-size-xs, 12px);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.notification-banner-btn:hover {
  opacity: 0.85;
}

.notification-banner-btn--primary {
  background: linear-gradient(135deg, rgba(175, 143, 115, 0.8), rgba(104, 83, 65, 0.8));
  color: var(--color-alabaster, #DEDFE1);
}

.notification-banner-btn--dismiss {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-warm-grey, #A39A92);
}

/* ===== Foreground Toast ===== */
.notification-toast {
  position: fixed;
  top: 80px;
  right: var(--space-4, 16px);
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3, 12px);
  max-width: 360px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  animation: toastSlideIn 0.3s ease-out;
}

.notification-toast--hiding {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

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

.notification-toast-title {
  display: block;
  font-size: var(--font-size-sm, 14px);
  font-weight: 600;
  color: var(--color-alabaster, #DEDFE1);
  margin-bottom: 2px;
}

.notification-toast-body {
  font-size: var(--font-size-xs, 12px);
  color: var(--color-warm-grey, #A39A92);
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-soft-grey, #8A847D);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.notification-toast-close:hover {
  color: var(--color-alabaster, #DEDFE1);
}

/* ===== Notification Preferences (Profile Page) ===== */
.notification-prefs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.notification-pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2, 8px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-pref-item:last-child {
  border-bottom: none;
}

.notification-pref-label {
  font-size: var(--font-size-sm, 14px);
  color: var(--color-alabaster, #DEDFE1);
}

.notification-pref-desc {
  font-size: var(--font-size-xs, 12px);
  color: var(--color-soft-grey, #8A847D);
  margin-top: 2px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--color-warm-grey, #A39A92);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(175, 143, 115, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--color-dusty-taupe, #AF8F73);
}

/* Quiet hours */
.quiet-hours-row {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  padding: var(--space-2, 8px) 0;
}

.quiet-hours-row label {
  font-size: var(--font-size-sm, 14px);
  color: var(--color-alabaster, #DEDFE1);
  min-width: 80px;
}

.quiet-hours-row input[type="time"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--color-alabaster, #DEDFE1);
  padding: 6px 10px;
  font-size: var(--font-size-sm, 14px);
  font-family: inherit;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .notification-banner {
    bottom: var(--space-3, 12px);
    flex-direction: column;
    text-align: center;
  }

  .notification-toast {
    right: var(--space-2, 8px);
    left: var(--space-2, 8px);
    max-width: none;
    width: auto;
    top: 72px;
  }
}
