/* Patch Notes — menu bar button + modal */

/* Menu bar button */
.patch-notes-menu-btn {
  cursor: pointer;
}

/* Glow pulse when new version available */
.patch-notes-menu-btn.patch-notes-new {
  animation: patchNewPulse 1.5s ease-out infinite;
}

.patch-notes-menu-btn.patch-notes-new:hover {
  animation: none;
}

@keyframes patchNewPulse {
  0% {
    box-shadow: 0 0 0px transparent;
  }
  50% {
    box-shadow: 0 0 8px 1px rgba(204, 102, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 0px transparent;
  }
}

/* Compact all menu-right items */
.menu-right .menu-interactive-item {
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  height: 28px;
  gap: 6px;
}

.menu-right .menu-interactive-item i {
  font-size: var(--font-size-xs);
}

.menu-right .status-indicator {
  width: 6px;
  height: 6px;
}

.menu-right .menu-divider {
  height: 16px;
}

/* Modal overlay */
.patch-notes-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.patch-notes-overlay.visible {
  opacity: 1;
}

/* Modal card */
.patch-notes-modal {
  background: linear-gradient(to bottom, #0f172a, #1e293b);
  border: 1px solid #334155;
  border-top: 3px solid #cc6600;
  border-radius: 6px;
  width: 460px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Header */
.patch-notes-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #334155;
}

.patch-notes-header h3 {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.patch-notes-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.patch-notes-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Body */
.patch-notes-body {
  padding: 14px 16px;
  overflow-y: auto;
  color: #94a3b8;
  font-size: var(--font-size-xs);
  line-height: 1.5;
}

/* Entry (one per version) */
.patch-notes-entry {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1e293b;
}

.patch-notes-entry.patch-notes-entry-last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.patch-notes-entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.patch-notes-version-badge {
  font-size: var(--font-size-2xs);
  font-family: var(--gd-font-mono);
  color: #cc6600;
  background: rgba(204, 102, 0, 0.1);
  border: 1px solid rgba(204, 102, 0, 0.25);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.patch-notes-date {
  font-size: var(--font-size-2xs);
  font-family: var(--gd-font-mono);
  color: #64748b;
  letter-spacing: 0.3px;
}

/* Section within an entry */
.patch-notes-section {
  margin-bottom: 8px;
}

.patch-notes-section:last-child {
  margin-bottom: 0;
}

.patch-notes-section-label {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.patch-notes-list {
  margin: 0;
  padding-left: 14px;
  list-style: none;
}

.patch-notes-list li {
  position: relative;
  padding-left: 2px;
  margin-bottom: 2px;
  color: #cbd5e1;
  font-size: var(--font-size-xs);
}

.patch-notes-list li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 7px;
  width: 3px;
  height: 3px;
  background: #cc6600;
  border-radius: 50%;
}

/* Footer */
.patch-notes-footer {
  padding: 10px 16px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: flex-end;
}

.patch-notes-dismiss {
  padding: 6px 16px;
  background: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 2px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.patch-notes-dismiss:hover {
  background: #444;
}
