/*
 * gunslinger-radio-publication.css
 * Gunslinger Auctions — Radio Show Blog Post Articles
 * v2.0 — Visual language matches the Gunslinger Radio Show main page.
 * All selectors scoped under .gs-wrap to prevent bleed into Blocksy/WordPress theme.
 *
 * COLOR SYSTEM:
 *   --brandred  = interactive/CTA elements, active states, section entry accents
 *   --gold      = labels, metadata, decorative rules, hover text, secondary accents
 *   --gold-dim  = dimmed gold for H3, dimmed hover states
 *
 * FONT IMPORT: Include in the generated HTML before this stylesheet loads:
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@400;500&display=swap">
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

.gs-wrap {
  --black:           #0b0c10;
  --near-black:      #111318;
  --panel:           #16181f;
  --brandred:        #630000;
  --brandred-hover:  #7a0000;
  --gold:            #fcb900;
  --gold-dim:        #c99200;
  --white:           #f4f1ec;
  --muted:           #9a9590;
  --border:          rgba(255, 255, 255, 0.12);
  --radius-sm:       6px;
  --radius-md:       14px;
  --radius-lg:       24px;
  --font-display:    'Playfair Display', Georgia, serif;
  --font-condensed:  'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:       'Barlow', system-ui, sans-serif;
  --font-mono:       'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   RESET (scoped)
   ============================================================ */

