/* ═══════════════════════════════════════════════════
   notifications.css — Notification system styles
   ═══════════════════════════════════════════════════ */

/* ── Bell Icon in Topbar ── */
.notif-bell-wrap {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background .2s;
  color: var(--text);
}
.notif-bell-wrap:hover {
  background: rgba(255,255,255,.08);
}

.notif-bell-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid rgba(8, 11, 16, 1);
  line-height: 1;
  pointer-events: none;
}

/* Topbar right section */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ── Notification Dropdown ── */
.notif-dropdown {
  position: fixed;
  width: 340px;
  max-height: 480px;
  background: rgba(17,24,39,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  z-index: calc(var(--z-modal, 1000) + 5);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notifDropIn .2s ease;
}

@keyframes notifDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--glass-border);
}

.notif-dropdown-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color .2s, background .2s;
}
.notif-mark-all:hover {
  color: var(--accent);
  background: rgba(255,255,255,.05);
}

.notif-dropdown-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

/* ── Notification Items ── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .2s;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.notif-item:hover {
  background: rgba(255,255,255,.04);
}
.notif-item:last-child {
  border-bottom: none;
}

.notif-item.unread {
  background: rgba(var(--accent-rgb), .06);
  border-left: 3px solid var(--accent);
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
}
.notif-item.unread .notif-item-icon {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-body {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.notif-empty, .notif-loading {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ── Account Settings Modal ── */
.account-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--z-modal, 1000) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: notifOverlayIn .2s ease;
}

@keyframes notifOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.account-settings-modal {
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  background: rgba(17,24,39,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 16px 64px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.account-settings-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.account-settings-close {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #6b7494;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: color .15s;
}
.account-settings-close:hover {
  color: #e8eeff;
}

.account-settings-tabs {
  display: flex;
  padding: 0 20px;
  border-bottom: 1px solid var(--glass-border);
}

.account-settings-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.account-settings-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.account-settings-tab:hover {
  color: var(--text);
}

.account-settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ── Notification Settings ── */
.notif-settings-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.notif-settings-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.notif-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.notif-setting-row:last-child {
  border-bottom: none;
}

.notif-setting-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-setting-icon {
  color: var(--muted);
  display: flex;
}

.notif-setting-label {
  font-size: 14px;
  color: var(--text);
}

/* Toggle Switch */
.notif-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.notif-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  transition: background .3s;
}

.notif-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s;
}

.notif-toggle input:checked + .notif-toggle-slider {
  background: var(--accent);
}

.notif-toggle input:checked + .notif-toggle-slider::before {
  transform: translateX(20px);
}

/* ── Mobile-first notification defaults ── */
.notif-dropdown {
  width: calc(100vw - 16px);
  right: 8px !important;
  left: 8px !important;
  max-height: 60vh;
}
.account-settings-modal {
  width: 95%;
  max-height: 85vh;
}

/* ── Friend request actions in notification ── */
.notif-friend-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.notif-accept-btn,
.notif-reject-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .2s, transform .15s;
}

.notif-accept-btn {
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .3);
}
.notif-accept-btn:hover {
  background: rgba(34, 197, 94, .25);
  transform: scale(1.03);
}

.notif-reject-btn {
  background: rgba(239, 68, 68, .1);
  color: var(--red, #ef4444);
  border: 1px solid rgba(239, 68, 68, .2);
}
.notif-reject-btn:hover {
  background: rgba(239, 68, 68, .2);
  transform: scale(1.03);
}

/* === DESKTOP LAYOUT (activează când ai design desktop) ===
@media (min-width: 801px) {
  .notif-dropdown {
    width: 340px;
    right: auto !important;
    left: auto !important;
    max-height: 480px;
  }
  .account-settings-modal {
    width: 90%;
    max-height: 80vh;
  }
}
=== END DESKTOP LAYOUT === */
