/**
 * Basic SSR Styles
 * These ensure server-rendered content looks reasonable before React hydrates
 */

/* Ensure SSR content is visible - target specific SSR page containers */
.post-page,
.category-page,
.search-page,
.home-page {
  display: block;
}

/* Basic post styling for SSR */
.post-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-meta time {
  display: inline-block;
}

.post-categories a {
  color: #0066cc;
  text-decoration: none;
  margin-right: 0.5rem;
}

.post-featured-image {
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-body {
  line-height: 1.7;
  font-size: 1.1rem;
}

.post-body h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-body pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* Posts list styling */
.posts-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.post-card {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-card h2 a:hover {
  color: #0066cc;
}

.post-excerpt {
  margin: 1rem 0;
  color: #555;
  line-height: 1.6;
}

/* Home page */
.home-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.site-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #eee;
}

.site-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.site-header p {
  color: #666;
  font-size: 1.2rem;
}

/* Category page */
.category-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.category-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.category-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.category-description {
  color: #666;
  font-size: 1.1rem;
}

/* Search page */
.search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.search-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.search-header h1 {
  font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .post-title {
    font-size: 2rem;
  }
  
  .site-header h1 {
    font-size: 2rem;
  }
  
  .post-card h2 {
    font-size: 1.5rem;
  }
}
