/* Site bildirim merkezi — header çan */
.site-notifications-bell {
  position: relative;
}

.site-notifications-bell__badge {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #1677ff;
  border: 1px solid rgba(15, 24, 40, 0.85);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  color: #f8fafc;
  pointer-events: none;
}

.site-notifications-bell__badge:empty,
.site-notifications-bell__badge[hidden] {
  display: none;
}

.site-notifications-panel {
  position: fixed;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(22, 119, 255, 0.28);
  background: var(--site-surface-gradient, linear-gradient(180deg, #252f44 0%, #1e2739 100%));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 64px -24px rgba(0, 0, 0, 0.65);
}

.site-notifications-panel[hidden]:not(.is-open) {
  display: none !important;
  pointer-events: none;
}

.site-notifications-panel.is-open {
  display: flex !important;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .site-notifications-panel {
    top: calc(4.5rem + 0.35rem);
    right: max(0.75rem, env(safe-area-inset-right));
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(28rem, calc(100dvh - 5.5rem));
    border-radius: 0.85rem;
  }
}

@media (max-width: 639px) {
  .site-notifications-panel {
    inset: auto 0 0 0;
    max-height: min(70dvh, 32rem);
    border-radius: 1rem 1rem 0 0;
    border-bottom: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.site-notifications-panel__backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(8, 12, 20, 0.55);
  backdrop-filter: blur(4px);
}

.site-notifications-panel__backdrop[hidden]:not(.is-open) {
  display: none !important;
}

.site-notifications-panel__backdrop.is-open {
  display: block !important;
}

.site-notifications-panel__head {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(22, 119, 255, 0.2);
}

.site-notifications-panel__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f1f5f9;
}

.site-notifications-panel__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-notifications-panel__mark-all {
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(22, 119, 255, 0.28);
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.site-notifications-panel__mark-all:hover {
  color: #e8f2fc;
  border-color: rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.08);
}

.site-notifications-panel__close {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(22, 119, 255, 0.28);
  border-radius: 0.5rem;
  background: rgba(22, 119, 255, 0.15);
  color: #e2e8f0;
  cursor: pointer;
  pointer-events: auto;
}

.site-notifications-panel__close:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.site-notifications-panel__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-notifications-item {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(22, 119, 255, 0.14);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.site-notifications-item:hover {
  background: rgba(22, 119, 255, 0.08);
}

.site-notifications-item--unread {
  background: rgba(22, 119, 255, 0.06);
}

.site-notifications-item--unread::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  border-radius: 9999px;
  background: #69b1ff;
  vertical-align: middle;
}

.site-notifications-item__title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f1f5f9;
}

.site-notifications-item__body {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-notifications-item__meta {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(96, 165, 250, 0.85);
}

.site-notifications-panel__empty {
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.site-notifications-panel__loading {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

[data-theme="light"] .site-notifications-panel {
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border-color: rgba(22, 119, 255, 0.18);
}

[data-theme="light"] .site-notifications-panel__title {
  color: #0f172a;
}

[data-theme="light"] .site-notifications-item__title {
  color: #0f172a;
}

[data-theme="light"] .site-notifications-item__body {
  color: #64748b;
}

[data-theme="light"] .site-notifications-item:hover {
  background: rgba(22, 119, 255, 0.06);
}
