/* CHANGELOG PAGE STYLES */

/* HERO SECTION */
.changelog-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, rgba(180, 22, 22, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
}

.changelog-hero-content {
  max-width: 800px;
}

.changelog-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -1px;
}

.changelog-subtitle {
  font-size: 1.15rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.version-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.current-version,
.last-update {
  font-size: 0.95rem;
  color: #888;
}

.version-info strong {
  color: #b41616;
  font-weight: 600;
}

/* SEARCH SECTION */
.search-section {
  padding: 2rem 2rem 3rem;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.changelog-container {
  max-width: 900px;
  margin: 0 auto;
}

.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 3.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #666;
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #b41616;
  box-shadow: 0 0 0 3px rgba(180, 22, 22, 0.1);
}

.clear-search {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.clear-search:hover {
  color: #b41616;
}

/* CHANGELOG SECTION */
.changelog-section {
  padding: 4rem 2rem;
  min-height: 60vh;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #aaa;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #b41616;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state svg {
  color: #666;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 1rem;
  color: #888;
}

/* TIMELINE */
.changelog-timeline {
  position: relative;
  padding-left: 2rem;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #b41616 0%, rgba(180, 22, 22, 0.3) 100%);
}

/* VERSION ENTRY */
.version-entry {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.version-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: #b41616;
  border: 3px solid #0a0a0a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(180, 22, 22, 0.2);
  z-index: 1;
}

.version-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.version-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.version-badge {
  padding: 0.35rem 0.85rem;
  background: rgba(180, 22, 22, 0.15);
  border: 1px solid rgba(180, 22, 22, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b41616;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-date {
  font-size: 0.9rem;
  color: #888;
  margin-left: auto;
}

/* CHANGES CONTAINER */
.changes-container {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.change-group {
  margin-bottom: 1.5rem;
}

.change-group:last-child {
  margin-bottom: 0;
}

.change-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.change-type-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.change-type.added {
  color: #57f287;
}

.change-type.improved {
  color: #5865f2;
}

.change-type.fixed {
  color: #fee75c;
}

.change-type.security {
  color: #ed4245;
}

.change-type.removed {
  color: #888;
}

.change-list {
  list-style: none;
  padding-left: 1.75rem;
}

.change-item {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #bbb;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.change-item::before {
  content: '•';
  position: absolute;
  left: -0.75rem;
  color: #666;
}

.change-item:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .changelog-hero {
    padding: 6rem 1.5rem 3rem;
    min-height: 35vh;
  }

  .changelog-title {
    font-size: 2.5rem;
  }

  .changelog-subtitle {
    font-size: 1rem;
  }

  .version-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-section {
    padding: 1.5rem 1.5rem 2rem;
  }

  .search-input {
    padding: 0.9rem 3rem 0.9rem 3rem;
    font-size: 0.9rem;
  }

  .changelog-section {
    padding: 3rem 1.5rem;
  }

  .changelog-timeline {
    padding-left: 1.5rem;
  }

  .version-entry {
    padding-left: 1.5rem;
  }

  .version-entry::before {
    left: -1.625rem;
    width: 12px;
    height: 12px;
  }

  .version-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .version-number {
    font-size: 1.5rem;
  }

  .version-date {
    margin-left: 0;
  }

  .changes-container {
    padding: 1.25rem;
  }

  .change-list {
    padding-left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .changelog-title {
    font-size: 2rem;
  }

  .changelog-hero {
    padding: 5rem 1rem 2rem;
  }

  .search-section {
    padding: 1.25rem 1rem 1.5rem;
  }

  .changelog-section {
    padding: 2rem 1rem;
  }

  .version-number {
    font-size: 1.35rem;
  }

  .changes-container {
    padding: 1rem;
  }

  .change-item {
    font-size: 0.9rem;
  }
}