/* ============================================================
   FLOW REVELATION — blog/post.css
   Styles for long-form blog post pages.
   Imported alongside ../styles.css (which handles the nav,
   buttons, and base reset).
   ============================================================ */


/* ------------------------------------------------------------
   CATEGORY ACCENT COLORS
   Each post sets its accent color by adding a class to <body>.
   Every component below uses var(--post-accent) so it
   automatically adapts to whichever category the post is in.
   ------------------------------------------------------------ */
body.category--community {
  --post-accent:     #00e87a;
  --post-accent-dim: rgba(0, 232, 122, 0.1);
  --post-accent-mid: rgba(0, 232, 122, 0.25);
}

body.category--manifesto {
  --post-accent:     #7b2fff;
  --post-accent-dim: rgba(123, 47, 255, 0.1);
  --post-accent-mid: rgba(123, 47, 255, 0.25);
}

body.category--industry {
  --post-accent:     #ff2d78;
  --post-accent-dim: rgba(255, 45, 120, 0.1);
  --post-accent-mid: rgba(255, 45, 120, 0.25);
}


/* ------------------------------------------------------------
   POST LAYOUT
   Narrow max-width for comfortable reading (~65 characters).
   The wider .post__wide class lets certain components
   "break out" of the text column for visual breathing room.
   ------------------------------------------------------------ */
.post {
  padding-top: 100px; /* Clear the fixed nav */
  padding-bottom: 6rem;
}

/* The reading column — all body text lives here */
.post__body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Wide version — for components like stat rows and tables */
.post__wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ------------------------------------------------------------
   POST HEADER
   Category label → thin accent line → big title → meta line.
   ------------------------------------------------------------ */
.post__header {
  max-width: 680px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

/* The category label, e.g. "Community" */
.post__category {
  display: inline-block;
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--post-accent);
  padding-bottom: 0.55rem;
  margin-bottom: 1.4rem;
}

/* The thin accent line that sits below the category label */
.post__category::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--post-accent);
  border-radius: 2px;
}

/* The main post title */
.post__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f0f0f5;
  margin-bottom: 1.4rem;
}

/* Date · Read time */
.post__meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: #8888a0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* The · separator between date and read time */
.post__meta-sep {
  width: 3px;
  height: 3px;
  background-color: #8888a0;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Thin horizontal rule between header and body */
.post__divider {
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ------------------------------------------------------------
   POST BODY TYPOGRAPHY
   Optimized for long-form reading.
   ------------------------------------------------------------ */
.post__body p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.82;
  color: #9898b0;
  margin-bottom: 1.6rem;
}

/* Strong text pops to white for emphasis */
.post__body p strong {
  color: #f0f0f5;
  font-weight: 600;
}

/* Italic text uses the post's accent color */
.post__body p em {
  color: var(--post-accent);
  font-style: italic;
}

/* Section headings (H2) */
.post__body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #f0f0f5;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 3.5rem;
  margin-bottom: 1.1rem;
}

/* Sub-section headings (H3) */
.post__body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
}

/* Standard unordered lists */
.post__body ul {
  list-style: none;
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post__body ul li {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #9898b0;
  padding-left: 1.4rem;
  position: relative;
}

/* Accent-colored bullet */
.post__body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--post-accent);
  font-weight: 700;
}


/* ============================================================
   COMPONENTS
   Special styled blocks for visual variety in long posts.
   Each component has a usage comment above it.
   ============================================================ */


/* ------------------------------------------------------------
   PULL QUOTE
   For a powerful sentence that deserves to stand alone.
   Inspired by the "THIS HAS A NAME" callout style.

   Usage:
   <blockquote class="pull-quote">
     <p>The person who controls the knowledge controls who rises.</p>
   </blockquote>
   ------------------------------------------------------------ */
.pull-quote {
  margin: 3rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 3px solid var(--post-accent);
  background-color: var(--post-accent-dim);
  border-radius: 0 12px 12px 0;
}

.pull-quote p {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
  font-style: italic;
  font-weight: 600 !important;
  color: var(--post-accent) !important;
  line-height: 1.45 !important;
  margin-bottom: 0 !important;
}


/* ------------------------------------------------------------
   NUMBERED STEP LIST (01 / 02 / 03 style)
   For breaking down multi-part arguments or processes.
   Matches the "01 / 02 / 03 / 04" structure from slide 2.

   Usage:
   <ol class="step-list">
     <li>
       <span class="step-list__num">01</span>
       <div class="step-list__content">
         <strong>Step Title</strong>
         <p>Step description text.</p>
       </div>
     </li>
   </ol>
   ------------------------------------------------------------ */
.step-list {
  list-style: none;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-list li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: flex-start;
}

.step-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* The big number: 01, 02, 03... */
.step-list__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--post-accent);
  opacity: 0.6;
  flex-shrink: 0;
  width: 3rem;
  padding-top: 0.1rem;
}

