/* ─── CHANGELOG MODAL ────────────────────────────────── */
.cl-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 20, 0.82);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  /* animation: clFadeIn 0.3s ease-out; */
  overflow-y: auto;
  min-height: 100vh;
}
.cl-backdrop.hidden { display: none; }

@keyframes clFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cl-date {
  text-align: center;
  font-size: 0.85rem;
  color: #888888;          /* Muted gray so it stays in the background */
  font-weight: 500;
  letter-spacing: 0.05em;  /* Gives the dashes and numbers a clean, modern look */
  margin-bottom: 12px;     /* Spaces it nicely above the version header */
}

.cl-box {
  background: linear-gradient(145deg, rgba(10,10,40,0.98), rgba(20,20,60,0.98));
  border: 1px solid rgba(245, 124, 0, 0.35);
  max-width: 480px; width: 100%;
  box-shadow: 0 0 60px rgba(245, 73, 39, 0.15), 0 24px 60px rgba(0,0,0,0.6);
  animation: clSlideUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow-y: auto;
  padding: 20px 18px 18px;
  border-radius: 16px;
  max-height: calc(100vh - 24px);
}

@keyframes clSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.cl-header { text-align: center; margin-bottom: 20px; }

.cl-version {
  display: inline-block;
  background: rgba(245, 124, 0, 0.15);
  border: 1px solid rgba(245, 124, 0, 0.4);
  color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  padding: 3px 12px; border-radius: 20px; text-transform: uppercase;
  margin-bottom: 10px;
}

.cl-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text); margin: 6px 0 4px;
}

.cl-sub {
  font-size: 0.88rem; color: var(--text-sub); margin: 0;
}

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

.cl-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9rem; color: var(--text-sub); line-height: 1.4;
}

.cl-icon {
  font-size: 1.1rem; flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.cl-list strong { color: var(--text); font-weight: 600; }

.cl-notice {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem; color: #fca5a5; line-height: 1.5;
  margin-bottom: 18px;
}

.cl-btn {
  width: 100%;
  background: var(--accent);
  color: #fff; border: none;
  border-radius: 12px;
  padding: 13px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; letter-spacing: 0.5px;
  box-shadow: 0 4px 0 var(--accent-dim);
  transition: background 0.15s, transform 0.1s;
}
.cl-btn:hover { background: var(--accent-bright); transform: translateY(-1px); }
.cl-btn:active { box-shadow: none; transform: translateY(1px); }
.cl-github-link {
  display: block; text-align: center;
  font-size: 0.8rem; color: var(--text-muted);
  text-decoration: none; margin-bottom: 10px;
  transition: color 0.15s;
}
.cl-github-link:hover { color: var(--accent); text-decoration: none; }

.cl-content {
  flex: 1;
}

.cl-content p {
  margin: 2px 0 0;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cl-tip {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;

  background: rgba(245, 124, 0, 0.08);
  border: 1px solid rgba(245, 124, 0, 0.18);

  color: #ffcf9b;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Styling fixes */
.modal-content {
    overflow-y: auto;
    max-height: 80vh;
}
body.modal-open {
    overflow: hidden;
}
