/* --- Website changelog timeline (ported from legacy Albion Market Support Module inline styles) --- */

@keyframes amsm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(88, 101, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}

.amsm-changelog-wrapper {
  background-color: #2a2d2f;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 2.5rem 3.5rem;
  max-width: 900px;
  margin: 2rem auto;
  font-family: 'Poppins', sans-serif;
  color: #e0e0e0;
}

.amsm-changelog-container {
  position: relative;
}

/* The ::after pseudo-element creates the main timeline bar */
.amsm-changelog-container::after {
  content: '';
  position: absolute;
  left: 9px;
  width: 3px;
  top: 20px;
  bottom: 20px;
  background: linear-gradient(to bottom, #5865F2, #a0a0a0);
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

.amsm-changelog-entry {
  padding: 0 0 3.5rem 2.5rem;
  position: relative;
}

.amsm-changelog-entry:last-child {
  padding-bottom: 0;
}

/* The ::before pseudo-element creates the dot on the timeline */
.amsm-changelog-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  background-color: #2a2d2f;
  border: 4px solid #5865F2;
  border-radius: 50%;
  z-index: 1;
}

/* Pulsing animation on the first (most recent) dot */
.amsm-changelog-entry:first-child::before {
  animation: amsm-pulse 2s infinite;
}

.amsm-changelog-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.amsm-changelog-date {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-top: 0.3rem;
  display: block;
  font-weight: 500;
}

.amsm-changelog-content {
  margin-top: 1rem;
  color: #c0c0c0;
  line-height: 1.7;
}

.amsm-changelog-content ul {
  list-style-type: none;
  padding-left: 0;
}

.amsm-changelog-content ul li {
  margin-bottom: 0.75rem;
  padding-left: 25px;
  position: relative;
}

.amsm-changelog-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: #5865F2;
  font-weight: bold;
}

/* Nested list container */
.amsm-changelog-content ul ul {
  margin-top: 0.5rem;
  list-style-type: none;
}

/* Nested list items get a subtler marker */
.amsm-changelog-content ul ul li::before {
  content: '–';
  color: #a0a0a0;
  font-weight: bold;
}

.amsm-changelog-content a {
  color: #5865F2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.amsm-changelog-content a:hover {
  color: #7b86f5;
  text-decoration: underline;
}

.amsm-changelog-content code {
  background-color: #1e222e;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  color: #e0e0e0;
  border: 1px solid #444;
}

.amsm-changelog-no-entries {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  color: #a0a0a0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .amsm-changelog-wrapper {
    padding: 2rem 1.5rem;
  }
  .amsm-changelog-entry {
    padding-left: 2rem;
  }
  .amsm-changelog-title {
    font-size: 1.4rem;
  }
  .amsm-changelog-entry::before {
    top: 7px;
  }
}
