/* ═══════════════════════════════════════════════════════════
   SHEINPROXY — Notification Center Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── NOTIFICATION BELL (in topbar) ─── */
.notif-bell {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--trans-fast);
  color: var(--clr-text-muted);
}

.notif-bell:hover {
  background: var(--clr-bg);
  color: var(--clr-accent);
}

.notif-bell svg {
  width: 20px;
  height: 20px;
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border: 2px solid #fff;
}

.notif-badge.hidden {
  display: none;
}

/* ─── NOTIFICATION DROPDOWN ─── */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 500px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  display: none;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--trans-med), transform var(--trans-med);
}

.notif-dropdown.open {
  display: flex;
  animation: dropdownFadeIn 0.3s var(--ease) forwards;
}

@keyframes dropdownFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── DROPDOWN HEADER ─── */
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--clr-border);
}

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

.notif-mark-all-read {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-accent);
  cursor: pointer;
  transition: opacity var(--trans-fast);
}

.notif-mark-all-read:hover {
  opacity: 0.7;
}

/* ─── NOTIFICATION LIST ─── */
.notif-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.notif-list::-webkit-scrollbar {
  width: 6px;
}

.notif-list::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

.notif-list::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: 3px;
}

.notif-empty {
  padding: var(--sp-7);
  text-align: center;
  color: var(--clr-text-muted);
}

.notif-empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-3);
  opacity: 0.3;
}

/* ─── NOTIFICATION ITEM ─── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  cursor: pointer;
  transition: background var(--trans-fast);
  position: relative;
}

.notif-item:hover {
  background: var(--clr-bg);
}

.notif-item.unread {
  background: rgba(232, 85, 61, 0.04);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
}

.notif-item.unread .notif-icon {
  margin-left: 16px;
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--clr-accent-soft);
}

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

.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 3px;
}

.notif-message {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.4;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-time {
  font-size: 11px;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ─── DROPDOWN FOOTER ─── */
.notif-dropdown-footer {
  padding: var(--sp-3);
  border-top: 1px solid var(--clr-border);
  text-align: center;
}

.notif-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-accent);
  text-decoration: none;
  transition: opacity var(--trans-fast);
}

.notif-view-all:hover {
  opacity: 0.7;
}

/* ─── NOTIFICATION PREFERENCES MODAL ─── */
.notif-prefs-modal {
  display: none;
}

.notif-prefs-modal.open {
  display: flex;
}

.notif-prefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.notif-pref-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.notif-pref-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notif-channel-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.notif-channel-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .notif-dropdown {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - var(--nav-h));
    border-radius: 0;
  }

  .notif-prefs-grid {
    grid-template-columns: 1fr 1fr;
  }
}