.step-list__content {
  flex: 1;
}

/* Inline padding: 0 resets the post__body p padding that
   would otherwise add extra space inside the step list */
.step-list__content strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 0.4rem;
}

.step-list__content p {
  margin-bottom: 0 !important;
  font-size: 0.95rem !important;
}


/* ------------------------------------------------------------
   COMPARISON TABLE
   Two-column table. Header row in accent color.
   Matches the comparison table from slide 3.

   Usage:
   <div class="comparison-table">
     <table>
       <thead>
         <tr><th>Standard Deal</th><th>Fair Deal</th></tr>
       </thead>
       <tbody>
         <tr><td>Free product only</td><td>Cash + product</td></tr>
         <tr><td>Perpetual rights</td><td>Time-limited license</td></tr>
       </tbody>
     </table>
   </div>
   ------------------------------------------------------------ */
.comparison-table {
  margin: 2.5rem auto;
  overflow-x: auto; /* Lets the table scroll horizontally on small screens */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  min-width: 400px; /* Prevents too much squishing before horizontal scroll kicks in */
}

/* Header row — accent color background */
.comparison-table thead tr {
  background-color: var(--post-accent-mid);
}

.comparison-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  color: var(--post-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Body rows — alternating dark backgrounds */
.comparison-table tbody tr:nth-child(odd) {
  background-color: #0e0e1a;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #13131f;
}

.comparison-table tbody td {
  padding: 0.9rem 1.25rem;
  color: #9898b0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* First column gets slightly lighter text for emphasis */
.comparison-table tbody td:first-child {
  color: #c0c0d8;
}


/* ------------------------------------------------------------
   STAT CALLOUT ROW
   Big numbers side-by-side. Matches slide 4's stat style.
   Usually 2 stats per row (flex wraps on mobile).

   Usage:
   <div class="stat-row">
     <div class="stat">
       <span class="stat__number">72%</span>
       <span class="stat__label">of artists surveyed underpaid</span>
     </div>
     <div class="stat">
       <span class="stat__number">$40</span>
       <span class="stat__label">average wholesale product cost</span>
     </div>
   </div>
   ------------------------------------------------------------ */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px; /* Gap is simulated by background on the container */
  margin: 2.5rem 0;
  background-color: rgba(255, 255, 255, 0.06); /* Gap color */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  flex: 1;
  min-width: 160px; /* Wrap into a column on very small screens */
  background-color: #0e0e1a;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* The big number */
.stat__number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--post-accent);
  /* Subtle glow on the number */
  text-shadow: 0 0 30px color-mix(in srgb, var(--post-accent) 40%, transparent);
}

/* The label below the number */
.stat__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #8888a0;
  line-height: 1.4;
  max-width: 180px;
}


/* ------------------------------------------------------------
   "THE FIX" / POST CTA BOX
   End-of-post call-to-action. Styled like slide 5's green
   callout — accent border, dark background, clear action.

   Usage:
   <div class="post-cta">
     <div class="post-cta__label">The Fix</div>
     <h3 class="post-cta__title">What you can do right now.</h3>
     <p class="post-cta__body">One sentence framing of the action.</p>
     <a href="#" class="btn btn--green">Action Text →</a>
   </div>
   ------------------------------------------------------------ */
.post-cta {
  margin: 4rem 0 2rem;
  padding: 2.5rem;
  background-color: var(--post-accent-dim);
  border: 1px solid var(--post-accent-mid);
  border-left: 4px solid var(--post-accent);
  border-radius: 0 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* "The Fix" eyebrow */
.post-cta__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--post-accent);
}

.post-cta__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0f0f5;
  line-height: 1.2;
  margin: 0;
}

.post-cta__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  color: #9898b0;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}


/* ------------------------------------------------------------
   POST FOOTER
   Back link + subtle closing signature.
   ------------------------------------------------------------ */
.post__footer {
  max-width: 680px;
  margin: 5rem auto 0;
  padding: 2.5rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.post__back {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8888a0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.25s ease;
}

.post__back:hover {
  color: #f0f0f5;
}

.post__footer-sig {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: #8888a0;
  font-style: italic;
}


/* ------------------------------------------------------------
   PLACEHOLDER MARKERS
   Wraps [NEED STAT], [FILL IN], etc. in the drafts so they're
   visible while editing. Remove the <mark> tags when you
   fill in the real content.
   ------------------------------------------------------------ */
mark.placeholder {
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: #ffd166;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.82em;
  font-style: normal;
  cursor: help;
}


/* ------------------------------------------------------------
   SPACING HELPER
   Add space between components that aren't paragraphs
   (e.g., a stat-row followed immediately by a pull-quote).
   ------------------------------------------------------------ */
.post__body > * + .pull-quote,
.post__body > * + .step-list,
.post__body > * + .post-cta {
  margin-top: 3rem;
}

.post__wide + .post__body,
.post__body + .post__wide {
  margin-top: 0;
}
