/* Solar Blog Base Styles */
:root {
  --primary: #1a5632;
  --primary-light: #2d8a4e;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --max-width: 800px;
  --header-max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

/* Header */
.site-header { border-bottom: 2px solid var(--primary); padding: 1rem 2rem; }
.site-header nav { max-width: var(--header-max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.site-header .logo { font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.site-header ul { list-style: none; display: flex; gap: 1.5rem; }
.site-header a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-header a:hover { color: var(--primary); }

/* Main */
main { max-width: var(--max-width); margin: 2rem auto; padding: 0 1.5rem; }

/* Posts */
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 0.5rem; }
.post-header time, .post-header .category, .post-header .read-time { color: var(--text-light); font-size: 0.9rem; margin-right: 1rem; }
.post-header .category { background: var(--bg-alt); padding: 0.2rem 0.6rem; border-radius: 4px; }

.post-content h2 { font-size: 1.6rem; margin: 2rem 0 0.8rem; color: var(--primary); }
.post-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.6rem; }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a { color: var(--primary-light); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid var(--accent); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--bg-alt); }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-content th, .post-content td { padding: 0.75rem; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--bg-alt); font-weight: 600; }

/* Post list */
.post-list { list-style: none; }
.post-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.post-list h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.post-list h2 a:hover { color: var(--primary); }
.post-list time { color: var(--text-light); font-size: 0.85rem; }
.post-list .excerpt { color: var(--text-light); margin-top: 0.4rem; }

/* Tags */
.post-tags { margin: 2rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { background: var(--bg-alt); color: var(--text-light); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; text-decoration: none; }
.tag:hover { background: var(--primary); color: white; }

/* Footer */
footer { max-width: var(--header-max); margin: 3rem auto 0; padding: 2rem; border-top: 1px solid var(--border); text-align: center; color: var(--text-light); font-size: 0.9rem; }
footer a { color: var(--primary); }

/* Post footer (related links) */
.post-footer { margin-top: 2rem; padding: 1.5rem; background: var(--bg-alt); border-radius: 8px; }
.post-footer ul { margin: 0.5rem 0 0 1.2rem; }

/* Responsive */
@media (max-width: 600px) {
  .site-header nav { flex-direction: column; gap: 0.5rem; }
  .post-header h1 { font-size: 1.6rem; }
  main { padding: 0 1rem; }
}
