/* Bildirimler ekranı — mockup notifsv1 */

html.is-mobile-app .notif-panel,
html.kozamia-app-shell .notif-panel,
html.is-mobile-web .notif-panel,
html.is-mobile-app body .notif-panel,
html.kozamia-app-shell body .notif-panel {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  height: 100% !important;
  z-index: 1050 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fdf8f5 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
}

html.is-mobile-app .notif-panel[hidden],
html.kozamia-app-shell .notif-panel[hidden],
html.is-mobile-web .notif-panel[hidden] {
  display: none !important;
}

html.is-mobile-app .notif-app-top,
html.kozamia-app-shell .notif-app-top,
html.is-mobile-web .notif-app-top {
  flex: 0 0 auto;
  padding: calc(0.35rem + env(safe-area-inset-top, 0px)) 0.95rem 0.4rem;
  background: #fdf8f5;
}

html.is-mobile-app .notif-app-brand-row,
html.kozamia-app-shell .notif-app-brand-row,
html.is-mobile-web .notif-app-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

html.is-mobile-app .notif-app-brand,
html.kozamia-app-shell .notif-app-brand,
html.is-mobile-web .notif-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

html.is-mobile-app .notif-app-logo,
html.kozamia-app-shell .notif-app-logo,
html.is-mobile-web .notif-app-logo {
  font-family: var(--kozamia-brand-serif, Georgia, "Times New Roman", serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #6a3d8a;
  text-transform: uppercase;
}

html.is-mobile-app .notif-apk-badge,
html.kozamia-app-shell .notif-apk-badge,
html.is-mobile-web .notif-apk-badge {
  display: none !important;
}

html.is-mobile-app .notif-app-bell,
html.kozamia-app-shell .notif-app-bell,
html.is-mobile-web .notif-app-bell {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6a3d8a;
  display: grid;
  place-items: center;
  padding: 0;
}

html.is-mobile-app .notif-app-bell .material-symbols-outlined,
html.kozamia-app-shell .notif-app-bell .material-symbols-outlined,
html.is-mobile-web .notif-app-bell .material-symbols-outlined {
  font-size: 1.25rem;
  font-variation-settings: "wght" 400;
}

html.is-mobile-app .notif-app-title,
html.kozamia-app-shell .notif-app-title,
html.is-mobile-web .notif-app-title {
  margin: 0.4rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #1c1224;
  line-height: 1.15;
}

html.is-mobile-app .notif-tabs,
html.kozamia-app-shell .notif-tabs,
html.is-mobile-web .notif-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0.12rem;
  border-radius: 0.65rem;
  background: #efe8f1;
  border: 1px solid rgba(106, 61, 138, 0.12);
}

html.is-mobile-app .notif-tab,
html.kozamia-app-shell .notif-tab,
html.is-mobile-web .notif-tab {
  border: 0;
  border-radius: 0.55rem;
  padding: 0.42rem 0.4rem;
  background: transparent;
  color: #3d2a4f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.is-mobile-app .notif-tab.is-active,
html.kozamia-app-shell .notif-tab.is-active,
html.is-mobile-web .notif-tab.is-active {
  background: #6a3d8a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(106, 61, 138, 0.22);
}

html.is-mobile-app .notif-list,
html.kozamia-app-shell .notif-list,
html.is-mobile-web .notif-list {
  flex: 1 1 auto;
  max-height: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.15rem 0 calc(var(--bottom-nav-h, 4rem) + 0.35rem) !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fdf8f5;
}

html.is-mobile-app .notif-item,
html.kozamia-app-shell .notif-item,
html.is-mobile-web .notif-item {
  display: grid !important;
  grid-template-columns: 2.85rem minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 0.75rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.95rem 1.1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(106, 61, 138, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1c1224;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.is-mobile-app .notif-item p,
html.kozamia-app-shell .notif-item p,
html.is-mobile-web .notif-item p,
html.is-mobile-app .notif-item time,
html.kozamia-app-shell .notif-item time,
html.is-mobile-web .notif-item time {
  font-size: inherit !important;
  margin: 0 !important;
  display: revert !important;
}

html.is-mobile-app .notif-item.is-unread,
html.kozamia-app-shell .notif-item.is-unread,
html.is-mobile-web .notif-item.is-unread {
  background: transparent !important;
}

html.is-mobile-app .notif-item.is-unread strong,
html.kozamia-app-shell .notif-item.is-unread strong,
html.is-mobile-web .notif-item.is-unread strong {
  color: inherit !important;
}

html.is-mobile-app .notif-avatar,
html.kozamia-app-shell .notif-avatar,
html.is-mobile-web .notif-avatar {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #c4a484, #6a3d8a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

html.is-mobile-app .notif-avatar img,
html.kozamia-app-shell .notif-avatar img,
html.is-mobile-web .notif-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html.is-mobile-app .notif-body,
html.kozamia-app-shell .notif-body,
html.is-mobile-web .notif-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.15rem;
}

html.is-mobile-app .notif-line,
html.kozamia-app-shell .notif-line,
html.is-mobile-web .notif-line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #1c1224;
  overflow-wrap: anywhere;
}

html.is-mobile-app .notif-user,
html.kozamia-app-shell .notif-user,
html.is-mobile-web .notif-user {
  font-weight: 800;
  color: #121018;
}

html.is-mobile-app .notif-action,
html.kozamia-app-shell .notif-action,
html.is-mobile-web .notif-action {
  font-weight: 500;
  color: #2a1d36;
}

html.is-mobile-app .notif-preview,
html.kozamia-app-shell .notif-preview,
html.is-mobile-web .notif-preview {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #8a7a96;
  overflow-wrap: anywhere;
}

html.is-mobile-app .notif-meta,
html.kozamia-app-shell .notif-meta,
html.is-mobile-web .notif-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  padding-top: 0.2rem;
  flex-shrink: 0;
  min-width: 2.1rem;
}

html.is-mobile-app .notif-time,
html.kozamia-app-shell .notif-time,
html.is-mobile-web .notif-time {
  font-size: 0.78rem !important;
  color: #9a8aa8 !important;
  white-space: nowrap;
  margin: 0 !important;
}

html.is-mobile-app .notif-dot-unread,
html.kozamia-app-shell .notif-dot-unread,
html.is-mobile-web .notif-dot-unread {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6a3d8a;
  flex-shrink: 0;
}

html.is-mobile-app .notif-empty,
html.kozamia-app-shell .notif-empty,
html.is-mobile-web .notif-empty {
  margin: 2.5rem 1.25rem;
  text-align: center;
  color: #8a7a96;
  font-size: 0.95rem;
}

/* Desktop web: keep compact dropdown if not mobile classes */
body:not(.is-mobile-app):not(.kozamia-app-shell):not(.is-mobile-web) .notif-panel {
  /* social-hub defaults */
}

@media (min-width: 900px) {
  html:not(.is-mobile-app):not(.kozamia-app-shell) .notif-panel {
    inset: auto !important;
    top: var(--floating-panel-top, 4.5rem) !important;
    right: 1rem !important;
    left: auto !important;
    bottom: auto !important;
    width: min(22rem, calc(100vw - 1.5rem)) !important;
    max-height: min(70vh, 32rem) !important;
    height: auto !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(106, 61, 138, 0.12) !important;
    box-shadow: 0 18px 40px rgba(45, 25, 60, 0.16) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html:not(.is-mobile-app):not(.kozamia-app-shell) .notif-list {
    max-height: min(48vh, 22rem) !important;
    padding-bottom: 0.75rem !important;
  }
}
