/* ── Changelog & Help Drawers ──────────────────── */

/* Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer panel */
.drawer-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transition: right 0.3s cubic-bezier(0.22,0.61,0.36,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer-panel.active {
  right: 0;
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}
.drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.drawer-close:hover {
  background: #f3f4f6;
  color: #111;
}

/* Drawer body */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* ── Changelog Items ──────────────────── */
.changelog-item {
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}
.changelog-item:last-child {
  border-bottom: none;
}
.changelog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.changelog-version {
  font-size: 11px;
  font-weight: 700;
  color: #0068FF;
  background: #e8f0fe;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}
.changelog-date {
  font-size: 12px;
  color: #9ca3af;
}
.changelog-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
}
.changelog-badge.feature { background: #dcfce7; color: #166534; }
.changelog-badge.improvement { background: #fef3c7; color: #92400e; }
.changelog-badge.fix { background: #fee2e2; color: #991b1b; }

.changelog-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}
.changelog-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.changelog-list li {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ── Help Center ──────────────────── */
.help-search {
  position: relative;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.help-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.help-search input:focus {
  border-color: #0068FF;
  box-shadow: 0 0 0 3px rgba(0,104,255,0.1);
}
.help-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.help-article {
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
}
.help-article:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.help-article.expanded {
  background: #fff;
  border-color: #0068FF;
  box-shadow: 0 2px 8px rgba(0,104,255,0.08);
}
.help-article-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-article-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0068FF;
  flex-shrink: 0;
}
.help-article-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}
.help-article-category {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.help-article-content {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}
.help-article.expanded .help-article-content {
  display: block;
}

.help-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 14px;
}

/* ── Notification Badge (Nav) ──────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.nav-action-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background 0.15s, color 0.15s;
}
.nav-action-btn:hover {
  background: #f3f4f6;
  color: #0068FF;
}
.nav-badge {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: none;
  flex-shrink: 0;
  margin-left: 4px;
}
.nav-badge.active {
  display: inline-block;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

@media (max-width: 640px) {
  .drawer-panel {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }
}
