/* ============================================= */
/* @chosen1 - evil1.org social network           */
/* Hero's Journey palette | Facebook-style       */
/* ch- prefix | Act transitions via body class   */
/* ============================================= */

/* ============================= */
/* COMPONENT: CSS Variables      */
/* ============================= */
:root {
  /* Act 1: The Promise - warm gold */
  --ch-gold: #d4a843;
  --ch-gold-dim: rgba(212, 168, 67, 0.33);
  --ch-gold-hot: #e8be4a;
  --ch-gold-glow: rgba(212, 168, 67, 0.15);

  /* Act 2: The Fall - hot neon (Satan's palette) */
  --ch-pink: #ff3399;
  --ch-pink-dim: rgba(255, 51, 153, 0.33);
  --ch-pink-hot: #ff0066;

  /* Act 4: The Return - deep warm gold */
  --ch-warm: #c9934a;
  --ch-warm-dim: rgba(201, 147, 74, 0.33);
  --ch-warm-glow: rgba(201, 147, 74, 0.2);

  /* Semantic tokens - overridden per act */
  --ch-accent: var(--ch-gold);
  --ch-accent-dim: var(--ch-gold-dim);
  --ch-accent-hot: var(--ch-gold-hot);
  --ch-accent-glow: var(--ch-gold-glow);

  /* Backgrounds */
  --ch-bg-page: #111114;
  --ch-bg-card: #1a1a1e;
  --ch-bg-card-hover: #1e1e24;
  --ch-bg-cover: linear-gradient(135deg, #1a1a1e 0%, #2a2015 50%, #1a1a1e 100%);

  /* Text */
  --ch-text-primary: #e8e8e8;
  --ch-text-secondary: #999;
  --ch-text-muted: #555;
  --ch-text-reveal: #666;

  /* Structure */
  --ch-border: #222;
  --ch-border-accent: rgba(212, 168, 67, 0.2);
  --ch-radius: 8px;
  --ch-max-width: 700px;
}
/* /COMPONENT: CSS Variables     */

/* ============================= */
/* COMPONENT: Act Transitions    */
/* ============================= */
body.ch-act-1 {
  --ch-accent: var(--ch-gold);
  --ch-accent-dim: var(--ch-gold-dim);
  --ch-accent-hot: var(--ch-gold-hot);
  --ch-accent-glow: var(--ch-gold-glow);
  --ch-bg-cover: linear-gradient(135deg, #1a1a1e 0%, #2a2015 50%, #1a1a1e 100%);
  --ch-border-accent: rgba(212, 168, 67, 0.2);
}

body.ch-act-2 {
  --ch-accent: var(--ch-pink);
  --ch-accent-dim: var(--ch-pink-dim);
  --ch-accent-hot: var(--ch-pink-hot);
  --ch-accent-glow: rgba(255, 51, 153, 0.15);
  --ch-bg-cover: linear-gradient(135deg, #1a1a1e 0%, #2a1520 50%, #1a1a1e 100%);
  --ch-border-accent: rgba(255, 51, 153, 0.2);
}

body.ch-act-3 {
  --ch-accent: #c77dba;
  --ch-accent-dim: rgba(199, 125, 186, 0.33);
  --ch-accent-hot: #d98ecf;
  --ch-accent-glow: rgba(199, 125, 186, 0.15);
  --ch-bg-cover: linear-gradient(135deg, #1a1a1e 0%, #251a22 50%, #1a1a1e 100%);
  --ch-border-accent: rgba(199, 125, 186, 0.2);
}

body.ch-act-4 {
  --ch-accent: var(--ch-warm);
  --ch-accent-dim: var(--ch-warm-dim);
  --ch-accent-hot: #daa560;
  --ch-accent-glow: var(--ch-warm-glow);
  --ch-bg-cover: linear-gradient(135deg, #1a1a1e 0%, #2a2218 50%, #1a1a1e 100%);
  --ch-border-accent: rgba(201, 147, 74, 0.25);
}

/* Smooth transitions on all act-dependent properties */
body {
  transition: background 1.2s ease;
}
.ch-platform-logo,
.ch-verified,
.ch-post-action-likes,
.ch-tab--active,
.ch-friends-header span,
.ch-now-playing,
.ch-cover-image,
.ch-avatar {
  transition: color 1.2s ease, background 1.2s ease, border-color 1.2s ease;
}
/* /COMPONENT: Act Transitions   */

/* ============================= */
/* COMPONENT: Reset + Base       */
/* ============================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ch-text-primary);
  background: var(--ch-bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ch-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* /COMPONENT: Reset + Base      */

/* ============================= */
/* COMPONENT: Platform Header    */
/* ============================= */
.ch-platform-header {
  background: #0a0a0c;
  border-bottom: 1px solid var(--ch-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ch-platform-inner {
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ch-platform-logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--ch-accent);
  letter-spacing: -0.5px;
}
.ch-platform-logo:hover { text-decoration: none; opacity: 0.8; }

.ch-platform-tagline {
  color: var(--ch-text-muted);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.ch-platform-nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.ch-platform-nav-link {
  font-size: 12px;
  color: var(--ch-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}
.ch-platform-nav-link:hover { color: var(--ch-text-secondary); text-decoration: none; }
.ch-platform-nav-link--active { color: var(--ch-accent); }
.ch-platform-nav-link--stub { opacity: 0.4; cursor: default; }
.ch-platform-nav-link--stub:hover { color: var(--ch-text-muted); }
/* /COMPONENT: Platform Header   */

/* ============================= */
/* COMPONENT: Cover + Bio        */
/* ============================= */
.ch-cover {
  max-width: var(--ch-max-width);
  margin: 0 auto;
}

.ch-cover-image {
  background: var(--ch-bg-cover);
  height: 140px;
  border-radius: 0 0 var(--ch-radius) var(--ch-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 1.2s ease;
}

.ch-now-playing {
  font-size: 11px;
  color: var(--ch-accent-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 1.2s ease;
}
.ch-now-playing-icon { margin: 0 6px; }

.ch-profile-header {
  display: flex;
  align-items: flex-end;
  padding: 0 20px;
  margin-top: -36px;
  gap: 16px;
}

.ch-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ch-accent), var(--ch-accent-hot));
  border: 4px solid var(--ch-bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 1.2s ease;
}
.ch-avatar-emoji { font-size: 42px; color: #fff; }

.ch-profile-info { padding-bottom: 6px; }

.ch-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ch-verified {
  font-size: 12px;
  color: var(--ch-accent);
  font-weight: 400;
}

.ch-bio {
  font-size: 14px;
  color: var(--ch-text-secondary);
  margin-top: 4px;
  line-height: 1.5;
  font-style: italic;
}

.ch-stats {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ch-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ch-stat strong { color: var(--ch-text-secondary); }
.ch-stat-dot { color: var(--ch-text-muted); }
/* /COMPONENT: Cover + Bio       */

/* ============================= */
/* COMPONENT: Tab Navigation     */
/* ============================= */
.ch-tabs {
  max-width: var(--ch-max-width);
  margin: 20px auto 0;
  display: flex;
  border-bottom: 1px solid var(--ch-border);
  padding: 0 16px;
}

.ch-tab {
  background: none;
  border: none;
  color: var(--ch-text-muted);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.ch-tab:hover { color: var(--ch-text-secondary); }
.ch-tab--active {
  color: var(--ch-accent);
  border-bottom-color: var(--ch-accent);
}
.ch-tab-count {
  font-size: 11px;
  color: var(--ch-text-muted);
  margin-left: 4px;
}
/* /COMPONENT: Tab Navigation    */

/* ============================= */
/* COMPONENT: Tab Content        */
/* ============================= */
.ch-content {
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 16px;
}

.ch-panel { display: none; }
.ch-panel--active { display: block; }
/* /COMPONENT: Tab Content       */

/* ============================= */
/* COMPONENT: Act Markers        */
/* ============================= */
.ch-act-marker {
  text-align: center;
  padding: 20px 0 12px;
  position: relative;
}

.ch-act-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ch-border);
}

.ch-act-label {
  position: relative;
  background: var(--ch-bg-page);
  padding: 0 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ch-text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* First act marker has no top padding */
.ch-act-marker:first-child { padding-top: 8px; }
/* /COMPONENT: Act Markers       */

/* ============================= */
/* COMPONENT: Posts              */
/* ============================= */
.ch-post {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 1.2s ease, background 0.2s ease;
}
.ch-post:hover { background: var(--ch-bg-card-hover); }

.ch-post--pinned {
  border-color: var(--ch-border-accent);
}

/* Act-specific post styling */
.ch-post--act1 { border-left: 2px solid var(--ch-gold-dim); }
.ch-post--act2 { border-left: 2px solid var(--ch-pink-dim); }
.ch-post--act3 { border-left: 2px solid rgba(199, 125, 186, 0.33); }
.ch-post--act4 { border-left: 2px solid var(--ch-warm-dim); }

.ch-post--heavy { opacity: 0.85; }
.ch-post--heavy .ch-post-body { font-size: 14px; }

.ch-post--final {
  border-color: var(--ch-warm-dim);
  border-width: 1px 1px 1px 3px;
}

.ch-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ch-post-author {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ch-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ch-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 1.2s ease;
}

.ch-post-meta {
  display: flex;
  flex-direction: column;
}
.ch-post-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-text-primary);
}
.ch-post-time {
  font-size: 11px;
  color: var(--ch-text-muted);
}

.ch-post-pin {
  font-size: 9px;
  color: var(--ch-accent-dim);
  border: 1px solid var(--ch-border-accent);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ch-post-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ch-text-primary);
}
.ch-post-body p { margin-bottom: 10px; }
.ch-post-body p:last-child { margin-bottom: 0; }

.ch-post-scripture {
  font-style: italic;
  color: var(--ch-text-secondary);
  border-left: 2px solid var(--ch-accent-dim);
  padding-left: 12px;
  margin: 8px 0;
  transition: border-color 1.2s ease;
}

.ch-post-cite {
  font-size: 12px;
  color: var(--ch-text-muted);
  font-style: normal;
}

.ch-post-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ch-border);
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--ch-text-muted);
}
.ch-post-action-likes { color: var(--ch-accent); transition: color 1.2s ease; }

.ch-post-comment {
  font-size: 11px;
  color: var(--ch-text-reveal);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ch-border);
  font-style: italic;
}
/* /COMPONENT: Posts             */

/* ============================= */
/* COMPONENT: About Section      */
/* ============================= */
.ch-about-section {
  margin-bottom: 24px;
}

.ch-about-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--ch-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ch-border);
}

.ch-about-subtitle {
  font-size: 11px;
  color: var(--ch-text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
  font-style: italic;
}

/* Value cards - corporate format, devastating content */
.ch-value-card {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.ch-value-card:hover { border-color: var(--ch-accent-dim); }

.ch-value-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--ch-accent);
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.2;
  transition: color 1.2s ease;
}

.ch-value-ref {
  font-size: 10px;
  font-weight: 700;
  color: var(--ch-accent);
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  padding-top: 4px;
  transition: color 1.2s ease;
}

.ch-value-content { flex: 1; min-width: 0; }

.ch-value-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ch-value-text {
  font-size: 13px;
  color: var(--ch-text-secondary);
  line-height: 1.6;
}
/* /COMPONENT: About Section     */

/* ============================= */
/* COMPONENT: Friends Grid       */
/* ============================= */
.ch-friends-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--ch-text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ch-friends-header span { color: var(--ch-accent); }

.ch-friends-subtitle {
  font-size: 11px;
  color: var(--ch-text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.ch-friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ch-friend {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ch-friend:hover {
  border-color: var(--ch-accent-dim);
  background: var(--ch-bg-card-hover);
}

.ch-friend-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2a2a2e;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.ch-friend-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-text-primary);
}

.ch-friend-tagline {
  font-size: 10px;
  color: var(--ch-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.ch-friends-reveal {
  text-align: center;
  font-size: 12px;
  color: var(--ch-accent);
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.8s ease, color 1.2s ease;
}
.ch-friends-reveal--visible { opacity: 1; }
/* /COMPONENT: Friends Grid      */

/* ============================= */
/* COMPONENT: Work History       */
/* ============================= */
.ch-work-entry {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 16px;
  margin-bottom: 12px;
}

.ch-work-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.ch-work-company {
  font-size: 13px;
  color: var(--ch-accent);
  transition: color 1.2s ease;
}

.ch-work-dates {
  font-size: 12px;
  color: var(--ch-text-muted);
  margin-top: 2px;
}

.ch-work-duties {
  list-style: none;
  margin-top: 10px;
}
.ch-work-duties li {
  font-size: 14px;
  color: var(--ch-text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.ch-work-duties li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--ch-text-muted);
}

.ch-endorsement {
  font-size: 13px;
  color: var(--ch-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--ch-border);
}
.ch-endorsement:last-child { border-bottom: none; }
.ch-endorsement strong { color: var(--ch-text-primary); }
.ch-endorsement em { color: var(--ch-text-muted); font-size: 11px; }
/* /COMPONENT: Work History      */

/* ============================= */
/* COMPONENT: Modal              */
/* ============================= */
.ch-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ch-modal-overlay--open { display: flex; }

.ch-modal {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}

.ch-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ch-text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.ch-modal-close:hover { color: var(--ch-text-primary); }

.ch-modal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2a2a2e;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.ch-modal-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.ch-modal-tagline {
  font-size: 12px;
  color: var(--ch-text-muted);
  text-align: center;
  margin-top: 4px;
}

.ch-modal-content {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ch-text-secondary);
}
.ch-modal-content p { margin-bottom: 10px; }

.ch-modal-quote {
  font-style: italic;
  border-left: 2px solid var(--ch-accent-dim);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--ch-text-primary);
  font-size: 15px;
}

.ch-modal-small {
  font-size: 10px;
  color: var(--ch-text-reveal);
  margin-top: 12px;
  font-style: italic;
}
/* /COMPONENT: Modal             */

/* ============================= */
/* COMPONENT: Footer             */
/* ============================= */
.ch-footer {
  max-width: var(--ch-max-width);
  margin: 40px auto 20px;
  padding: 20px 16px;
  border-top: 1px solid var(--ch-border);
  text-align: center;
}

.ch-footer-text {
  font-size: 12px;
  color: var(--ch-text-muted);
}

.ch-footer-disclaimer {
  font-size: 10px;
  color: var(--ch-text-reveal);
  margin-top: 6px;
}
/* /COMPONENT: Footer            */

/* ============================= */
/* COMPONENT: Responsive         */
/* ============================= */
@media (max-width: 600px) {
  .ch-platform-tagline { display: none; }
  .ch-platform-nav { gap: 4px; }
  .ch-platform-nav-link { font-size: 11px; padding: 4px 6px; }

  .ch-profile-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
    margin-top: -30px;
  }

  .ch-avatar { width: 72px; height: 72px; }
  .ch-avatar-emoji { font-size: 34px; }
  .ch-name { font-size: 20px; }

  .ch-tabs { overflow-x: auto; }
  .ch-tab { padding: 10px 14px; font-size: 13px; white-space: nowrap; }

  .ch-friends-grid { grid-template-columns: repeat(2, 1fr); }

  .ch-modal { max-height: 90vh; margin: 10px; }

  .ch-value-card { flex-direction: column; gap: 8px; }
  .ch-value-number, .ch-value-ref { text-align: left; min-width: unset; }
}
/* /COMPONENT: Responsive        */
