/* ==========================================
   TechNova Sky — Article & Reader View Styles
   ========================================== */

.page-shell {
  padding: 60px 0 90px;
}

.page-shell h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin: 12px 0 16px;
}

.page-intro {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: #ffffff;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 280px;
  gap: 48px;
  margin-top: 32px;
}

.article-hero {
  height: 260px;
  border-radius: var(--radius-lg);
  margin: 24px 0 32px;
  background: linear-gradient(135deg, #0f1c35, #1e3a8a);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.article-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  right: -50px;
  top: -50px;
  pointer-events: none;
}

.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.article-content {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text-main);
}

.article-notes {
  margin-top: 36px;
  padding: 24px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-md);
}

.article-notes h2 { margin-top: 0; }
.article-notes h3 { font-family: var(--font-heading); font-size: 17px; margin: 20px 0 6px; }
.article-notes h3:first-of-type { margin-top: 12px; }
.article-notes p { color: var(--text-muted); margin: 0; }

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content ol, .article-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 28px 0 36px;
}

.toc strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.toc a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.article-aside {
  border-left: 1px solid var(--border-subtle);
  padding-left: 28px;
}

.article-aside h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.aside-ad {
  min-height: 250px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.02);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.share-row strong {
  font-size: 14px;
  color: var(--text-muted);
  margin-right: 8px;
}

.share-row .btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 13px;
  border-radius: var(--radius-pill);
}

.share-row .btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.article-nav a:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.article-nav .next {
  text-align: right;
}

.article-nav small {
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-nav strong {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #ffffff;
}

.comments {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 40px;
}

.comments h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.comments p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.markdown-article code {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .share-row {
    flex-wrap: wrap;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav .next {
    text-align: left;
  }
}
