/* css/changelog.css — "Updates" modal styling. */

/* Hard-refresh tip banner at the top of the body. Static-site caches can
   keep a stale tab pinned to an old build; this surface tells users how
   to force a fresh fetch when a brand-new feature isn't showing up yet. */
.changelog-refresh-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 0 16px;
  background: rgba(var(--accent-rgb, 200, 200, 200), 0.08);
  border: 1px solid rgba(var(--accent-rgb, 200, 200, 200), 0.25);
  border-left-width: 3px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text, #e0e0e0);
}
.changelog-refresh-tip-icon {
  font-size: 16px;
  line-height: 1;
  color: var(--accent, #c8c8c8);
  flex: 0 0 auto;
}
.changelog-refresh-tip kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 1px 6px;
  margin: 0 2px;
  color: var(--accent, #e6e6e6);
  white-space: nowrap;
}


.changelog-modal {
  max-width: 640px;
  width: min(640px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.changelog-header {
  align-items: flex-start;
  gap: 12px;
}

.changelog-header-text {
  flex: 1;
  min-width: 0;
}

.changelog-meta {
  font-size: 12px;
  color: var(--text-muted, #888);
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.changelog-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
  border-radius: 4px;
  padding: 1px 6px;
}

.changelog-updated { font-style: italic; }

.changelog-body {
  overflow: auto;
  padding: 12px 18px 18px;
}

.changelog-empty {
  color: var(--text-muted, #888);
  text-align: center;
  padding: 24px 0;
}

.changelog-day { margin-bottom: 18px; }
.changelog-day:last-child { margin-bottom: 0; }

.changelog-day-head {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #aaa);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  padding-bottom: 4px;
}

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

.changelog-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
}

.changelog-kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 3px;
  padding: 2px 0;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
  color: var(--text-muted, #aaa);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  margin-top: 2px;
}
.changelog-kind-feature {
  background: rgba(78, 156, 96, 0.18);
  color: #7ed293;
  border-color: rgba(78, 156, 96, 0.45);
}
.changelog-kind-fix {
  background: rgba(180, 100, 60, 0.18);
  color: #e9b18b;
  border-color: rgba(180, 100, 60, 0.45);
}
.changelog-kind-change {
  background: rgba(96, 130, 200, 0.18);
  color: #aac3ee;
  border-color: rgba(96, 130, 200, 0.45);
}

.changelog-text { min-width: 0; }

.changelog-item-title {
  font-weight: 600;
  line-height: 1.35;
}

.changelog-item-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted, #bbb);
}

/* Topbar icon — show a small dot when there are unseen entries. */
#yaab-btn-changelog { position: relative; }
#yaab-btn-changelog.has-unseen::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e25c5c;
  box-shadow: 0 0 0 1.5px var(--bg, #1c1f25);
}
