/* Notification bell + dropdown */

.notif-bell-wrap {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--profile-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff8ff;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.15s, border-color 0.15s, color 0.15s, background 0.15s;
  font-family: inherit;
}

.notif-bell:hover,
.notif-bell:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.notif-bell--current {
  border-color: rgba(153, 255, 255, 0.56);
  background: rgba(153, 255, 255, 0.12);
  color: #dffff8;
  box-shadow:
    0 0 0 1px rgba(153, 255, 255, 0.12) inset,
    0 0 18px rgba(153, 255, 255, 0.08);
}

.notif-bell__icon {
  font-size: 0.9rem;
}

.notif-bell__label {
  display: inline-block;
}

.notif-bell__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3366;
  color: #fff;
  font-size: 0.6rem;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: var(--profile-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  font-family: inherit;
}

.notif-bell__badge[hidden] {
  display: none;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9000;
  width: min(92vw, 320px);
  max-width: none;
  background: #0a0015;
  border: 1px solid rgba(255, 0, 255, 0.35);
  border-radius: var(--profile-radius-md);
  box-shadow: 0 4px 32px rgba(255, 0, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.notif-dropdown[hidden] {
  display: none;
}

.notif-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

.notif-dropdown__title {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff00ff;
  font-weight: bold;
}

.notif-dropdown__mark-read {
  background: none;
  border: none;
  color: rgba(255, 0, 255, 0.5);
  font-size: 0.6rem;
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notif-dropdown__mark-read:hover {
  color: #ff00ff;
}

.notif-dropdown__page-link {
  color: #9fe5ff;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.notif-dropdown__page-link:hover,
.notif-dropdown__page-link:focus-visible {
  color: #ffffff;
}

.notif-page-layout {
  position: relative;
  z-index: 10;
  width: min(90vw, 620px);
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-page__empty {
  padding: 40px 0;
  text-align: center;
  color: rgba(200, 180, 255, 0.35);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.notif-page__flash {
  min-height: 1em;
  color: #88aacc;
  font-size: 0.82rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  padding: 12px 0;
}

/* Expand the bell dropdown item styles for full-width page use */
#notifPageList .notif-item {
  background: rgba(10, 0, 21, 0.75);
  border: 1px solid rgba(255, 0, 255, 0.1);
  border-radius: var(--profile-radius-xs);
  padding: 14px 18px;
}

#notifPageList .notif-item--unread {
  background: rgba(255, 0, 255, 0.04);
  border-left: 3px solid rgba(255, 0, 255, 0.5);
}

#notifPageList .notif-item:hover {
  background: rgba(255, 0, 255, 0.06);
}

#notifPageList .notif-item__text {
  font-size: 0.84rem;
}

#notifPageList .notif-item__preview {
  font-size: 0.76rem;
}

#notifPageList .notif-item__time {
  font-size: 0.68rem;
  margin-top: 6px;
}

.notif-dropdown__list {
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
}

.notif-dropdown__list::-webkit-scrollbar {
  width: 10px;
}

.notif-dropdown__list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 197, 228, 0.78), rgba(255, 124, 190, 0.54));
  border: 2px solid rgba(18, 9, 31, 0.9);
}

.notif-dropdown__list::-webkit-scrollbar-track {
  background: rgba(12, 8, 30, 0.42);
}

.notif-dropdown__empty {
  padding: 20px 14px;
  text-align: center;
  color: rgba(200, 180, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.notif-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 0, 255, 0.08);
  transition: background 0.1s;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item--unread {
  background: rgba(255, 0, 255, 0.04);
}

.notif-item:hover {
  background: rgba(255, 0, 255, 0.07);
}

.notif-item__text {
  font-size: 0.72rem;
  color: #d0c0ff;
  line-height: 1.4;
  margin: 0 0 4px;
}

.notif-item__text strong {
  color: #ff00ff;
}

.notif-item__preview {
  font-size: 0.65rem;
  color: rgba(200, 180, 255, 0.45);
  margin: 0 0 6px;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item__time {
  font-size: 0.6rem;
  color: rgba(200, 180, 255, 0.35);
  letter-spacing: 0.04em;
}

.notif-item__actions {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.notif-item__action {
  font-size: 0.65rem;
  font-family: inherit;
  padding: 3px 10px;
  border-radius: var(--profile-radius-xs);
  border: 1px solid;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.notif-item__action--accept {
  border-color: rgba(0, 255, 136, 0.5);
  color: #00ff88;
  background: rgba(0, 255, 136, 0.06);
}

.notif-item__action--accept:hover {
  background: rgba(0, 255, 136, 0.18);
  border-color: #00ff88;
}

.notif-item__action--reject {
  border-color: rgba(255, 51, 102, 0.5);
  color: #ff3366;
  background: rgba(255, 51, 102, 0.06);
}

.notif-item__action--reject:hover {
  background: rgba(255, 51, 102, 0.18);
  border-color: #ff3366;
}

.notif-item__action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.notif-item__game-link {
  display: inline-block;
  margin-left: 4px;
  color: #00ff88;
  font-size: 0.72rem;
  text-decoration: none;
  opacity: 0.9;
}

.notif-item__game-link:hover {
  text-decoration: underline;
  opacity: 1;
}

@media (max-width: 640px) {
  .notif-dropdown {
    left: 0;
    right: auto;
  }
}
