/* Blog Page Styles */
.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Article Card */
.article-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
}

.article-category {
  display: inline-block;
  padding: 8px 20px;
  background: var(--light-gray);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.article-category.tech {
  background: #e1f5fe;
  color: #0277bd;
}

.article-category.lifestyle {
  background: #2e7d32;
  color: #e8f5e9;
}

.article-category.business {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.article-title {
  font-size: 2.8rem;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--gray);
  font-size: 0.95rem;
}

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

.article-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
}

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

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.article-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--dark);
}

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

.article-content ul {
  margin: 20px 0 30px 30px;
}

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

.article-content li::before {
  content: "•";
  color: var(--secondary);
  position: absolute;
  left: -20px;
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
}

.article-tag {
  padding: 8px 16px;
  background: var(--light-gray);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Related Articles */
.related-articles {
  margin-top: 60px;
}

.related-articles h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--dark);
  position: relative;
  padding-bottom: 10px;
}

.related-articles h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.related-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-content {
  padding: 20px;
}

.related-category {
  display: inline-block;
  padding: 5px 12px;
  background: var(--light-gray);
  color: var(--primary);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.related-category.tech {
  background: #e1f5fe;
  color: #0277bd;
}

.related-category.lifestyle {
  background: #2e7d32;
  color: #e8f5e9;
}

.related-category.business {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.related-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
  line-height: 1.4;
}

.related-excerpt {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.related-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Loading & Error States */
.loading-article,
.error,
.no-related {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray);
}

.loading-article i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.error i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.error h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.error .btn {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .article-card {
    padding: 25px;
  }

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

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

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

  .related-grid {
    grid-template-columns: 1fr;
  }
}
