/* HyPrisonCore docs add-on — use with main site style.css. Same theme, docs layout only. */
:root {
  --code-bg: #0d1219;
  --table-header: rgba(56, 232, 181, 0.12);
  --table-row-alt: rgba(255, 255, 255, 0.02);
}

/* Docs layout: sidebar + main (below site header) */
.docs-wrap {
  display: flex;
  min-height: calc(100vh - 120px);
}

.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.docs-sidebar .brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.docs-sidebar .brand a {
  color: var(--text);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.docs-sidebar .brand a:hover {
  color: var(--accent-1);
  text-decoration: none;
}

.docs-sidebar .brand .sub {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-weight: 400;
}

.docs-nav {
  list-style: none;
  padding-left: 0;
}

.docs-nav li {
  margin: 0;
}

.docs-nav a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.docs-nav a:hover {
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.docs-nav a.is-active {
  color: var(--accent-1);
  border-left-color: var(--accent-1);
  background: rgba(56, 232, 181, 0.06);
}

.docs-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem 4rem;
  max-width: 820px;
}

.docs-main h1 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.docs-main .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.docs-main h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent-1);
}

.docs-main h3 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.docs-main p {
  margin-bottom: 1rem;
  color: var(--text);
}

.docs-main ul,
.docs-main ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-main li {
  margin-bottom: 0.35rem;
}

/* Code & formula blocks */
.docs-main .code,
.docs-main .formula {
  font-family: "Consolas", "Monaco", "Liberation Mono", monospace;
  font-size: 0.88rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  color: var(--accent-3);
}

.docs-main .formula {
  color: var(--accent-warm);
  border-left: 3px solid var(--accent-warm);
}

.docs-main .code-inline {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent-3);
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.docs-table th {
  background: var(--table-header);
  color: var(--accent-1);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

.docs-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.docs-table .code-inline {
  white-space: nowrap;
  word-break: keep-all;
}

.callout {
  background: rgba(56, 232, 181, 0.08);
  border-left: 4px solid var(--accent-1);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

.callout strong {
  color: var(--accent-1);
}

.docs-back {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.docs-back a {
  color: var(--accent-2);
}

.docs-back a:hover {
  text-decoration: underline;
}

.docs-wip {
  color: var(--accent-warm);
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

/* Roadmap: badass timeline with branches, glow, nodes */
.roadmap {
  position: relative;
  padding-left: 0;
  margin-top: 2.5rem;
  padding-bottom: 2rem;
}

/* Vertical trunk with glow */
.roadmap-trunk {
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg,
    var(--accent-1) 0%,
    rgba(56, 232, 181, 0.6) 40%,
    var(--accent-2) 100%);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(56, 232, 181, 0.25), 0 0 24px rgba(87, 183, 255, 0.1);
}

/* Branch connector: horizontal line from trunk to card */
.roadmap-branch {
  position: relative;
  margin-bottom: 1.25rem;
  padding-left: 3.5rem;
}

.roadmap-branch::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.75rem;
  width: 1.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), rgba(56, 232, 181, 0.5));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(56, 232, 181, 0.3);
}

/* Node dot on the trunk at each branch */
.roadmap-branch::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 1.25rem;
  width: 14px;
  height: 14px;
  background: var(--accent-1);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(56, 232, 181, 0.5), 0 0 12px rgba(56, 232, 181, 0.4);
}

.roadmap-branch:nth-child(even)::after {
  background: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(87, 183, 255, 0.5), 0 0 12px rgba(87, 183, 255, 0.3);
}

.roadmap-branch#npcs-guide::after {
  background: var(--accent-warm);
  box-shadow: 0 0 0 1px rgba(243, 192, 107, 0.5), 0 0 12px rgba(243, 192, 107, 0.35);
}

/* Card: glassy, accent border, hover glow */
.roadmap-node {
  background: linear-gradient(135deg, rgba(13, 18, 25, 0.95) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.roadmap-node:hover {
  border-left-color: var(--accent-1);
  box-shadow: 0 0 0 1px rgba(56, 232, 181, 0.2), 0 0 24px rgba(56, 232, 181, 0.12), 0 6px 24px rgba(0, 0, 0, 0.25);
}

.roadmap-node-wip {
  border-left-color: var(--accent-warm);
}

.roadmap-node-wip:hover {
  box-shadow: 0 0 0 1px rgba(243, 192, 107, 0.25), 0 0 24px rgba(243, 192, 107, 0.12), 0 6px 24px rgba(0, 0, 0, 0.25);
}

.roadmap-node details {
  display: block;
}

.roadmap-node summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: background 0.2s ease;
}

.roadmap-node summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.roadmap-node summary::-webkit-details-marker {
  display: none;
}

.roadmap-node summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.2s ease;
}

.roadmap-node details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-1);
}

.roadmap-node-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--accent-1);
  text-shadow: 0 0 20px rgba(56, 232, 181, 0.15);
}

.roadmap-node-wip .roadmap-node-title {
  color: var(--accent-warm);
  text-shadow: 0 0 20px rgba(243, 192, 107, 0.15);
}

/* Status badges: pill style with subtle glow; align to the right of the summary row */
.roadmap-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-left: auto;
  flex-shrink: 0;
}

.roadmap-status-done {
  background: linear-gradient(135deg, rgba(56, 232, 181, 0.25) 0%, rgba(56, 232, 181, 0.12) 100%);
  color: var(--accent-1);
  border-color: rgba(56, 232, 181, 0.35);
  box-shadow: 0 0 12px rgba(56, 232, 181, 0.15), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.roadmap-status-wip {
  background: linear-gradient(135deg, rgba(243, 192, 107, 0.28) 0%, rgba(243, 192, 107, 0.12) 100%);
  color: var(--accent-warm);
  border-color: rgba(243, 192, 107, 0.4);
  box-shadow: 0 0 12px rgba(243, 192, 107, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.roadmap-status-planned {
  background: linear-gradient(135deg, rgba(87, 183, 255, 0.22) 0%, rgba(87, 183, 255, 0.1) 100%);
  color: var(--accent-2);
  border-color: rgba(87, 183, 255, 0.35);
  box-shadow: 0 0 12px rgba(87, 183, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.roadmap-details {
  padding: 0 1.35rem 1.35rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.roadmap-details p,
.roadmap-details ul {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.roadmap-details p:first-child,
.roadmap-details ul:first-child {
  margin-top: 1rem;
}

.roadmap-details a {
  color: var(--accent-2);
}

.roadmap-details a:hover {
  text-decoration: underline;
  color: var(--accent-1);
}

@media (max-width: 768px) {
  .docs-wrap {
    flex-direction: column;
    min-height: auto;
  }

  .docs-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
  }

  .docs-main {
    padding: 1.5rem 1.25rem 3rem;
  }

  .docs-main h1 {
    font-size: 1.6rem;
  }

  .docs-table th,
  .docs-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 769px) {
  .docs-header-mobile {
    display: none !important;
  }
}
