/* Loading States */
.author-image-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-pulse 1.5s infinite;
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-pulse 1.5s infinite;
}

.loading-spinner {
  text-align: center;
  padding: 3rem 0;
  color: var(--primary-color);
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.loading-spinner p {
  color: #666;
}

@keyframes loading-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Article Detail Styles */
.article-detail {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  color: #666;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta i {
  color: var(--primary-color);
}

.article-header h1 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 20px;
}

.author-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  text-align: left;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--text-color);
}

.author-title {
  color: #666;
  font-size: 0.9rem;
}

.featured-image {
  margin: 40px 0;
}

.featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 15px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.table-of-contents {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.table-of-contents h3 {
  margin-bottom: 20px;
  color: var(--text-color);
}

.table-of-contents ul {
  list-style: none;
}

.table-of-contents li {
  margin-bottom: 10px;
}

.table-of-contents a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--primary-color);
}

.article-content section {
  margin-bottom: 40px;
}

.article-content h2 {
  color: var(--text-color);
  margin-bottom: 20px;
}

.article-content p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.info-box {
  background: #f0f7f0;
  padding: 25px;
  border-radius: 10px;
  margin: 20px 0;
}

.info-box h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.info-box li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.research-highlight {
  background: #fff3e0;
  padding: 25px;
  border-radius: 10px;
  margin: 20px 0;
}

.research-highlight h4 {
  color: #f57c00;
  margin-bottom: 15px;
}

.article-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.tags {
  margin-bottom: 30px;
}

.tag {
  display: inline-block;
  padding: 5px 15px;
  background: #f0f7f0;
  color: var(--primary-color);
  border-radius: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.share-buttons {
  text-align: center;
  margin-bottom: 40px;
}

.share-buttons h4 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.social-share {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f7f0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.related-articles h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.related-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-card h4 {
  padding: 15px;
  margin: 0;
  color: var(--text-color);
}

.related-card .read-more {
  display: block;
  padding: 15px;
  text-align: right;
  color: var(--primary-color);
  text-decoration: none;
  border-top: 1px solid #eee;
}

.related-card .read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.related-card .read-more:hover i {
  transform: translateX(5px);
}

@media screen and (max-width: 768px) {
  .article-header h1 {
      font-size: 2rem;
  }

  .article-meta {
      flex-direction: column;
      gap: 10px;
  }

  .article-meta span {
      justify-content: center;
  }

  .featured-image img {
      max-height: 300px;
  }

  .related-grid {
      grid-template-columns: 1fr;
  }
} 