/* ═══════════ Centro de Notificações in-app ═══════════ */

.notif-bell {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 22px;
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--muted2);
  transition: color 0.12s, border-color 0.12s, transform 0.1s;
  padding: 0;
}
.notif-bell:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.notif-bell.notif-buzz {
  animation: notif-buzz 0.6s ease;
}
@keyframes notif-buzz {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(6deg); }
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 5px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  line-height: 1;
}

/* Dropdown */
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: 92vw;
  max-height: 480px;
  background: rgba(13, 17, 28, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border2);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  z-index: 999;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: notifDdIn 0.14s ease;
}
.notif-dropdown.open { display: flex; }

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

.notif-dd-hd {
  padding: 12px 14px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border2);
  font-family: 'Cinzel', serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.notif-dd-hd .btn {
  font-family: 'Nunito', sans-serif;
  font-size: 0.66rem;
  padding: 3px 8px;
}

.notif-list {
  flex: 1;
  overflow-y: auto;
}

.notif-empty {
  padding: 30px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.notif-section {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 14px 4px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border2);
  cursor: pointer;
  position: relative;
  transition: background 0.12s ease;
}
.notif-item:hover { background: var(--bg3); }
.notif-item.unread {
  background: rgba(34, 211, 238, 0.04);
  border-left: 3px solid var(--teal);
  padding-left: 11px;
}
.notif-item.read { opacity: 0.78; }

.notif-item-icon {
  font-size: 1.1rem;
  width: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  text-align: center;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
}
.notif-item-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.25;
  word-break: break-word;
}
.notif-item-text {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
  word-break: break-word;
}
.notif-item-time {
  font-size: 0.62rem;
  color: var(--muted2);
  margin-top: 4px;
}

.notif-item-del {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--muted2);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 4px 6px;
  border-radius: 4px;
  display: none;
}
.notif-item:hover .notif-item-del { display: block; }
.notif-item-del:hover { background: var(--red); color: #fff; }

@media (max-width: 600px) {
  .notif-dropdown {
    width: 96vw;
    right: -8px;
  }
}
