/* ========================================
   DTNR Changelog – Sand & Dust Theme
   ======================================== */

/* --- Language Toggle (i18n) --- */
html:not([lang="en"]) .i18n-en { display: none; }
html[lang="en"] .i18n-de { display: none; }

/* --- Layout --- */
.cl-main {
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 80px) 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Header --- */
.cl-header {
  text-align: center;
  margin-bottom: 64px;
}

.cl-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sand-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cl-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.cl-desc {
  font-size: 1.1rem;
  color: var(--white-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Timeline --- */
.cl-timeline {
  position: relative;
  max-width: 800px;
  width: 100%;
}

.cl-entry {
  display: flex;
  gap: 24px;
  position: relative;
}

.cl-entry + .cl-entry {
  margin-top: 0;
}

/* --- Timeline marker (dot + line) --- */
.cl-entry-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  padding-top: 6px;
}

.cl-entry-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--dust-deep);
  box-shadow: 0 0 12px rgba(212, 169, 84, 0.35);
  flex-shrink: 0;
  z-index: 1;
}

.cl-entry-dot--dim {
  background: var(--dust-card-border);
  box-shadow: none;
}

.cl-entry-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--sand-dim), var(--dust-card-border));
  margin-top: 4px;
}

/* --- Entry content --- */
.cl-entry-content {
  flex: 1;
  padding-bottom: 48px;
}

.cl-entry-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.cl-version {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.cl-version--dim {
  font-size: 1.2rem;
  color: var(--white-muted);
}

.cl-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.cl-badge--current {
  background: rgba(212, 169, 84, 0.15);
  color: var(--sand);
  border: 1px solid rgba(212, 169, 84, 0.3);
}

.cl-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--white-muted);
}

.cl-entry-subtitle {
  font-size: 1rem;
  color: var(--white-dim);
  margin-bottom: 24px;
  font-style: italic;
}

/* --- Groups inside an entry --- */
.cl-group {
  margin-bottom: 20px;
}

.cl-group:last-child {
  margin-bottom: 0;
}

.cl-group-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cl-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--white-dim);
  line-height: 1.8;
}

.cl-list li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: var(--sand-dim);
  font-weight: 700;
}

/* --- Upcoming placeholder --- */
.cl-upcoming-text {
  font-size: 0.95rem;
  color: var(--white-muted);
  line-height: 1.7;
  font-style: italic;
}

.cl-entry--upcoming .cl-entry-content {
  padding-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .cl-main {
    padding: calc(var(--nav-height) + 40px) 16px 60px;
  }

  .cl-title {
    font-size: 1.8rem;
  }

  .cl-desc {
    font-size: 1rem;
  }

  .cl-header {
    margin-bottom: 40px;
  }

  .cl-entry {
    gap: 16px;
  }

  .cl-version {
    font-size: 1.3rem;
  }

  .cl-entry-header {
    flex-direction: column;
    gap: 4px;
  }
}
