/* Article Component */
.article-detail {
  max-width: 800px;
  margin: 40px auto;
}

.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.article-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.article-meta .date {
  margin-left: auto;
}

.article-content {
  margin-bottom: 30px;
  line-height: 1.7;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

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

.article-content a:hover {
  text-decoration: underline;
}

.article-content .highlight {
  background-color: #fffde7;
  padding: 3px 5px;
  border-radius: 3px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin: 20px 0;
  background-color: #f8f9fa;
  font-style: italic;
  color: #555;
}

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

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

.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.article-categories span {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--light-bg);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-actions {
  margin: 30px 0;
  display: flex;
  gap: 15px;
}

.article-actions a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  transition: color 0.3s;
}

.article-actions a:hover {
  color: var(--primary-color);
}

.article-share {
  margin: 30px 0;
  display: flex;
  gap: 15px;
}

.article-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-bg);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.article-share a:hover {
  background-color: var(--primary-color);
  color: white;
}

.article-author {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.article-author img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info h3 {
  margin-bottom: 10px;
}

.article-author-info p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.article-author-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.article-author-info a:hover {
  text-decoration: underline;
}

.article-comments {
  margin-top: 40px;
}

.article-comments h3 {
  margin-bottom: 20px;
}

.comment-form {
  margin-bottom: 30px;
}

.comment-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  resize: vertical;
  min-height: 150px;
  margin-bottom: 15px;
}

.comment-form button {
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.comment {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.comment img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.comment-content h4 {
  margin-bottom: 5px;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.comment-content p {
  line-height: 1.6;
}

.comment-meta {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

.comment-replies {
  margin-left: 80px;
  margin-top: 20px;
}

.comment-replies .comment {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}