/* Post page styles — extends ../style.css */

.post-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  z-index: 300;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.25);
}

.post-wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 max(24px, 4vw);
  position: relative;
  z-index: 1;
}

.post-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0 52px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  cursor: none;
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--cyan); gap: 12px; }

.post-num-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Header */
.post-header { margin-bottom: 52px; }

.post-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.post-category::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--cyan);
}

.post-header h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
}
.post-byline .sep { opacity: 0.4; }

/* Divider under header */
.post-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin: 40px 0 44px;
}

/* Body */
.post-body {
  color: var(--text-dim);
  line-height: 1.95;
  font-size: 0.975rem;
  font-weight: 300;
}
.post-body > p { margin-bottom: 26px; }

.post-body h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin: 56px 0 18px;
  line-height: 1.2;
}

.post-body h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 12px;
}

.post-body a {
  color: var(--purple-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(159,111,243,0.3);
  cursor: none;
  transition: color 0.2s, border-color 0.2s;
}
.post-body a:hover { color: var(--purple-light); border-color: var(--purple-light); }

/* Code */
.post-body pre {
  position: relative;
  background: rgba(7,6,26,0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  overflow-x: auto;
  margin: 28px 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--text-dim);
}
.post-body pre::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 10px 10px 0 0;
}

.post-body code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text-dim);
  font-size: 1em;
}

/* Lists */
.post-body ul, .post-body ol {
  padding-left: 20px;
  margin-bottom: 26px;
}
.post-body li { margin-bottom: 8px; }
.post-body ul li::marker { color: var(--purple-mid); }

/* Callout box */
.callout {
  background: rgba(124,58,237,0.06);
  border: 1px solid var(--border);
  border-left: 2px solid var(--purple);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.callout strong { color: var(--text); font-weight: 500; }

/* End rule */
hr.end-rule {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 60px 0 40px;
}

/* Footer within post */
.post-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 96px;
  gap: 20px;
}
.post-footer-nav a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}
.post-footer-nav a:hover { color: var(--cyan); }
