/* ════════════════════════════════════════════════════════════
   EXITIALIZ — Single Post Template Styles
   Extends style.css — link both in post.html
════════════════════════════════════════════════════════════ */

/* ── READING PROGRESS BAR ───────────────────────────────── */
.reading-progress {
  position: fixed;
  top: var(--total-top);
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500), var(--purple-500), var(--blue-400));
  z-index: 1200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255,140,42,0.6);
}

/* ── POST HERO ──────────────────────────────────────────── */
.post-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--total-top);
  overflow: hidden;
}

.post-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: saturate(1.1) contrast(1.08) brightness(0.85);
  transform: scale(1.04);
  transition: transform 10s ease-out;
}

/* Multi-layer overlay: strong bottom scrim + side vignette */
.post-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      rgba(5,9,20,1.0)  0%,
      rgba(5,9,20,0.88) 28%,
      rgba(5,9,20,0.45) 55%,
      rgba(5,9,20,0.2)  75%,
      rgba(5,9,20,0.5)  100%
    ),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(255,140,42,0.1) 0%, transparent 60%),
    linear-gradient(90deg, rgba(5,9,20,0.5) 0%, transparent 30%, transparent 70%, rgba(5,9,20,0.5) 100%);
}

.post-hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

.post-hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1100px; margin-inline: auto;
  padding: 3rem clamp(1rem, 4vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1.25rem;
}

.post-hero-meta-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

.post-category-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--orange-500); color: #fff;
  box-shadow: 0 2px 14px rgba(255,140,42,0.45);
}

.post-vol-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
}

.post-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  max-width: 840px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.post-hero-standfirst {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 640px;
  font-family: var(--font-ui);
  font-weight: 500;
  margin: 0;
}

.post-hero-byline {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.post-author-chip {
  display: flex; align-items: center; gap: 0.7rem;
}
.post-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,140,42,0.4), rgba(124,92,255,0.3));
  border: 2px solid rgba(255,140,42,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; color: var(--orange-400);
  letter-spacing: 0.02em;
}
.post-author-info { display: flex; flex-direction: column; gap: 0.08rem; }
.post-author-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.post-author-role { font-size: 0.7rem; color: var(--text-muted); }

.post-hero-stats {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.post-hero-stat {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
}
.post-hero-stat i { color: rgba(255,255,255,0.3); font-size: 0.72rem; }

/* Scroll cue */
.post-scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.3); z-index: 2;
  animation: float-cue 2.5s ease-in-out infinite;
}
.post-scroll-cue i { font-size: 0.9rem; }
@keyframes float-cue {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ── ARTICLE LAYOUT ─────────────────────────────────────── */
.article-section {
  background: var(--bg-900);
  position: relative;
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(4rem, 6vw, 6rem);
}
.article-section-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url('https://gw2mists.com/images/redesign/page-background.jpg');
  background-size: cover; background-position: center;
  filter: grayscale(0.8) brightness(0.05);
  pointer-events: none;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 3.5rem;
  align-items: start;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ── FLOATING SHARE STRIP ───────────────────────────────── */
.share-strip {
  position: fixed;
  left: clamp(0.5rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.55rem;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.4s;
}
.share-strip.visible { opacity: 1; }
.share-btn {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s; text-decoration: none; backdrop-filter: blur(8px);
}
.share-btn:hover { transform: scale(1.12); }
.share-btn--twitter:hover { background: rgba(29,161,242,0.18); border-color: rgba(29,161,242,0.4); color: #1da1f2; }
.share-btn--discord:hover { background: rgba(114,137,218,0.18); border-color: rgba(114,137,218,0.4); color: #7289da; }
.share-btn--copy:hover    { background: rgba(255,140,42,0.18);  border-color: rgba(255,140,42,0.4);  color: var(--orange-400); }
.share-divider { height: 1px; background: var(--border-subtle); margin: 0.2rem 0; }
.share-label {
  font-size: 0.55rem; font-weight: 900; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted); text-align: center;
  writing-mode: vertical-rl; margin-top: 0.4rem;
}

/* ── ARTICLE BODY ───────────────────────────────────────── */
.article-body { min-width: 0; }

/* Drop cap */
.article-body .lead-paragraph::first-letter {
  font-family: var(--font-serif);
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 0.78;
  float: left;
  margin-right: 0.1em;
  margin-top: 0.08em;
  color: var(--orange-500);
  text-shadow: 0 0 40px rgba(255,140,42,0.35);
}

/* Body text */
.article-body p {
  font-size: 1.08rem;
  line-height: 1.82;
  color: rgba(255,255,255,0.82);
  margin: 0 0 1.6rem;
  font-family: var(--font-ui);
}

/* Headings within article */
.article-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.article-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.2;
}

/* Auto section divider before non-first h2 */
.article-body h2:not(:first-of-type)::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--purple-500) 50%, transparent 100%);
  border: none;
  margin: 0 0 1.5rem 0;
  border-radius: 2px;
}

