/* ========================================
   LABPRO Changelogs About - Rediseñado
   ======================================== */

.changelog-container {
  max-width: 920px;
  margin: 24px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Header ---- */
.changelog-header {
  background: linear-gradient(135deg, #e8e8e8 0%, #ececec 50%, #f0f0f0 100%);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 20px;
  color: #3d454c;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.changelog-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #2A0062;
  letter-spacing: 0.5px;
}

.changelog-subtitle {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #666;
}

.changelog-message {
  margin: 12px 0 0 0;
  font-size: 16px;
  font-style: italic;
  color: #555;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  border-left: 3px solid #2A0062;
}

/* ---- Language Toggle ---- */
.lang-toggle-container {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.lang-btn {
  padding: 5px 14px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #5a6a7a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  user-select: none;
  line-height: 1.4;
}

.lang-btn:hover {
  background: #f0f4fa;
  border-color: #b0b8c4;
}

.lang-btn.active {
  background: #1a3a6b;
  color: #fff;
  border-color: #1a3a6b;
}

.version-lang[data-lang] {
  display: none;
}

/* ---- Version Info Card ---- */
.version-info-card {
  display: flex;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 16px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.version-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.version-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8a8a8a;
  font-weight: 600;
}

.version-info-value {
  font-size: 22px;
  font-weight: 700;
  color: #2a5a9e;
}

.version-info-divider {
  width: 1px;
  height: 40px;
  background: #e0e4ea;
}

/* ---- Maintenance Accordion ---- */
.maintenance-accordion {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.maintenance-list {
  margin: 0;
  padding: 8px 24px 16px 48px;
}

.maintenance-list li {
  margin-bottom: 6px;
  line-height: 1.5;
  color: #444;
}

/* ---- Year Section ---- */
.changelog-year-section {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.changelog-year-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---- Accordion Year Header ---- */
.accordion-year-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  font-size: 17px;
  font-weight: 600;
  color: #1a3a6b;
  background: #f8faff;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-year-header:hover {
  background: #eef3fc;
}

.accordion-year-header.active {
  background: #e3ebf6;
  border-bottom-color: #e8ecf1;
}

.accordion-arrow {
  font-size: 13px;
  color: #6a8bb0;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.accordion-arrow.open {
  transform: rotate(90deg);
}

.year-title {
  flex: 1;
}

.year-badge {
  font-size: 12px;
  font-weight: 500;
  background: #e8ecf1;
  color: #5a6a7a;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ---- Accordion Year Body ---- */
.accordion-year-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease;
  padding: 0 4px;
}

.accordion-year-body.open {
  max-height: 5000px;
  padding: 4px;
}

/* ---- Version Card ---- */
.version-card {
  border: 1px solid #eef0f4;
  border-radius: 8px;
  margin: 6px 12px;
  background: #fafbfc;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.version-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---- Version Header ---- */
.version-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
  color: #2a5a9e;
  background: #fff;
  transition: background 0.2s ease;
}

.version-header:hover {
  background: #f0f4fa;
}

.version-header.active {
  background: #e8eff7;
}

.version-arrow {
  font-size: 12px;
  color: #8aabca;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.version-arrow.open {
  transform: rotate(90deg);
}

.version-label {
  flex: 1;
}

.version-count {
  font-size: 11px;
  font-weight: 500;
  color: #7a8a9a;
  background: #eef0f4;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ---- Version Body ---- */
.version-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 12px;
  background: #fff;
}

.version-body.open {
  max-height: 3000px;
  padding: 8px 12px 16px 12px;
}

/* ---- Change Items ---- */
.change-category {
  font-weight: 700;
  font-size: 14px;
  color: #1a3a6b;
  padding: 8px 8px 4px 8px;
  margin-top: 4px;
  border-bottom: 1px solid #f0f2f6;
}

.change-item {
  font-size: 13.5px;
  color: #444;
  padding: 3px 8px 3px 20px;
  line-height: 1.5;
}

.change-item:hover {
  background: #f8f9fc;
  border-radius: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .changelog-container {
    margin: 12px 8px;
  }
  .changelog-header {
    padding: 20px 16px;
  }
  .changelog-header h2 {
    font-size: 22px;
  }
  .version-info-card {
    flex-direction: column;
    gap: 8px;
  }
  .version-info-divider {
    width: 80%;
    height: 1px;
  }
  .lang-toggle-container {
    justify-content: center;
  }
}
