/* BWS 2.0 — Article page styles + themes */

/* ── Shell ───────────────────────────────────────────────────────────────── */
.article-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

/* ── Body layout ─────────────────────────────────────────────────────────── */
.article-body-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (max-width: 700px) {
  .article-body-layout { grid-template-columns: 1fr; }
}

/* ── Article content ─────────────────────────────────────────────────────── */
.article-content-section {
  min-width: 0;
}

.article-body-text {
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(230, 225, 215, 0.92);
}
.article-body-text .article-lede {
  font-size: 1.18rem;
  line-height: 1.65;
  color: rgba(240, 235, 220, 0.97);
  font-weight: 500;
  border-left: 3px solid var(--article-accent, #c8922a);
  padding-left: 1.1rem;
  margin-bottom: 1.5rem;
}
.article-body-text h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--article-accent, #c8922a);
  margin: 2rem 0 0.6rem;
}
.article-body-text p { margin: 0 0 1.1rem; }
.article-body-text strong { color: rgba(255,255,255,0.9); }
.article-body-text a {
  color: var(--article-accent, #c8922a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Article actions ─────────────────────────────────────────────────────── */
.article-actions {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(200,146,42,0.15);
  display: flex;
  gap: 0.75rem;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.article-sidebar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,146,42,0.14);
  border-radius: 0.6rem;
  padding: 1.1rem 1rem;
  font-size: 0.88rem;
  color: rgba(200,190,175,0.9);
  display: grid;
  gap: 0.6rem;
  position: sticky;
  top: 1.5rem;
}
.article-sidebar-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--article-accent, #c8922a);
  margin: 0 0 0.2rem;
}
.article-sidebar-card strong { color: rgba(225,215,200,0.95); }
.article-sidebar-card time { display: block; color: rgba(170,160,148,0.85); }

.article-entity-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: var(--article-accent-dim, rgba(200,146,42,0.15));
  border: 1px solid var(--article-accent-border, rgba(200,146,42,0.3));
  border-radius: 2rem;
  padding: 0.2em 0.65em;
}

/* Write article button in sidebar */
.article-compose-link {
  display: block;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--article-accent-dim, rgba(200,146,42,0.12));
  border: 1px solid var(--article-accent-border, rgba(200,146,42,0.3));
  color: var(--article-accent, #c8922a);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.article-compose-link:hover {
  background: var(--article-accent-dim-hover, rgba(200,146,42,0.22));
  border-color: var(--article-accent, #c8922a);
}

/* ── Kicker ──────────────────────────────────────────────────────────────── */
.article-kicker {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--article-accent, #c8922a);
  opacity: 0.9;
  margin-bottom: 0.35rem;
  display: block;
}

/* ── Tupac article cards (on tupac.html) ─────────────────────────────────── */
.tupac-article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.tupac-article-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,80,200,0.18);
  border-radius: 0.75rem;
  padding: 1.4rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.25s, background 0.25s;
}
.tupac-article-card:hover {
  background: rgba(148,80,200,0.07);
  border-color: rgba(148,80,200,0.4);
}
.tac-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tac-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(148,80,200,0.18);
  border: 1px solid rgba(148,80,200,0.35);
  color: rgba(200,170,255,0.9);
  padding: 0.2em 0.6em;
  border-radius: 2rem;
}
.tac-type {
  font-size: 0.72rem;
  color: rgba(160,148,172,0.8);
  align-self: center;
}
.tac-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(230,220,245,0.95);
  margin: 0;
  font-weight: 700;
}
.tac-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(190,178,205,0.85);
  margin: 0;
  flex: 1;
}
.tac-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(200,170,255,0.9);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.tac-link:hover { color: #c896ff; }

/* Write article card */
.tupac-article-card--compose {
  border-style: dashed;
  border-color: rgba(148,80,200,0.22);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  color: rgba(170,148,195,0.7);
}
.tupac-article-card--compose:hover {
  background: rgba(148,80,200,0.05);
  border-color: rgba(148,80,200,0.38);
  color: rgba(200,170,235,0.9);
}
.tac-compose-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.tac-compose-label { font-size: 0.85rem; font-weight: 600; display: block; }
.tac-compose-hint { font-size: 0.77rem; margin-top: 0.2rem; opacity: 0.7; }

/* ── Themes ──────────────────────────────────────────────────────────────── */

/* civic — purple/indigo (T.U.P.A.C / political) */
.theme-civic {
  --article-accent:        #9b4fff;
  --article-accent-dim:    rgba(155,79,255,0.12);
  --article-accent-dim-hover: rgba(155,79,255,0.22);
  --article-accent-border: rgba(155,79,255,0.35);
}
.theme-civic .article-body-text .article-lede {
  border-left-color: #9b4fff;
}
.theme-civic .article-kicker { color: #c896ff; }

/* community — warm amber */
.theme-community {
  --article-accent:        #d97706;
  --article-accent-dim:    rgba(217,119,6,0.12);
  --article-accent-dim-hover: rgba(217,119,6,0.22);
  --article-accent-border: rgba(217,119,6,0.35);
}

/* business — teal */
.theme-business {
  --article-accent:        #0d9488;
  --article-accent-dim:    rgba(13,148,136,0.12);
  --article-accent-dim-hover: rgba(13,148,136,0.22);
  --article-accent-border: rgba(13,148,136,0.35);
}

/* culture — crimson */
.theme-culture {
  --article-accent:        #db2777;
  --article-accent-dim:    rgba(219,39,119,0.12);
  --article-accent-dim-hover: rgba(219,39,119,0.22);
  --article-accent-border: rgba(219,39,119,0.35);
}

/* ── Compose form ────────────────────────────────────────────────────────── */
.compose-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
.compose-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(200,146,42,0.18);
  margin-bottom: 2rem;
}
.compose-form { display: grid; gap: 1.2rem; }
.compose-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(200,190,175,0.9);
}
.compose-form input[type="text"],
.compose-form textarea,
.compose-form select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 0.4rem;
  color: rgba(230,225,215,0.95);
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.compose-form input:focus,
.compose-form textarea:focus,
.compose-form select:focus {
  outline: none;
  border-color: rgba(200,146,42,0.5);
}
.compose-form select option { background: #0d1117; }
.compose-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .compose-two-col { grid-template-columns: 1fr; } }
.compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0.5rem;
}
.compose-status {
  font-size: 0.85rem;
  color: rgba(180,170,155,0.8);
  flex: 1;
}
.compose-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.compose-img-preview {
  width: 100%;
  aspect-ratio: 16/6;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(200,146,42,0.2);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(160,148,135,0.6);
  font-size: 0.85rem;
  overflow: hidden;
}
.compose-img-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