/* Article section divider — mini accent line */
.article-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--purple-500) 50%, transparent 100%);
  border: none;
  margin: 2.5rem 0;
  border-radius: 2px;
}

/* Inline pull quote */
.article-pull-quote {
  margin: 2.5rem -1rem;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--orange-500);
  background: linear-gradient(135deg, rgba(255,140,42,0.05) 0%, transparent 60%);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
  overflow: hidden;
}
.article-pull-quote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 7rem;
  line-height: 0.5;
  position: absolute;
  top: 1rem; left: 1.25rem;
  color: var(--orange-500);
  opacity: 0.18;
  pointer-events: none;
}
.apq-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 0.75rem;
  position: relative; z-index: 1;
}
.apq-cite {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Stat callout box */
.stat-callout {
  margin: 2rem 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
}
.stat-callout-header {
  padding: 0.85rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
.stat-callout-title {
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.stat-callout-title i { color: var(--blue-400); }
.stat-callout-badge {
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.1em;
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25);
  color: var(--green-400); border-radius: var(--radius-pill);
  padding: 0.18rem 0.55rem; text-transform: uppercase;
}
.stat-callout-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }

.stat-callout-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem; align-items: center;
}
.scr-left { display: flex; align-items: center; gap: 0.75rem; }
.scr-rank {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900;
}
.scr-rank--1 { background: rgba(252,211,77,0.15); color: var(--gold-400); }
.scr-rank--2 { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.scr-rank--3 { background: rgba(205,127,50,0.12); color: rgba(205,127,50,0.8); }
.scr-server { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.scr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.scr-score { font-family: var(--font-display); font-size: 0.88rem; font-weight: 800; color: var(--text-secondary); }
.scr-bar-wrap { width: 100px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.scr-bar { height: 100%; border-radius: 2px; }
.scr-bar--1 { background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); width: 78%; }
.scr-bar--2 { background: var(--blue-400); opacity: 0.7; width: 58%; }
.scr-bar--3 { background: rgba(205,127,50,0.6); width: 43%; }

/* Inline image */
.article-img-wrap {
  margin: 2.5rem -1rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.article-img {
  width: 100%; height: 380px;
  background-size: cover; background-position: center;
  filter: saturate(0.9) contrast(1.05) brightness(0.88);
  transition: filter 0.4s;
}
.article-img-wrap:hover .article-img { filter: saturate(1.0) contrast(1.0) brightness(0.92); }
.article-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,9,20,0.6) 0%, transparent 50%);
}
.article-img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.5rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  font-style: italic;
}

/* Tag list */
.article-tags { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 2.5rem 0 1.5rem; }
.article-tag-label { font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-right: 0.25rem; }

