/* Changelog widget — injected at build time */

/* Ensure home + changelog buttons stay above control bars that grow tall */
.home-link { z-index: 1050 !important; }

.changelog-btn {
  position: fixed;
  bottom: 68px;
  right: 16px;
  z-index: 1050;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}

.changelog-btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.changelog-btn:hover .changelog-btn-circle {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.changelog-btn-circle svg {
  width: 16px;
  height: 16px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.changelog-btn-label {
  overflow: hidden;
  white-space: nowrap;
  height: 30px;
  border-radius: 15px;
  background: white;
  display: flex;
  align-items: center;
  margin-right: -6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  max-width: 0;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.25s ease;
}

.changelog-btn:hover .changelog-btn-label {
  max-width: 200px;
  opacity: 1;
}

.changelog-btn-label span {
  padding-left: 12px;
  padding-right: 14px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

/* Panel */
.changelog-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

.changelog-panel-overlay.open {
  display: block;
}

.changelog-btn.panel-open .changelog-btn-label {
  max-width: 0 !important;
  opacity: 0 !important;
}

.changelog-panel {
  position: fixed;
  bottom: 112px;
  right: 16px;
  z-index: 1101;
  width: 340px;
  max-height: 60vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.changelog-panel.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.changelog-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.changelog-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.02em;
}

.changelog-panel-close {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #999;
  transition: background 0.15s ease, color 0.15s ease;
}

.changelog-panel-close:hover {
  background: #f5f5f5;
  color: #333;
}

.changelog-panel-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.changelog-panel-body {
  overflow-y: auto;
  padding: 16px 20px 20px;
  flex: 1;
}

.changelog-group {
  margin-bottom: 16px;
}

.changelog-group:last-child {
  margin-bottom: 0;
}

.changelog-date {
  font-family: 'Geist Mono', 'SF Mono', 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.changelog-entries {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-entries li {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  padding: 2px 0 2px 14px;
  position: relative;
}

.changelog-entries li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccc;
}

.changelog-empty {
  font-size: 13px;
  color: #999;
  text-align: center;
  padding: 24px 0;
}
