/* Blog Index Styles */
.blog-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-index-header {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-index-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--rp-c-text-1);
  letter-spacing: -0.02em;
}

.blog-index-description {
  font-size: 1.125rem;
  color: var(--rp-c-text-2);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-index-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--rp-c-text-2);
  font-size: 1.125rem;
}

/* Blog Card Styles */
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.blog-card-content {
  border: 1px solid var(--rp-c-divider);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--rp-c-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover .blog-card-content {
  border-color: var(--rp-c-text-3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--rp-c-text-2);
}

.blog-card-date {
  font-weight: 500;
}

.blog-card-author {
  opacity: 0.8;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--rp-c-text-1);
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--rp-c-text-2);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
  font-size: 0.95rem;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-card-tag {
  background: var(--rp-c-bg-soft);
  color: var(--rp-c-text-2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--rp-c-divider);
}

.blog-card-arrow {
  color: var(--rp-c-text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}

.blog-card:hover .blog-card-arrow {
  color: var(--rp-c-text-1);
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-index {
    padding: 1.5rem 1rem;
  }
  
  .blog-index-title {
    font-size: 2.5rem;
  }
  
  .blog-index-header {
    margin-bottom: 3rem;
  }
  
  .blog-index-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-index-title {
    font-size: 2rem;
  }
  
  .blog-card-content {
    padding: 1.25rem;
  }
  
  .blog-card-title {
    font-size: 1.25rem;
  }
}
