/* Single blog post specific styles */

.blog-post {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Post header */
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--light);
}

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--darker);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.post-description {
  font-size: 1.25rem;
  color: var(--light-gray);
  line-height: 1.6;
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 1rem 1.5rem;
  background: var(--faint-background);
  border-left: 4px solid var(--accent);
  border-radius: 0 5px 5px 0;
}

/* Post content */
.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
}

.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--darker);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.post-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content a {
  color: var(--dark-accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: var(--dark-accent-2);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--light-background);
  border-left: 4px solid var(--accent);
  border-radius: 5px;
  font-style: italic;
  color: var(--dark);
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content code {
  background: var(--faint-background);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.95em;
  color: var(--dark-accent-2);
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background: var(--dark-gray);
  color: var(--light);
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 2rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-content hr {
  border: none;
  border-top: 2px solid var(--light);
  margin: 3rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.post-content th,
.post-content td {
  padding: 0.75rem;
  border: 1px solid var(--light);
  text-align: left;
}

.post-content th {
  background: var(--background);
  font-weight: 600;
  color: var(--darker);
}

.post-content tr:nth-child(even) {
  background: var(--faint-background);
}

/* Post footer */
.post-footer {
  margin-top: 3rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .blog-post {
    padding: 2rem 1.5rem;
    border-radius: 0;
  }

  .post-title {
    font-size: 2.2rem;
  }

  .post-description {
    font-size: 1.1rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.8rem;
  }

  .post-content h3 {
    font-size: 1.5rem;
  }

  .post-content h4 {
    font-size: 1.3rem;
  }

  .post-content pre {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog-post {
    padding: 1.5rem 1rem;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .post-header {
    margin-bottom: 2rem;
  }
}
