/* Devlog page. Builds on landing.css tokens. Self-contained sub-page hero
   plus the update timeline and category filters. */

.subpage { min-height: 100vh; }
.subpage-main { padding-bottom: 20px; }

/* ---- shared sub-page hero ------------------------------------------- */
.page-hero {
  position: relative; padding: calc(96px + 4vw) 0 40px; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 140% at 82% -20%, rgba(155, 121, 176, 0.16), transparent 55%),
    linear-gradient(180deg, var(--ink-850), var(--ink-900));
}
.page-hero__aura { position: absolute; inset: -40% 24% auto -10%; height: 480px; background: radial-gradient(60% 60% at 30% 40%, rgba(220, 169, 79, 0.12), transparent 70%); filter: blur(22px); pointer-events: none; }
.page-hero__inner { position: relative; }
.page-hero h1 { font-family: var(--display); font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1; letter-spacing: 0.01em; margin: 10px 0 18px; color: var(--paper); }
.page-hero--devlog h1 { background: linear-gradient(178deg, #f5f0e2 0%, #e6d4ef 42%, var(--violet) 82%, #6c4d81 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4)); }
.page-hero__lead { max-width: 760px; color: var(--stone); font-size: 1.14rem; line-height: 1.66; }

/* ---- filters --------------------------------------------------------- */
.devlog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.devlog-filter {
  font-family: var(--utility); font-size: 0.86rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  color: var(--stone); background: rgba(12, 22, 17, 0.6); border: 1px solid var(--line-strong);
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.devlog-filter:hover { color: var(--paper); border-color: var(--gold-dark); }
.devlog-filter.is-active { color: var(--ink-950); background: var(--gold-hot); border-color: var(--gold-hot); font-weight: 600; }

/* ---- timeline -------------------------------------------------------- */
.devlog-shell { margin-top: 40px; }
.devlog-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.devlog-timeline::before {
  content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 6%, var(--line-strong) 94%, transparent);
}
.devlog-entry { display: grid; grid-template-columns: 150px 1fr; gap: 34px; padding-bottom: 26px; position: relative; }
.devlog-entry::before {
  content: ""; position: absolute; left: 144px; top: 30px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-900); border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--ink-900); z-index: 1;
}
.devlog-entry__rail { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 22px; padding-right: 34px; text-align: right; }
.devlog-ver { font-family: var(--display); font-size: 1.2rem; color: var(--paper); }
.devlog-cat { font-family: var(--utility); text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.68rem; padding: 4px 10px; border-radius: 6px; border: 1px solid transparent; }
.devlog-cat--world { color: #bcd6a6; background: rgba(120, 152, 99, 0.16); border-color: rgba(120, 152, 99, 0.4); }
.devlog-cat--combat { color: #f0b39a; background: rgba(207, 108, 73, 0.16); border-color: rgba(207, 108, 73, 0.4); }
.devlog-cat--economy { color: #f0d59a; background: rgba(220, 169, 79, 0.16); border-color: rgba(220, 169, 79, 0.4); }
.devlog-cat--tech { color: #a9d6cf; background: rgba(97, 168, 157, 0.16); border-color: rgba(97, 168, 157, 0.4); }
.devlog-cat--ui { color: #d3bce0; background: rgba(155, 121, 176, 0.18); border-color: rgba(155, 121, 176, 0.42); }

.devlog-entry__card {
  padding: 26px 30px; border-radius: 16px;
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-deep);
}
.devlog-entry__card h3 { font-family: var(--display); font-size: 1.5rem; color: var(--paper); margin-bottom: 12px; line-height: 1.15; }
.devlog-entry__card p { color: var(--stone); line-height: 1.62; }
.devlog-entry__card em { color: var(--paper); font-style: italic; }
.devlog-entry__card a { color: var(--gold-hot); text-decoration: none; border-bottom: 1px solid rgba(220, 169, 79, 0.35); }
.devlog-entry__card a:hover { color: #fff; border-bottom-color: var(--gold); }
.devlog-entry__card code { font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; color: var(--gold-hot); background: rgba(0, 0, 0, 0.3); padding: 1px 6px; border-radius: 5px; }
.devlog-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.devlog-tags li { font-family: var(--utility); font-size: 0.76rem; letter-spacing: 0.03em; color: var(--muted); padding: 5px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }

.devlog-entry.is-hidden { display: none; }
.devlog-empty { text-align: center; color: var(--quiet); padding: 40px 0; }

/* ---- responsive ------------------------------------------------------ */
@media (max-width: 760px) {
  .devlog-timeline::before, .devlog-entry::before { display: none; }
  .devlog-entry { grid-template-columns: 1fr; gap: 12px; padding-bottom: 18px; }
  .devlog-entry__rail { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; padding-top: 0; }
}
