/* =========================================================
   ZakiChat Updates / Notifications
   Responsive presentation layer.
   Notification data and realtime logic remain untouched.
   ========================================================= */

.notifications-page {
  min-height: 100vh;
  padding-bottom: 104px;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(74, 144, 226, 0.12),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(120, 80, 220, 0.10),
      transparent 32%
    );
}

.notifications-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

/* ---------- Header ---------- */

.notifications-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.notifications-heading {
  min-width: 0;
}

.notifications-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.58;
}

.notifications-header h1 {
  margin: 0;
  font-size: clamp(29px, 5vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.8px;
}

.notifications-header p {
  max-width: 560px;
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.68;
}

/* ---------- Action ---------- */

.notifications-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;

  min-height: 42px;
  padding: 10px 16px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.055);
  color: inherit;

  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.notifications-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.notifications-action:active {
  transform: translateY(0);
}

.notifications-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.notifications-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Notification list ---------- */

.notifications-list {
  display: grid;
  gap: 11px;
}

/* ---------- Notification cards ---------- */

.notification-card {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 14px;

  width: 100%;
  min-width: 0;
  padding: 16px;

  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.035);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.055);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.notification-card.is-unread {
  background: rgba(70, 170, 255, 0.085);
  border-color: rgba(70, 170, 255, 0.21);
}

.notification-card[role="button"] {
  cursor: pointer;
}

.notification-card[role="button"]:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.notification-card[role="button"]:active {
  transform: translateY(0);
}

.notification-card[role="button"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------- Icon ---------- */

.notification-card-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;

  background: rgba(70, 170, 255, 0.13);

  font-size: 18px;
  line-height: 1;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

/* ---------- Content ---------- */

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

.notification-card-content h2 {
  margin: 0 0 5px;

  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;

  overflow-wrap: anywhere;
}

.notification-card-content p {
  margin: 0 0 8px;

  font-size: 13px;
  line-height: 1.55;
  opacity: 0.76;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.notification-card-content time {
  display: inline-block;

  font-size: 11px;
  line-height: 1.3;

  opacity: 0.5;
}

/* ---------- Empty state ---------- */

.notifications-empty {
  display: grid;
  justify-items: center;

  padding: 76px 20px 90px;

  text-align: center;
}

.notifications-empty-icon {
  display: grid;
  place-items: center;

  width: 78px;
  height: 78px;
  margin-bottom: 18px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.045);

  font-size: 32px;

  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.08);
}

.notifications-empty h2 {
  margin: 0 0 8px;

  font-size: 21px;
  line-height: 1.25;
}

.notifications-empty p {
  max-width: 360px;
  margin: 0;

  font-size: 13px;
  line-height: 1.55;

  opacity: 0.62;
}

/* ---------- Error ---------- */

.notifications-error {
  margin-top: 18px;
  padding: 14px 16px;

  border: 1px solid rgba(255, 90, 90, 0.2);
  border-radius: 14px;

  background: rgba(255, 70, 70, 0.07);

  font-size: 13px;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

/* ---------- Bottom navigation ---------- */

.notifications-page .bottom-nav {
  z-index: 50;
}

/* ---------- Tablet ---------- */

@media (max-width: 700px) {
  .notifications-shell {
    padding: 22px 14px 32px;
  }

  .notifications-header {
    gap: 14px;
  }

  .notifications-action {
    min-height: 40px;
    padding: 9px 13px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 560px) {
  .notifications-page {
    padding-bottom: 100px;
  }

  .notifications-shell {
    padding: 18px 12px 28px;
  }

  .notifications-header {
    display: block;
    margin-bottom: 18px;
  }

  .notifications-header h1 {
    font-size: 30px;
  }

  .notifications-header p {
    margin-top: 7px;
    font-size: 13px;
  }

  .notifications-action {
    width: 100%;
    margin-top: 15px;
  }

  .notification-card {
    gap: 11px;
    padding: 13px;
    border-radius: 15px;
  }

  .notification-card-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 16px;
  }

  .notification-card-content h2 {
    font-size: 14px;
  }

  .notification-card-content p {
    font-size: 12.5px;
  }

  .notifications-empty {
    padding: 60px 14px 75px;
  }
}

/* ---------- Very small screens ---------- */

@media (max-width: 360px) {
  .notifications-shell {
    padding-left: 9px;
    padding-right: 9px;
  }

  .notification-card {
    gap: 9px;
    padding: 11px;
  }

  .notification-card-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .notifications-action,
  .notification-card {
    transition: none;
  }

  .notification-card[role="button"]:hover,
  .notifications-action:hover {
    transform: none;
  }
}

/* =========================================================
   STANDALONE NOTIFICATION CENTER
   ========================================================= */

.notifications-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: fit-content;
  margin-bottom: 16px;

  color: inherit;
  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  opacity: 0.72;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.notifications-back:hover {
  opacity: 1;
  transform: translateX(-2px);
}

.notifications-back:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 6px;
}
