/* Updates/Changelog specific styles */

.updates-hero {
  position: relative;
  width: 100%;
  padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 2rem;
  background: radial-gradient(
      60% 80% at 20% 15%,
      rgba(91, 198, 212, 0.3),
      transparent
    ),
    radial-gradient(
      45% 65% at 85% 0%,
      rgba(13, 78, 106, 0.45),
      transparent 55%
    ),
    radial-gradient(
      70% 85% at 50% 60%,
      rgba(2, 19, 28, 0.95),
      rgba(1, 10, 16, 0.92)
    );
}

.updates-container {
  width: 100%;
  min-height: calc(100vh - 200px);
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  justify-content: center;
}

.updates-content {
  width: min(95%, 900px);
}

.updates-page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 3rem;
  text-align: center;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.update-item {
  background: rgba(3, 21, 29, 0.6);
  border: 1px solid rgba(142, 213, 216, 0.1);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 213, 216, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.update-header-left {
  flex: 1;
  min-width: 200px;
}

.update-date {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.update-version {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.update-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.update-header-right {
  display: flex;
  align-items: flex-start;
}

.update-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-public {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.tag-beta {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.tag-alpha {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.update-section {
  margin-bottom: 2rem;
}

.update-section:last-child {
  margin-bottom: 0;
}

.update-section-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(142, 213, 216, 0.2);
}

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

.update-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
}

.update-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2em;
}

.update-content {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(142, 213, 216, 0.1);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.update-content h1,
.update-content h2,
.update-content h3,
.update-content h4,
.update-content h5,
.update-content h6 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.update-content p {
  margin-bottom: 1rem;
}

.update-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 213, 216, 0.3);
  transition: border-color 0.2s ease;
}

.update-content a:hover {
  border-color: var(--primary);
}

.update-content code {
  background: rgba(3, 21, 29, 0.8);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: var(--primary);
}

.update-content pre {
  background: rgba(3, 21, 29, 0.8);
  border: 1px solid rgba(142, 213, 216, 0.1);
  border-radius: 0.5rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.update-content pre code {
  background: none;
  padding: 0;
  color: var(--text-main);
}

.updates-empty,
.updates-error {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 3rem;
}

@media (max-width: 640px) {
  .updates-container {
    padding: 2rem 1.5rem;
  }

  .update-item {
    padding: 1.5rem;
  }

  .update-header {
    flex-direction: column;
  }

  .update-date {
    font-size: 1.5rem;
  }
}

