/* ─── Changelog ────────────────────────────────────────────────────────────── */

.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.changelog-version {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 12px;
}

.changelog-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.changelog-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid transparent;
}

.changelog-entry.changelog-new {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

.changelog-entry.changelog-fix {
  border-left-color: #f97316;
  background: rgba(249, 115, 22, 0.06);
}

.changelog-entry.changelog-improve {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.changelog-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 1px;
}

.badge-new {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-fix {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.badge-improve {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.changelog-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ─── Popup nouveautés ─────────────────────────────────────────────────────── */

#changelog-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 340px;
  width: calc(100vw - 48px);
  background: #1a1f2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 18px 20px 16px;
  animation: slideInPopup 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes slideInPopup {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#changelog-popup.hiding {
  animation: slideOutPopup 0.25s ease forwards;
}

@keyframes slideOutPopup {
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
}

.changelog-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
}

.changelog-popup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.changelog-popup-badge {
  background: #22c55e;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.changelog-popup-close {
  all: unset;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
  flex-shrink: 0;
}

.changelog-popup-close:hover,
.changelog-popup-close:focus {
  color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.changelog-popup-entries {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-popup-entry {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.changelog-popup-entry::before {
  content: '•';
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.changelog-popup-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  transition: color 0.15s;
}

.changelog-popup-link:hover {
  color: #93c5fd;
}

@media (max-width: 480px) {
  #changelog-popup {
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}
