/*! askintell-notify.css — 统一通知组件样式 v1.0.0 (fix0813unify) */

/* ─── Drawer ─── */
.ask-notify-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  background: var(--card-bg, #fff);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ask-notify-drawer.open { right: 0; }

/* ─── Overlay ─── */
.ask-notify-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  display: none;
}
.ask-notify-overlay.open { display: block; }

/* ─── Header ─── */
.ask-notify-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #eee);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ask-notify-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text, #333);
}
.ask-notify-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary, #999);
  padding: 4px 8px;
  border-radius: 6px;
}
.ask-notify-close:hover { background: rgba(0, 0, 0, 0.05); }

/* ─── Actions ─── */
.ask-notify-actions {
  padding: 8px 20px;
  border-bottom: 1px solid var(--border, #eee);
  display: flex;
  gap: 8px;
}
.ask-notify-action-btn {
  font-size: 12px;
  color: var(--primary, #6366f1);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
}
.ask-notify-action-btn:hover { background: rgba(99, 102, 241, 0.08); }

/* ─── List ─── */
.ask-notify-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* ─── Item ─── */
.ask-notify-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border, #f5f5f5);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ask-notify-item:hover { background: rgba(99, 102, 241, 0.04); }
.ask-notify-item.unread { background: rgba(99, 102, 241, 0.06); }
.ask-notify-item.unread::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ─── Item icon ─── */
.ask-notify-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ─── Item content ─── */
.ask-notify-item-content {
  flex: 1;
  min-width: 0;
}
.ask-notify-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #333);
  margin-bottom: 2px;
}
.ask-notify-item-body {
  font-size: 12px;
  color: var(--text-secondary, #888);
  line-height: 1.4;
}
.ask-notify-item-time {
  font-size: 11px;
  color: var(--text-secondary, #aaa);
  margin-top: 4px;
}

/* ─── Arrow (open link) ─── */
.ask-notify-item-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--text-secondary, #999);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ask-notify-item-arrow:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary, #6366f1);
}

/* ─── Empty / Loading ─── */
.ask-notify-empty,
.ask-notify-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary, #aaa);
}
.ask-notify-empty-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.ask-notify-empty-text {
  font-size: 14px;
}

/* ─── Dark mode ─── */
[data-theme="dark"] .ask-notify-drawer {
  background: var(--card-bg, #1a1a2e);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .ask-notify-item {
  border-bottom-color: var(--border, #2a2a3e);
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .ask-notify-drawer {
    width: 100vw;
    right: -100vw;
  }
}
