/* DOTG Full Chronicle Hub */

.chronicle-hero .sub-hero-copy {
  max-width: 840px;
}

.chronicle-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.chronicle-section {
  padding-top: 34px;
}

.chronicle-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}

.chronicle-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.chronicle-panel,
.chronicle-featured,
.chronicle-entry {
  background:
    radial-gradient(circle at top left, rgba(240,196,90,.08), transparent 38%),
    rgba(17,14,20,.86);
  border: 1px solid rgba(240,196,90,.18);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.34), 0 0 22px rgba(240,196,90,.05);
  backdrop-filter: blur(10px);
}

.chronicle-panel {
  padding: 18px;
}

.chronicle-panel h3 {
  color: #fff8ec;
  font-family: "Cinzel", serif;
  margin: 4px 0 10px;
}

.chronicle-panel p {
  color: rgba(232,220,200,.76);
  line-height: 1.55;
}

.chronicle-panel code {
  color: #f0c45a;
  background: rgba(5,3,6,.48);
  border: 1px solid rgba(240,196,90,.14);
  border-radius: 6px;
  padding: 2px 5px;
}

.chronicle-filters {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.chronicle-filter,
.chronicle-refresh,
.chronicle-open-btn {
  appearance: none;
  border: 1px solid rgba(240,196,90,.22);
  background: rgba(5,3,6,.48);
  color: rgba(232,220,200,.82);
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: .72rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.chronicle-filter:hover,
.chronicle-refresh:hover,
.chronicle-open-btn:hover,
.chronicle-filter.is-active {
  transform: translateY(-1px);
  border-color: rgba(240,196,90,.58);
  color: #f0c45a;
  background: rgba(240,196,90,.09);
  box-shadow: 0 0 18px rgba(240,196,90,.10);
}

.chronicle-mini-stats {
  display: grid;
  gap: 12px;
}

.chronicle-stat {
  padding: 12px;
  border-radius: 14px;
  background: rgba(5,3,6,.42);
  border: 1px solid rgba(240,196,90,.12);
}

.chronicle-stat span {
  display: block;
  color: #f0c45a;
  font-family: "Cinzel", serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.chronicle-stat small {
  color: rgba(232,220,200,.58);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chronicle-featured {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  min-height: 360px;
  margin-bottom: 24px;
  transition: opacity .22s ease, transform .22s ease;
}

.chronicle-featured.fade-out {
  opacity: .42;
  transform: translateY(3px);
}

.chronicle-featured-image {
  min-height: 360px;
  background-image: url("assets/chronicle/default.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}

.chronicle-featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 35%, rgba(5,3,4,.78) 100%),
    radial-gradient(circle at center, transparent 40%, rgba(0,0,0,.38) 100%);
}

.chronicle-featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chronicle-featured-label,
.chronicle-entry-label {
  display: inline-flex;
  align-self: flex-start;
  color: #050306;
  background: linear-gradient(135deg, #fff2a8, #f0c45a);
  border-radius: 7px;
  padding: 4px 8px;
  font-family: "Cinzel", serif;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(240,196,90,.16);
}

.chronicle-featured h2 {
  margin: 12px 0 0;
  color: #fff8ec;
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  cursor: pointer;
}

.chronicle-featured h2:hover {
  color: #f0c45a;
}

.chronicle-featured p {
  color: rgba(232,220,200,.80);
  line-height: 1.62;
  margin-top: 14px;
  white-space: pre-wrap;
}

.chronicle-featured-meta {
  color: rgba(232,220,200,.58);
  margin-top: 12px;
  font-size: .9rem;
}

.chronicle-open-btn {
  margin-top: 18px;
  color: #f0c45a;
  width: fit-content;
}

.chronicle-list-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.chronicle-list-header h2 {
  margin: 3px 0 0;
  color: #fff8ec;
  font-family: "Cinzel", serif;
}

.chronicle-list {
  display: grid;
  gap: 14px;
}

.chronicle-entry {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.chronicle-entry:hover,
.chronicle-entry.is-active {
  transform: translateY(-2px);
  border-color: rgba(240,196,90,.48);
  box-shadow: 0 20px 52px rgba(0,0,0,.40), 0 0 22px rgba(240,196,90,.08);
}

.chronicle-entry-thumb {
  min-height: 106px;
  border-radius: 13px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(240,196,90,.14);
  box-shadow: inset 0 -32px 44px rgba(0,0,0,.36);
}

.chronicle-entry h3 {
  margin: 8px 0 0;
  color: #fff8ec;
  font-family: "Cinzel", serif;
  font-size: 1.08rem;
  line-height: 1.24;
}

.chronicle-entry p {
  margin-top: 8px;
  color: rgba(232,220,200,.72);
  line-height: 1.45;
}

.chronicle-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(232,220,200,.55);
  font-size: .86rem;
  margin-top: 10px;
}

.chronicle-loading {
  padding: 18px;
  border-radius: 16px;
  background: rgba(17,14,20,.78);
  border: 1px solid rgba(240,196,90,.16);
  color: rgba(232,220,200,.70);
}

@media (max-width: 1250px) {
  .chronicle-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .chronicle-side-right {
    display: none;
  }
}

@media (max-width: 980px) {
  .chronicle-shell {
    grid-template-columns: 1fr;
  }

  .chronicle-side {
    position: relative;
    top: auto;
  }

  .chronicle-side-left {
    grid-template-columns: 1fr 1fr;
  }

  .chronicle-featured {
    grid-template-columns: 1fr;
  }

  .chronicle-featured-image {
    min-height: 260px;
  }

  .chronicle-featured-image::after {
    background: linear-gradient(to bottom, transparent 36%, rgba(5,3,4,.88) 100%);
  }
}

@media (max-width: 640px) {
  .chronicle-side-left {
    grid-template-columns: 1fr;
  }

  .chronicle-list-header {
    display: block;
  }

  .chronicle-refresh {
    margin-top: 10px;
  }

  .chronicle-entry {
    grid-template-columns: 1fr;
  }

  .chronicle-entry-thumb {
    min-height: 180px;
  }
}


/* Immersive Chronicle Sidebar */

.chronicle-lore,
.chronicle-pantheon,
.chronicle-class {
  position: relative;
  overflow: hidden;
}

.chronicle-lore::before,
.chronicle-pantheon::before,
.chronicle-class::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(240,196,90,.18), transparent 42%),
    linear-gradient(135deg, transparent, rgba(0,0,0,.34));
}

.chronicle-lore {
  border-left: 3px solid #f0c45a;
}

.chronicle-pantheon {
  border-left: 3px solid #8a2be2;
}

.chronicle-class {
  border-left: 3px solid #4caf50;
}

.chronicle-lore h3,
.chronicle-pantheon h3,
.chronicle-class h3,
.chronicle-lore p,
.chronicle-pantheon p,
.chronicle-class p,
.chronicle-lore .eyebrow,
.chronicle-pantheon .eyebrow,
.chronicle-class .eyebrow {
  position: relative;
  z-index: 1;
}

.chronicle-lore h3,
.chronicle-pantheon h3,
.chronicle-class h3 {
  font-family: "Cinzel", serif;
  color: #fff8ec;
}

.chronicle-lore p,
.chronicle-pantheon p,
.chronicle-class p {
  color: rgba(232,220,200,.78);
  line-height: 1.55;
}
