/* === PUBLICATION BASE === */
/* Extends theme.css. VaultSignal niche site styles. */

.pub-body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  min-height: 100vh;
}

/* === HEADER === */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.pub-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.pub-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.pub-logo__mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #0a0a0c;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.pub-logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.pub-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.pub-nav::-webkit-scrollbar { display: none; }

.pub-nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.pub-nav__link:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.pub-nav__link--active { color: var(--accent); }

.pub-header__network-link {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.pub-header__network-link:hover { opacity: 1; }

/* === AD ZONES === */
.ad-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  opacity: 0.5;
  margin-bottom: 0.4rem;
  text-align: center;
}

.ad-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.5;
  text-align: center;
  font-family: monospace;
  letter-spacing: 0.02em;
}

.ad-placeholder--banner { height: 90px; width: 100%; max-width: 970px; margin: 0 auto; }
.ad-placeholder--leaderboard { height: 90px; width: 100%; max-width: 728px; margin: 0 auto; }
.ad-placeholder--square { width: 300px; height: 250px; }
.ad-placeholder--sidebar { width: 100%; height: 250px; }

.pub-ad-banner {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem var(--space);
}

.pub-ad-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pub-ad-bottom { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; }

/* === PUBLICATION HERO === */
.pub-hero {
  padding: 5rem var(--space) 3rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,255,60,0.035) 0%, transparent 70%);
}

.pub-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.pub-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.pub-hero__back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}

.pub-hero__back:hover { color: var(--fg); }

.pub-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.05;
}

.pub-hero__title em {
  font-style: italic;
  color: var(--accent);
}

.pub-hero__sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* === MAIN / GRID === */
.pub-main { padding: 3rem 0 4rem; }

.pub-main__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Category filters */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.pub-filter {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--fg-muted);
  background: transparent;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.pub-filter:hover { color: var(--fg); border-color: rgba(255,255,255,0.15); }
.pub-filter--active { color: #0a0a0c; background: var(--accent); border-color: var(--accent); }

/* Article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.article-grid__ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
}

/* Featured first article: full width */
.article-card--featured {
  grid-column: 1 / -1;
}

.article-card--featured .article-card__emoji {
  font-size: 3.5rem;
  width: 80px;
  height: 80px;
}

.article-card--featured .article-card__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}

.article-card:hover {
  border-color: rgba(201,255,60,0.2);
  transform: translateY(-2px);
}

.article-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  padding: 1.75rem;
  gap: 1rem;
}

.article-card__emoji {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-card__content { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.article-card__category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.article-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
  margin: 0;
}

.article-card__subtitle {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.article-card__dot { opacity: 0.4; }

/* === ARTICLE LAYOUT (detail page) === */
.article-layout {
  display: grid;
  grid-template-columns: 180px 1fr 300px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem var(--space) 4rem;
  gap: 3rem;
  align-items: start;
}

.article-sidebar { position: relative; }

.sticky-ad {
  position: sticky;
  top: 80px;
}

.article-sidebar--right .related-articles {
  margin-top: 2rem;
}

/* Article main */
.article-main { min-width: 0; max-width: 720px; }

.article-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }

.article-header__category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1rem;
}

.article-header__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.article-header__subtitle {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.article-header__meta { margin-bottom: 1.5rem; }

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-author__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(201,255,60,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.article-author__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
}

.article-author__detail {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.article-header__emoji {
  font-size: 3.5rem;
  margin-top: 1.5rem;
}

/* === ARTICLE BODY === */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fg);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body em { color: var(--accent); font-style: italic; }

.article-lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.75;
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

.callout-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
}

/* Affiliate cards within article body */
.affiliate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
  position: relative;
}

.affiliate-card__rank {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0a0a0c;
  background: var(--accent);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.75rem;
}

.affiliate-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.affiliate-card__rate {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.affiliate-card__features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.affiliate-card__features li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.affiliate-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.affiliate-btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.affiliate-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.affiliate-disclosure {
  font-size: 0.72rem;
  color: var(--fg-muted);
  opacity: 0.6;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Inline ad zones within article body */
.ad-zone--inline {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === ARTICLE FOOTER ELEMENTS === */
.affiliate-disclosure-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-top: 3rem;
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-footer-nav a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.article-footer-nav a:hover { color: var(--accent); }

/* === RELATED ARTICLES (sidebar) === */
.related-articles__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.related-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.related-card:last-child { border-bottom: none; }
.related-card:hover { opacity: 0.75; }

.related-card__emoji { font-size: 1.4rem; flex-shrink: 0; padding-top: 0.1rem; }

.related-card__content { display: flex; flex-direction: column; gap: 0.2rem; }

.related-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.related-card__meta {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* === BOTTOM AD BAND === */
.pub-ad-bottom-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1rem var(--space);
}

.pub-ad-bottom-band__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === MORE ARTICLES SECTION === */
.more-articles {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.more-articles__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space);
}

.more-articles__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.article-grid--compact .article-card--featured {
  grid-column: auto;
}

/* === FOOTER === */
.pub-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.pub-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-footer__brand { display: flex; flex-direction: column; gap: 0.25rem; }

.pub-footer__tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.pub-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.pub-footer__links a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.pub-footer__links a:hover { color: var(--fg); }

.pub-footer__disclosure {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.65;
  opacity: 0.7;
  max-width: 760px;
}

.pub-footer__copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* === 404 === */
.pub-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--space);
}

.pub-404__inner {
  text-align: center;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pub-404__emoji { font-size: 4rem; }
.pub-404__inner h1 { font-size: 2rem; }
.pub-404__inner p { color: var(--fg-muted); margin-bottom: 0.5rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar--left { display: none; }
  .article-sidebar--right {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .sticky-ad { position: static; }
  .article-sidebar--right .related-articles { flex: 1; min-width: 240px; }
  .article-main { max-width: 100%; }
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-card--featured { grid-column: auto; }
  .pub-nav { display: none; }
  .pub-header__network-link { display: none; }
  .article-footer-nav { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .article-sidebar--right { display: none; }
  .pub-hero { padding: 3.5rem var(--space) 2rem; }
}

@media (max-width: 480px) {
  .article-header__title { font-size: 1.6rem; }
  .article-body { font-size: 1rem; }
  .pub-filters { gap: 0.35rem; }
  .pub-filter { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
}