.gs-wrap *,
.gs-wrap *::before,
.gs-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.gs-wrap img   { display: block; max-width: 100%; height: auto; }
.gs-wrap ul,
.gs-wrap ol    { list-style: none; }
.gs-wrap a     { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(252,185,0,0.35); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.gs-wrap a:hover { color: var(--gold-dim); text-decoration-color: var(--gold-dim); }

/* ============================================================
   LAYOUT — full bleed with generous breathing room
   ============================================================ */

.gs-wrap .gs-container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ============================================================
   ARTICLE WRAPPER
   ============================================================ */

.gs-wrap article {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* ============================================================
   DECORATIVE GOLD RULE
   Matches radio show page exactly.
   Usage: <div class="gs-rule"><span>Label Text</span></div>
   ============================================================ */

.gs-wrap .gs-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 0.5rem 1.5rem;
}

.gs-wrap .gs-rule::before,
.gs-wrap .gs-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.gs-wrap .gs-rule span {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ============================================================
   H1 — ARTICLE TITLE
   ============================================================ */

.gs-wrap h1[itemprop="headline"] {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.gs-wrap h1[itemprop="headline"]::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--brandred);
  border-radius: 2px;
  margin-top: 0.75rem;
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */

.gs-wrap .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-block: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brandred);
  background: var(--near-black);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.gs-wrap .video-container #gunslinger-video,
.gs-wrap .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   READING TIME
   ============================================================ */

.gs-wrap .reading-time {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gs-wrap .reading-time::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9590' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ============================================================
   INTRO SUMMARY / SPEAKABLE
   ============================================================ */

.gs-wrap .episode-summary {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brandred);
  border-radius: var(--radius-md);
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.gs-wrap .toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-block: 0 2.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gs-wrap .toc:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px var(--gold-dim);
}

.gs-wrap .toc-title {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.gs-wrap .toc ol {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gs-wrap .toc li {
  counter-increment: toc-counter;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.gs-wrap .toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brandred);
  flex-shrink: 0;
  min-width: 1.5em;
}

.gs-wrap .toc a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.gs-wrap .toc a:hover {
  color: var(--gold);
}

/* ============================================================
   CONTENT SECTIONS — wrapper per section for alternating bg
   ============================================================ */

.gs-wrap .gs-section {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.gs-wrap .gs-section:last-of-type {
  border-bottom: none;
}

.gs-wrap .gs-section--panel {
  background: var(--near-black);
  margin-inline: calc(clamp(1.25rem, 5vw, 3rem) * -1);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ============================================================
   SECTION HEADINGS (H2)
   No arbitrary left borders — heading identity comes from
   the gs-rule divider above each section.
   ============================================================ */

.gs-wrap h2 {
  font-family: var(--font-condensed);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

/* Special heading variants used by FAQ / HowTo / Sources */
.gs-wrap .gs-section-label {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

/* subsection H3 */
.gs-wrap h3 {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

/* ============================================================
   PROSE PARAGRAPHS
   ============================================================ */

.gs-wrap p {
  margin-bottom: 1.25rem;
  color: var(--white);
  line-height: 1.75;
}

.gs-wrap strong {
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   TIMESTAMP BUTTONS
   Red is the interactive/CTA color — timestamp is a CTA.
   Everything about this button is consistently red on idle,
   with gold text as the label (metadata role).
   ============================================================ */

.gs-wrap .timestamp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brandred);
  border-radius: var(--radius-sm);
  padding: 0.25em 0.75em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  letter-spacing: 0.04em;
}

.gs-wrap .timestamp-btn::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent var(--brandred);
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.gs-wrap .timestamp-btn:hover {
  background: var(--brandred);
  border-color: var(--brandred);
  color: var(--white);
  transform: translateY(-1px);
}

.gs-wrap .timestamp-btn:hover::before {
  border-color: transparent transparent transparent var(--white);
}

.gs-wrap .timestamp-btn:active {
  background: var(--brandred-hover);
  border-color: var(--brandred-hover);
  transform: translateY(0);
}

.gs-wrap .timestamp-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================================
   HOWTO BLOCK
   ============================================================ */

.gs-wrap #section-howto {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brandred);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-block: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gs-wrap #section-howto:hover {
  box-shadow: 0 0 0 1px rgba(99, 0, 0, 0.4);
}

.gs-wrap .howto-steps {
  list-style: none;
  counter-reset: howto-counter;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}

.gs-wrap .howto-steps li {
  counter-increment: howto-counter;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  line-height: 1.65;
  color: var(--white);
  font-size: 1rem;
}

/* Red badge for step numbers — red is the action/CTA color */
.gs-wrap .howto-steps li::before {
  content: counter(howto-counter);
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--brandred);
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ============================================================
   FAQ — ALWAYS OPEN (dt/dd pattern, matches radio show page)
   ============================================================ */

.gs-wrap #section-faq {
  background: var(--near-black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-inline: calc(clamp(1.25rem, 5vw, 3rem) * -1);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-block: 2rem;
  margin-block: 2rem;
}

.gs-wrap #faq-heading {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: none;
  padding: 0;
  margin-bottom: 2rem;
  display: block;
}

.gs-wrap .gs-faq {
  max-width: 860px;
  margin-inline: auto;
}

.gs-wrap .gs-faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
}

.gs-wrap .gs-faq-item:first-child {
  border-top: 1px solid var(--border);
}

.gs-wrap .gs-faq-item:last-child {
  border-bottom: none;
}

/* Question — dt equivalent */
.gs-wrap .gs-faq-question {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.35;
  /* Always open — not a button */
  cursor: default;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.gs-wrap .gs-faq-question::before {
  content: 'Q';
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: rgba(252, 185, 0, 0.12);
  border: 1px solid rgba(252, 185, 0, 0.3);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Answer — dd equivalent */
.gs-wrap .gs-faq-answer {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 2.1rem;
  display: block; /* always visible */
}

.gs-wrap .gs-faq-answer p {
  margin: 0;
  color: var(--muted);
}

.gs-wrap .gs-faq-answer a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   SOURCES SECTION
   ============================================================ */

.gs-wrap #section-sources {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.gs-wrap #sources-heading {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
  display: block;
}

.gs-wrap #section-sources p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   INLINE LISTS (prose context)
   ============================================================ */

.gs-wrap ul:not(.toc ol):not(.howto-steps) li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.gs-wrap ul:not(.toc ol):not(.howto-steps) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--brandred);
  border-radius: 50%;
}

.gs-wrap ol:not(.toc ol):not(.howto-steps) {
  list-style: decimal;
  padding-left: 1.5rem;
}

.gs-wrap ol:not(.toc ol):not(.howto-steps) li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .gs-wrap .toc {
    padding: 1.25rem;
  }

  .gs-wrap #section-howto {
    padding: 1.25rem;
  }

  .gs-wrap #section-faq {
    margin-inline: calc(clamp(1rem, 4vw, 2rem) * -1);
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  .gs-wrap .gs-section--panel {
    margin-inline: calc(clamp(1rem, 4vw, 2rem) * -1);
    padding-inline: clamp(1rem, 4vw, 2rem);
  }
}

@media (max-width: 480px) {
  .gs-wrap .gs-faq-answer {
    padding-left: 0;
  }

  .gs-wrap h2 {
    font-size: 1.25rem;
  }
}
