/* Article Page Styles */
.page-header {
  padding: 2rem 0;
  background: var(--background-light);
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-align: center;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Article Page Layout */
.article-page {
  background: var(--background);
}

.article-header {
  padding: 2rem 0;
  background: var(--background-light);
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

.article-meta-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.article-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-image-hero {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-image-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Article Content */
.article-content {
  padding: 4rem 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 3rem 0 1.5rem 0;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem 0;
  line-height: 1.4;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.article-body li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--background-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.related-articles {
  background: var(--background-card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.related-articles h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: block;
  padding: 1rem;
  background: var(--background-light);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.related-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.related-item:hover h4 {
  color: white;
}

.related-item .read-time {
  font-size: 0.875rem;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.related-item:hover .read-time {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .article-title {
    font-size: 2.25rem;
  }

  .article-subtitle {
    font-size: 1.125rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body .lead {
    font-size: 1.125rem;
  }

  .article-body h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem 0;
  }

  .article-body h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .article-image-hero img {
    height: 250px;
  }

  .related-articles {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.875rem;
  }

  .article-meta-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 1.5rem;
  }

  .article-body blockquote {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
  }
}
