/* ═══════════════════════════════════════════════════════
   BILDIRIMLER — Emerald Theme Notification Panel
   Tum seciciler scope'lu: header.css'e dokunmaz
   ═══════════════════════════════════════════════════════ */

.notif-wrap {
  position: relative;
  flex-shrink: 0;
}

.notif-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  cursor: pointer;
  position: relative;
  padding: 6px 8px;
  transition: color 0.2s;
  border-radius: 8px;
}
.notif-btn:hover {
  color: #fff;
  background: rgba(0,163,108,0.15);
}

.notif-badge {
  display: none;
  position: absolute;
  top: 0;
  right: 2px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg-body, #0a0e17);
  animation: notifBadgePulse 2s ease-in-out infinite;
}
@keyframes notifBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.notif-panel {
  display: none;
  position: absolute;
  right: -10px;
  top: calc(100% + 8px);
  width: 340px;
  max-height: 440px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14,20,36,0.98), rgba(10,14,26,0.98));
  border: 1px solid rgba(0,163,108,0.2);
  border-radius: 14px;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,163,108,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,163,108,0.12);
  background: rgba(0,163,108,0.05);
}

.notif-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-title i {
  color: #00a36c;
  font-size: 14px;
}

.notif-mark-all {
  background: none;
  border: 1px solid rgba(0,163,108,0.25);
  color: #00a36c;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.notif-mark-all:hover {
  background: rgba(0,163,108,0.15);
  color: #4ade80;
  border-color: rgba(0,163,108,0.4);
}
.notif-mark-all i {
  font-size: 10px;
}

.notif-list {
  overflow-y: auto;
  max-height: 380px;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,163,108,0.3) transparent;
}
.notif-list::-webkit-scrollbar {
  width: 4px;
}
.notif-list::-webkit-scrollbar-thumb {
  background: rgba(0,163,108,0.3);
  border-radius: 4px;
}

.notif-empty {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  text-align: center;
  padding: 28px 20px;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.notif-item:hover {
  background: rgba(0,163,108,0.06);
}
.notif-item:last-child {
  border-bottom: none;
}

.notif-item.unread {
  background: rgba(0,163,108,0.04);
  border-left: 3px solid #00a36c;
}
.notif-item.unread:hover {
  background: rgba(0,163,108,0.08);
}

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

.notif-item-title {
  color: #f0f0f0;
  font-size: 12px;
  font-weight: 600;
}

.notif-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.notif-item-body {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

.notif-item-time {
  color: rgba(255,255,255,0.25);
  font-size: 10px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.notif-item-time i {
  font-size: 9px;
}

/* ═══════════════════════════════════════════════════════
   MOBIL RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 820px) {
  .notif-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 56px);
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 72px);
    border-radius: 14px;
    overscroll-behavior: contain;
  }

  .notif-btn {
    font-size: 15px;
    padding: 4px 6px;
  }

  .notif-list {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 136px);
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .notif-panel {
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    right: 6px;
    left: 6px;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 64px);
    border-radius: 12px;
  }

  .notif-btn {
    font-size: 14px;
    padding: 3px 5px;
  }

  .notif-badge {
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 8px;
  }

  .notif-list {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 124px);
  }
}
