/* === ARTICLE PAGE STYLES === */

/* Base page styles (ensures dark theme even without inline styles) */
:root {
  --bg: #040810;
  --card: #0A0F1C;
  --border: rgba(160,174,192,.06);
  --border-h: rgba(160,174,192,.12);
  --t1: #E2E8F0;
  --t2: #A0AEC0;
  --t3: rgba(160,174,192,.45);
  --green: #16AA90;
  --ucl-blue: #1E6BFF;
  --silver: #8896AB;
  --silver-b: #CBD5E0;
}
body {
  background: var(--bg);
  color: var(--t1);
  font-family: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--ucl-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.main { margin-left: var(--sidebar-w, 220px); min-height: 100vh; position: relative; }
@media(max-width:768px) { .main { margin-left: 0; } }

/* Full-width article layout */
.article-content {
  max-width: 100%;
  padding: 0;
}

/* Hero image — full width, natural aspect ratio */
.art-hero {
  width: 100%;
  display: block;
  border-bottom: 1px solid rgba(160,174,192,.06);
  background: var(--card);
}

/* Action bar — like, share, meta */
.art-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(160,174,192,.06);
  background: rgba(255,255,255,.01);
  flex-wrap: wrap;
}
.art-actions-left {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.art-actions-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.art-tag {
  font-size: .45rem;
  font-weight: 800;
  padding: .1rem .45rem;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.art-tag.strategy { background: rgba(22,170,144,.1); color: #16AA90; }
.art-tag.breaking { background: rgba(252,129,129,.1); color: #FC8181; }
.art-tag.analysis { background: rgba(99,179,237,.1); color: #63B3ED; }
.art-tag.preview { background: rgba(236,201,75,.1); color: #ECC94B; }
.art-tag.review { background: rgba(183,148,244,.1); color: #B794F4; }
.art-tag.guide { background: rgba(22,170,144,.1); color: #16AA90; }
.art-date {
  font-size: .5rem;
  color: #718096;
}
.art-read {
  font-size: .5rem;
  color: #718096;
}
.art-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4A5568;
  flex-shrink: 0;
}

/* Action buttons */
.art-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .6rem;
  border-radius: 6px;
  font-size: .5rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(160,174,192,.1);
  background: rgba(255,255,255,.03);
  color: #A0AEC0;
  font-family: 'Outfit', system-ui, sans-serif;
  transition: all .2s;
  text-decoration: none;
}
.art-btn:hover {
  background: rgba(255,255,255,.06);
  color: #E2E8F0;
  text-decoration: none;
}
.art-btn svg {
  width: 13px;
  height: 13px;
}
.art-btn.liked {
  border-color: rgba(245,101,101,.2);
  background: rgba(245,101,101,.06);
  color: #F56565;
}
.art-btn.liked svg { fill: #F56565; stroke: #F56565; }

/* Article body */
.art-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem;
}
.art-body h1 {
  font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.15;
  margin-bottom: .75rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #E2E8F0;
}
.art-body h2 {
  font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  margin: 1.75rem 0 .6rem;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.art-body h3 {
  font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  font-size: .85rem;
  margin: 1.5rem 0 .5rem;
  color: #E2E8F0;
}
.art-body p {
  margin-bottom: .85rem;
  font-size: .8rem;
  color: #A0AEC0;
  line-height: 1.8;
}
.art-body strong { color: #E2E8F0; }
.art-body a { color: #16AA90; }
.art-body a:hover { text-decoration: underline; }
.art-body ul, .art-body ol {
  margin: 0 0 .85rem 1.25rem;
}
.art-body li {
  font-size: .8rem;
  color: #A0AEC0;
  line-height: 1.8;
  margin-bottom: .2rem;
}
.art-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Callouts */
.art-body .callout {
  border-radius: 8px;
  padding: .65rem .85rem;
  margin: 1rem 0;
  font-size: .7rem;
  line-height: 1.6;
}
.art-body .callout.green { background: rgba(22,170,144,.06); border: 1px solid rgba(22,170,144,.12); color: #16AA90; }
.art-body .callout.amber { background: rgba(236,201,75,.06); border: 1px solid rgba(236,201,75,.12); color: #ECC94B; }
.art-body .callout.red { background: rgba(252,129,129,.06); border: 1px solid rgba(252,129,129,.12); color: #FC8181; }

/* Stat pills */
.stat-row { display: flex; gap: .6rem; margin: .85rem 0; flex-wrap: wrap; }
.stat-pill { background: rgba(255,255,255,.03); border: 1px solid rgba(160,174,192,.06); border-radius: 8px; padding: .4rem .6rem; font-size: .6rem; text-align: center; flex: 1; min-width: 80px; }
.stat-pill .val { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1rem; font-weight: 800; color: #E2E8F0; display: block; }
.stat-pill .label { color: #718096; font-size: .45rem; text-transform: uppercase; letter-spacing: .5px; margin-top: .1rem; }

/* Rank rows (used in some articles) */
.rank-row { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; background: rgba(255,255,255,.02); border: 1px solid rgba(160,174,192,.04); border-radius: 6px; margin-bottom: .3rem; }

/* Soft gate */
.art-gate {
  position: relative;
  margin-top: -4rem;
  padding-top: 5rem;
  background: linear-gradient(to bottom, transparent 0%, rgba(6,10,20,.97) 35%, #060A14 100%);
}
.art-gate-inner {
  text-align: center;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2.5rem;
  max-width: 500px;
  margin: 0 auto;
}
.art-gate-inner img { width: 36px; height: 36px; margin: 0 auto .6rem; display: block; opacity: .8; }
.art-gate-inner h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #E2E8F0;
  margin: 0 0 .4rem;
  text-transform: none;
  letter-spacing: 0;
}
.art-gate-inner p { font-size: .7rem; color: #718096; line-height: 1.6; margin: 0 0 1rem; }
.art-gate-btn {
  display: inline-block;
  padding: .55rem 1.75rem;
  background: linear-gradient(135deg, #16AA90, #0F8A74);
  color: #060A14;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(22,170,144,.2);
}
.art-gate-inner .art-login { margin-top: .6rem; font-size: .65rem; color: #4A5568; }
.art-gate-inner .art-login a { color: #16AA90; text-decoration: underline; font-weight: 600; }

/* Comments section */
.art-comments {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem;
  border-top: 1px solid rgba(160,174,192,.06);
}
.art-comments-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}
.comment-form {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.comment-input {
  flex: 1;
  padding: .5rem .75rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(160,174,192,.1);
  border-radius: 8px;
  color: #E2E8F0;
  font-size: .7rem;
  font-family: 'Outfit', system-ui, sans-serif;
  outline: none;
  resize: none;
}
.comment-input:focus { border-color: rgba(22,170,144,.3); }
.comment-input::placeholder { color: #4A5568; }
.comment-submit {
  padding: .5rem .85rem;
  background: #16AA90;
  color: #060A14;
  border: none;
  border-radius: 8px;
  font-size: .6rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Outfit', system-ui, sans-serif;
  align-self: flex-end;
  flex-shrink: 0;
}
.comment-item {
  display: flex;
  gap: .6rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(160,174,192,.04);
}
.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(22,170,144,.1);
  color: #16AA90;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.comment-body { flex: 1; min-width: 0; }
.comment-user {
  font-size: .55rem;
  font-weight: 700;
  color: #E2E8F0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.comment-time {
  font-size: .45rem;
  color: #4A5568;
  margin-left: .4rem;
}
.comment-text {
  font-size: .7rem;
  color: #A0AEC0;
  line-height: 1.6;
  margin-top: .15rem;
}
.comment-username-prompt {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(160,174,192,.08);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.comment-username-prompt p {
  font-size: .7rem;
  color: #718096;
  margin: 0 0 .5rem;
}
.comment-username-input {
  padding: .4rem .6rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(160,174,192,.1);
  border-radius: 6px;
  color: #E2E8F0;
  font-size: .65rem;
  font-family: 'Outfit', system-ui, sans-serif;
  outline: none;
  width: 180px;
  margin-right: .4rem;
}
.comment-username-save {
  padding: .4rem .7rem;
  background: #16AA90;
  color: #060A14;
  border: none;
  border-radius: 6px;
  font-size: .55rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Outfit', system-ui, sans-serif;
}

/* Related articles */
.art-related {
  max-width: 780px;
  margin: 1.5rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.art-related h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: .6rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.art-related a {
  display: block;
  font-size: .7rem;
  color: #16AA90;
  text-decoration: none;
  padding: .2rem 0;
  line-height: 1.5;
}
.art-related a:hover { text-decoration: underline; }
