/* =================================================================
   Scouq - Changelog Page
   ================================================================= */

/* Solid dark background (no map behind this page) */
.changelog-page {
  background: #0a0a0a;
}

.changelog-main {
  padding-top: 96px; /* clear fixed header */
  padding-bottom: 80px;
}

.changelog-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------------------------------
   Page heading
   ----------------------------------------------------------------- */
.changelog-head {
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.changelog-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 8px;
}

.changelog-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: -0.2px;
}

/* -----------------------------------------------------------------
   Subscribe row
   ----------------------------------------------------------------- */
.changelog-subscribe {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 48px;
}

.changelog-subscribe-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.changelog-subscribe-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}

.changelog-subscribe-input {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 150ms ease;
  letter-spacing: -0.1px;
}

.changelog-subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.changelog-subscribe-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.changelog-subscribe-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #0a0a0a;
  background: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.1px;
  transition: background 150ms ease;
}

.changelog-subscribe-btn:hover {
  background: #f0f0f0;
}

/* -----------------------------------------------------------------
   Version entry
   ----------------------------------------------------------------- */
.changelog-entry {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.changelog-entry:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.changelog-entry-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.changelog-version {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #ffffff;
}

.changelog-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.1px;
}

.changelog-theme {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: -0.1px;
}

/* -----------------------------------------------------------------
   Section groups within a version
   ----------------------------------------------------------------- */
.changelog-group {
  margin-bottom: 20px;
}

.changelog-group-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

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

.changelog-list li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  padding: 3px 0 3px 16px;
  position: relative;
  letter-spacing: -0.15px;
}

.changelog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

/* -----------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------- */
@media (max-width: 600px) {
  .changelog-title {
    font-size: 28px;
  }

  .changelog-subscribe {
    flex-direction: column;
    align-items: flex-start;
  }

  .changelog-subscribe-form {
    width: 100%;
  }
}

/* Prevent horizontal overflow on narrow viewports */
.changelog-wrap {
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.changelog-entry table,
.changelog-wrap table {
  overflow-x: auto;
  display: block;
  max-width: 100%;
}

.changelog-entry pre,
.changelog-wrap pre {
  overflow-x: auto;
  max-width: 100%;
}

.changelog-entry img,
.changelog-wrap img {
  max-width: 100%;
  height: auto;
}
