/**
 * Explore Page - Article Listing Styles
 */

.explore-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.explore-header {
  text-align: center;
  margin-bottom: 50px;
}

.explore-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.explore-header p {
  font-size: 20px;
  color: #666;
  margin: 0;
}

.explorer-section {
  margin-bottom: 56px;
}

.explorer-section-title {
  max-width: 800px;
  margin: 0 auto 18px;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Articles Container */
.articles-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

/* Article Card */
.article-card {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

/* Card Image */
.article-card-image,
.article-image {
  width: 100%;
  max-width: 800px;
  height: 360px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.article-card-image img,
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-image.no-image svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
  color: white;
}

/* Card Content */
.article-card-content,
.article-content {
  padding: 24px;
  margin: 0 20px;
}

.article-link {
  text-decoration: none;
  color: #1a1a1a;
}

.article-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px 0;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-author {
  font-size: 14px;
  font-weight: 600;
  color: #3498db;
}

.article-date {
  font-size: 13px;
  color: #999;
}

.article-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

.stat-item svg {
  opacity: 0.7;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.empty-state svg {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  opacity: 0.3;
}

.empty-state h2 {
  font-size: 28px;
  color: #666;
  margin: 0 0 12px 0;
}

.empty-state p {
  font-size: 18px;
  color: #999;
  margin: 0;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .explore-container {
    padding: 30px 15px;
  }
  
  .explore-header h1 {
    font-size: 36px;
  }
  
  .explore-header p {
    font-size: 18px;
  }
  
  .articles-grid {
    gap: 20px;
  }
  
  .article-card {
    max-width: 100%;
    margin: 0 10px;
  }
  
  .article-image {
    height: 200px;
  }

  .article-card-image {
    height: 220px;
  }
  
  .article-content {
    padding: 20px;
  }
  
  .article-title {
    font-size: 20px;
  }
  
  .article-excerpt {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .explore-container {
    padding: 20px 10px;
  }
  
  .explore-header h1 {
    font-size: 28px;
  }
  
  .explore-header p {
    font-size: 16px;
  }
  
  .article-card {
    margin: 0 5px;
  }
  
  .article-image {
    height: 180px;
  }

  .article-card-image {
    height: 180px;
  }
  
  .article-content {
    padding: 16px;
  }
  
  .article-title {
    font-size: 18px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .article-stats {
    justify-content: flex-start;
  }
}
