/* PlantSphere Blog Styles */
:root {
  --green-dark: #263c15;
  --green-medium: #4a7c23;
  --green-light: #6ba32a;
  --bg-light: #f9faf7;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6a6a6a;
  --border-light: #e0e4d9;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: #fff;
}

/* Header */
.header {
  background: var(--green-dark);
  padding: 0.75rem 2rem;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 55px;
  max-height: 60px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #fff;
}

.nav a.active {
  color: #fff;
  font-weight: 600;
}

/* Main content */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Blog index */
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.blog-header h1 {
  font-size: 2.5rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.blog-header p {
  color: var(--text-medium);
  font-size: 1.1rem;
}

.post-list {
  list-style: none;
}

.post-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.post-item h2 a {
  color: var(--green-dark);
  text-decoration: none;
}

.post-item h2 a:hover {
  color: var(--green-medium);
}

.post-excerpt {
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Single post */
.post-title {
  font-size: 2.2rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-date {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.post-content h2 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 2rem 0 1rem;
}

.post-content h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-medium);
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content strong {
  color: var(--text-dark);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.post-content th {
  background: var(--bg-light);
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border-light);
  color: var(--green-dark);
}

.post-content td {
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  color: var(--text-medium);
}

.post-content blockquote {
  border-left: 4px solid var(--green-light);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-medium);
  font-style: italic;
}

/* CTA box */
.cta-box {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.cta-box h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.cta-box p {
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  background: var(--green-medium);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.cta-button:hover {
  background: var(--green-dark);
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--green-medium);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--green-dark);
}

/* Footer */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--green-medium);
}

.footer-copy {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .container {
    padding: 1rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .post-title {
    font-size: 1.75rem;
  }

  .logo img {
    height: 40px;
  }
}
