/* ============================================================
   StrikeCraft Blog — Shared article styles
   Depends on: ../styles.css (loaded first in all blog pages)
   ============================================================ */

/* ── Reading progress bar ─────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, #e8605c 100%);
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Back-to-top button ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
  box-shadow: var(--shadow);
}

/* ── Scroll-reveal base ───────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Blog listing hero ────────────────────────────────────── */
.blog-listing {
  padding: 80px 0 104px;
}

.blog-listing-hero {
  max-width: 640px;
  margin-bottom: 56px;
}

.blog-listing-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 12px 0 16px;
  line-height: 1.0;
}

.blog-listing-hero .subhead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.blog-listing-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-listing-hero .eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Article card grid ────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.article-card::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--navy), var(--red));
  flex-shrink: 0;
}

.article-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.article-card .eyebrow {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-card .eyebrow .category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
}

.article-card h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}

.article-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(27, 27, 27, 0.68);
  margin: 0;
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 38, 64, 0.07);
  margin-top: 4px;
}

.article-card .read-link {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.article-card:hover .read-link {
  gap: 9px;
}

.article-card .read-time {
  font-size: 0.78rem;
  color: rgba(27, 27, 27, 0.4);
  font-weight: 500;
}

/* ── Article hero ─────────────────────────────────────────── */
.blog-hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid rgba(11, 38, 64, 0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative accent behind hero text */
.blog-hero::after {
  content: "⚾";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.blog-hero .eyebrow {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-hero .eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.blog-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 0 0 18px;
  max-width: 800px;
  line-height: 1.05;
}

.blog-hero .subhead {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin-top: 28px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(27, 27, 27, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(11, 38, 64, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  width: fit-content;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 0;
  margin-right: 14px;
  border-right: 1px solid rgba(11, 38, 64, 0.12);
}

.article-meta span:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: none;
}

/* ── Back link ────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  opacity: 0.5;
  padding: 0 0 28px;
  transition: opacity 0.2s, gap 0.2s;
}

.back-link:hover {
  opacity: 1;
  gap: 12px;
}

/* ── Article body layout ──────────────────────────────────── */
.article-body {
  padding: 64px 0 96px;
}

.article-content {
  max-width: 720px;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Section headings with accent bar */
.article-content h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 64px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
  line-height: 1.1;
}

.article-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
}

.article-content p {
  margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
  padding-left: 26px;
  margin: 0 0 22px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

.article-content a:hover {
  opacity: 0.75;
}

.article-content strong {
  font-weight: 700;
  color: var(--navy);
}

/* ── Callout boxes ────────────────────────────────────────── */
.callout {
  border-left: 4px solid var(--red);
  background: rgba(196, 55, 50, 0.055);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
  position: relative;
}

.callout.callout-info {
  border-left-color: var(--navy);
  background: rgba(11, 38, 64, 0.055);
}

.callout p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.7;
}

.callout strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.callout strong::before {
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  flex-shrink: 0;
}

.callout:not(.callout-info) strong::before {
  content: "⚠️";
}

.callout.callout-info strong::before {
  content: "💡";
}

/* ── Tables ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  margin: 36px 0 44px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.pitch-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.94rem;
  min-width: 540px;
}

.pitch-table thead {
  background: var(--navy);
  color: var(--white);
}

.pitch-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.pitch-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.pitch-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.pitch-table tbody tr {
  border-bottom: 1px solid rgba(11, 38, 64, 0.06);
  transition: background 0.12s ease;
}

.pitch-table tbody tr:last-child {
  border-bottom: none;
}

.pitch-table tbody tr:hover {
  background: rgba(196, 55, 50, 0.04);
}

.pitch-table tbody td {
  padding: 13px 18px;
  vertical-align: middle;
  line-height: 1.5;
}

.pitch-table tbody td:first-child {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.pitch-table tbody tr:nth-child(even) {
  background: rgba(244, 237, 225, 0.55);
}

.pitch-table tbody tr:nth-child(even):hover {
  background: rgba(196, 55, 50, 0.04);
}

/* ── In-article CTA band ─────────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0f3357 100%);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin: 64px 0 0;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* subtle baseball watermark behind CTA */
.article-cta::before {
  content: "⚾";
  position: absolute;
  right: 180px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.article-cta h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  color: var(--white);
}

.article-cta p {
  margin: 0;
  opacity: 0.75;
  max-width: 380px;
  font-size: 0.97rem;
  line-height: 1.6;
}

.article-cta .btn-primary,
.article-content .article-cta .btn-primary,
a.btn.btn-primary.article-cta-btn {
  background: var(--white);
  color: var(--navy) !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 16px 28px;
  font-size: 1rem;
  border: none;
}

.article-cta .btn-primary:hover,
.article-content .article-cta .btn-primary:hover {
  background: var(--cream);
  color: var(--navy) !important;
  opacity: 1;
  transform: translateY(-2px);
}

/* ── Related articles section ─────────────────────────────── */
.related-articles {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(11, 38, 64, 0.1);
}

.related-articles h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 0 0 28px;
  border-left: none;
  padding-left: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--red));
}

.related-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.related-card .eyebrow {
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.related-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}

.related-card p {
  font-size: 0.88rem;
  color: rgba(27, 27, 27, 0.65);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.related-card .read-link {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-hero::after {
    font-size: 10rem;
    right: -10px;
  }

  .article-cta::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 44px 0 36px;
  }

  .blog-hero::after {
    display: none;
  }

  .article-content h2 {
    margin-top: 48px;
  }

  .article-cta {
    padding: 28px 24px;
    flex-direction: column;
  }

  .article-cta .btn-primary {
    width: 100%;
    text-align: center;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .article-meta span {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