/* Author card */
.author-card {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  background: linear-gradient(135deg, rgba(255,140,42,0.06) 0%, rgba(5,9,20,0.5) 60%);
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.author-card-avatar {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,140,42,0.35), rgba(124,92,255,0.2));
  border: 2px solid rgba(255,140,42,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 900; color: var(--orange-400);
}
.author-card-content { flex: 1; }
.author-card-label {
  font-size: 0.62rem; font-weight: 900; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--orange-400); margin-bottom: 0.25rem;
}
.author-card-name {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 0.1rem;
}
.author-card-role { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.author-card-bio { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.author-card-links { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.author-link {
  padding: 0.3rem 0.85rem; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700; border: 1px solid var(--border-subtle);
  color: var(--text-muted); text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.author-link:hover { border-color: var(--orange-400); color: var(--orange-400); }


/* ── ARTICLE SIDEBAR ────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: calc(var(--total-top) + 1.5rem);
  display: flex; flex-direction: column; gap: 1rem;
}

/* Table of contents */
.toc-widget {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.toc-header {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.62rem; font-weight: 900; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem;
}
.toc-header i { color: var(--orange-400); }
.toc-list { padding: 0.5rem 0; }
.toc-item {
  display: block; padding: 0.5rem 1.1rem;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; border-left: 2px solid transparent;
  transition: all 0.18s; cursor: pointer;
}
.toc-item:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.toc-item.active {
  color: var(--orange-400);
  border-left-color: var(--orange-500);
  background: rgba(255,140,42,0.06);
}
.toc-item--sub { padding-left: 1.8rem; font-size: 0.77rem; }

/* Read stats */
.read-stat-widget {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  display: flex; gap: 1rem;
}
.read-stat { flex: 1; text-align: center; }
.read-stat-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.read-stat-label { font-size: 0.6rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.2rem; }
.read-stat-divider { width: 1px; background: var(--border-subtle); }


/* ── RELATED ARTICLES ───────────────────────────────────── */
.related-section {
  background: var(--bg-800);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  position: relative;
}
.related-section::before {
  content: '';
  display: block; height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-500) 30%, var(--purple-500) 70%, transparent);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.related-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-900);
  border: 1px solid var(--border-subtle);
  display: flex; flex-direction: column;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s, border-color 0.25s;
  cursor: pointer;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  border-color: rgba(255,140,42,0.25);
}
.related-card-img {
  height: 175px; position: relative;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.related-card-img-inner {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s var(--ease-out);
}
.related-card:hover .related-card-img-inner { transform: scale(1.06); }
.related-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,9,20,0.05) 0%, rgba(5,9,20,0.55) 100%);
}
.related-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.related-card-headline {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.25; transition: color 0.2s;
}
.related-card:hover .related-card-headline { color: var(--orange-400); }
.related-card-excerpt { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.related-card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 700; color: var(--orange-400);
  margin-top: auto; transition: gap 0.2s;
}
.related-card:hover .related-card-link { gap: 0.6rem; }


/* ── POST BOTTOM NAV ────────────────────────────────────── */
.post-bottom-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-subtle);
}
.post-nav-item {
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  display: flex; flex-direction: column; gap: 0.4rem;
  text-decoration: none; transition: background 0.2s;
  cursor: pointer;
}
.post-nav-item:hover { background: rgba(255,255,255,0.02); }
.post-nav-item--next { text-align: right; border-left: 1px solid var(--border-subtle); }
.post-nav-dir { font-size: 0.65rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.post-nav-item--next .post-nav-dir { justify-content: flex-end; }
.post-nav-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.25; transition: color 0.2s; }
.post-nav-item:hover .post-nav-title { color: var(--orange-400); }
.post-nav-cat { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }


/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .toc-widget { grid-column: 1 / -1; }
  .share-strip { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .post-hero-title { font-size: clamp(2rem, 7vw, 3rem); }
  .article-layout { padding-inline: 1rem; }
  .article-pull-quote { margin: 2rem 0; }
  .article-img-wrap { margin: 2rem 0; }
  .author-card { flex-direction: column; gap: 1rem; }
  .related-grid { grid-template-columns: 1fr; }
  .post-bottom-nav { grid-template-columns: 1fr; }
  .post-nav-item--next { border-left: none; border-top: 1px solid var(--border-subtle); }
  .article-sidebar { grid-template-columns: 1fr; }
}
