/* Stylesheet for Article Reading Experience */
.article-page {
  padding-top: 140px;
  padding-bottom: 100px;
}

.article-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-family: var(--font-title);
}

.breadcrumbs a:hover {
  color: var(--accent-cyan);
}

.breadcrumbs span.separator {
  color: var(--text-muted);
}

.breadcrumbs span.current {
  color: var(--text-secondary);
}

/* Article Container */
.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.25;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.article-header-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-header-meta .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Article Content Body */
.article-body {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-primary);
  margin: 48px 0 20px 0;
  padding-bottom: 8px;
  border-left: 4px solid var(--accent-purple);
  padding-left: 16px;
}

.article-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--text-primary);
  margin: 32px 0 16px 0;
}

.article-body ul {
  list-style: initial;
  padding-left: 24px;
  margin-bottom: 24px;
}

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

.article-body strong {
  color: #ffffff;
  font-weight: 600;
  border-bottom: 1px dashed var(--accent-cyan);
}

.article-body blockquote {
  background: rgba(124, 58, 237, 0.05);
  border-left: 4px solid var(--accent-pink);
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.article-body th, .article-body td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.article-body th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 600;
}

.article-body td {
  color: var(--text-secondary);
}

.article-body tr:last-child td {
  border-bottom: none;
}

.cta-box {
  margin: 48px 0;
  padding: 36px;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Sidebar Widgets */
.sidebar-sticky {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  padding: 28px;
}

.widget-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Promo Banner in Sidebar */
.sidebar-promo-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(219, 39, 119, 0.15) 100%);
  border-color: rgba(124, 58, 237, 0.3);
  text-align: center;
  padding: 32px 24px;
}

.sidebar-promo-banner:hover {
  border-color: var(--accent-pink);
}

.sidebar-promo-banner h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-promo-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Related articles widget */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.related-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.related-info {
  display: flex;
  flex-direction: column;
}

.related-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-title:hover {
  color: var(--accent-cyan);
}

.related-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Cross links wrapper inside body */
.article-nav-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.article-nav-prev, .article-nav-next {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.article-nav-prev {
  text-align: left;
  align-items: flex-start;
}

.article-nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.article-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-nav-title:hover {
  color: var(--accent-cyan);
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
