/* ================================================================
   univers-index.css - Pages index des univers de labs
   ================================================================ */

:root {
  --serif: 'Instrument Serif', Georgia, serif;
}

.universe-hero {
  background:
    radial-gradient(circle at 14% 18%, rgba(30,100,152,.28), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(16,185,129,.10), transparent 28%),
    linear-gradient(135deg, #0B1018 0%, #121A24 58%, #0D1117 100%);
  padding: 54px 80px 50px;
  text-align: center;
}

.universe-kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: #93c5fd;
  margin-bottom: 14px;
}

.universe-hero h1 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  color: #f1f5f9;
}

.universe-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: #dbe5f1;
  font-size: 15px;
  line-height: 1.65;
}

.universe-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(148,163,184,.20);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  color: #dbe5f1;
  font-family: var(--mono);
  font-size: 12px;
}

.universe-section {
  background: var(--bg);
  padding: 40px;
  box-shadow: 0 2px 12px rgba(26,22,18,.08) inset, 0 -2px 12px rgba(26,22,18,.08) inset;
}

.universe-heading {
  max-width: 760px;
  margin: 0 auto 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26,22,18,.08);
  text-align: center;
}

.universe-heading h2 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.universe-heading p {
  max-width: 540px;
  margin: 0 auto;
  color: #5f564d;
  font-size: 13px;
  line-height: 1.55;
}

.prereq-banner,
.progress-global,
.level-block {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease, border-color .2s, background .2s, box-shadow .2s;
}

.prereq-banner.visible,
.progress-global.visible,
.level-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.prereq-banner {
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--bg2);
  border-color: rgba(26,22,18,.10);
  box-shadow: 0 10px 26px rgba(26,22,18,.045);
}

.prereq-banner.visible:hover,
.progress-global.visible:hover,
.level-block.visible:hover {
  border-color: rgba(30,100,152,.22);
  box-shadow: 0 14px 34px rgba(26,22,18,.08);
}

.prereq-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

.prereq-text strong {
  color: var(--text);
}

.progress-global {
  margin-bottom: 18px;
  border-radius: 6px;
  background: rgba(251,249,246,.68);
  border-color: rgba(26,22,18,.08);
  box-shadow: none;
}

.progress-global-text {
  font-family: var(--mono);
  font-size: 12px;
}

.progress-global-bar {
  height: 4px;
  border-radius: 999px;
}

.progress-global-fill {
  border-radius: 999px;
}

.level-block {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg2);
  border-color: rgba(26,22,18,.10);
  box-shadow: 0 10px 26px rgba(26,22,18,.045);
}

.level-header {
  padding: 14px 18px;
  border-bottom-color: rgba(26,22,18,.08);
  background: rgba(251,249,246,.72);
}

.level-name {
  font-size: 13px;
}

.level-mini-progress {
  gap: 10px;
}

.level-body.open {
  padding: 14px 14px 8px;
}

.level-body .lab-item {
  position: relative;
  border-radius: 6px;
  padding: 13px 14px;
  background: rgba(251,249,246,.62);
}

.level-body .lab-item:hover {
  background: rgba(244,239,230,.72);
  border-color: rgba(30,100,152,.22);
  box-shadow: inset 3px 0 0 rgba(30,100,152,.32);
}

.lab-title-text {
  font-size: 13px;
  line-height: 1.35;
}

.lab-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
}

.lab-public-stats {
  margin-left: auto;
  color: #6B6258;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  opacity: .72;
  white-space: nowrap;
}

.lab-status {
  margin-left: auto;
}

.tag {
  border-radius: 999px;
}

.tag-updated {
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  border: 1px solid #86efac;
}

.level-update-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid #86efac;
}

.tag-new {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  border: 1px solid #93c5fd;
}

.level-new-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid #93c5fd;
}

.level-block:nth-of-type(1) { transition-delay: 0s; }
.level-block:nth-of-type(2) { transition-delay: .08s; }
.level-block:nth-of-type(3) { transition-delay: .16s; }
.level-block:nth-of-type(4) { transition-delay: .24s; }
.level-block:nth-of-type(5) { transition-delay: .32s; }

.universe-seo {
  background: rgba(251,249,246,.98);
  border-top: 1px solid rgba(26,22,18,.08);
  box-shadow: none;
}

.universe-seo .section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #6B6258;
  letter-spacing: 0;
  text-transform: none;
}

.universe-seo .seo-text {
  max-width: 720px;
  color: var(--text2);
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px solid rgba(26,22,18,.08);
  padding-top: 14px;
}

@media(max-width:860px) {
  .universe-hero {
    padding: 42px 24px;
  }
}

@media(max-width:700px) {
  .universe-hero {
    padding: 36px 16px;
  }
  .universe-section {
    padding: 34px 16px;
  }
  .universe-hero-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
  .progress-global {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .progress-global-bar {
    width: 100%;
  }
  .level-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 14px;
  }
  .level-name {
    min-width: 0;
  }
  .level-chevron {
    margin-left: 0;
  }
  .level-mini-progress {
    grid-column: 2 / -1;
    width: 100%;
    margin-left: 0;
  }
  .level-mini-bar {
    flex: 1;
  }
  .lab-item {
    gap: 10px;
  }
  .lab-public-stats {
    flex-basis: 100%;
    margin-left: 0;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
