/* ===== 通知ベル ===== */
.notif-wrap { position: relative; }

.notif-bell {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px;
  background: #e53e3e; color: white;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--header-bg, #ff6b35);
  line-height: 1;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 340px; max-width: calc(100vw - 20px);
  max-height: 460px; overflow: hidden;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  z-index: 200;
  flex-direction: column;
}
.notif-dropdown.open { display: flex; }

.notif-dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--text);
  background: var(--card);
  flex-shrink: 0;
}
.notif-dropdown-header button {
  background: transparent; border: none; color: var(--primary);
  font-size: 11px; font-weight: 600; cursor: pointer;
  padding: 4px 8px; border-radius: 4px;
}
.notif-dropdown-header button:hover { background: var(--primary-light); }

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

.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
  position: relative;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-light); }
.notif-item.unread:hover { background: var(--primary-light); filter: brightness(0.95); }
.notif-item:last-child { border-bottom: none; }

.notif-icon {
  font-size: 22px; flex-shrink: 0;
}

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

.notif-msg {
  font-size: 13px; color: var(--text);
  line-height: 1.5;
}
.notif-msg b { font-weight: 700; color: var(--primary); }

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

.notif-extra {
  font-size: 12px; color: var(--text-light);
  margin-top: 2px; font-style: italic;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

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

.notif-dot {
  position: absolute; top: 16px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
}

.notif-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted); font-size: 13px;
}

@media (max-width: 600px) {
  .notif-dropdown {
    position: fixed;
    top: 60px; right: 10px; left: 10px;
    width: auto; max-width: none;
  }
}
