/**
 * Blog Post Page Styles
 */

/* Fix navbar logo size on static pages */
.navbar-brand .navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Ensure footer has correct text colors */
.footer h4 {
  color: white !important;
}

.footer p,
.footer li,
.footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer a:hover {
  color: white !important;
}

.blog-post {
  min-height: 100vh;
  padding: var(--space-8) 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: var(--space-4);
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

.post-header {
  margin-bottom: var(--space-6);
}

.post-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.post-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-background);
  color: var(--color-text-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.post-featured-image {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.post-content {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.post-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.post-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.post-content p {
  margin-bottom: var(--space-4);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.post-content li {
  margin-bottom: var(--space-2);
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-content a:hover {
  text-decoration: none;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-4);
  margin: var(--space-4) 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* Markdown-specific styles */
.post-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 0.9em;
  color: #d73a49;
}

.post-content pre {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: var(--space-4) 0;
  border: 1px solid #e1e4e8;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #24292e;
  font-size: 0.875em;
  line-height: 1.6;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  overflow-x: auto;
  display: block;
}

.post-content th,
.post-content td {
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  text-align: left;
}

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

.post-content tr:nth-child(even) {
  background: #f9fafb;
}

.post-content del {
  text-decoration: line-through;
  color: var(--color-text-light);
  opacity: 0.7;
}

.post-content hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: var(--space-6) 0;
}

.post-content strong {
  font-weight: 700;
  color: var(--color-text);
}

.post-content em {
  font-style: italic;
}

.post-footer {
  display: flex;
  justify-content: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .post-title {
    font-size: var(--text-2xl);
  }

  .post-content {
    font-size: var(--text-base);
  }

  .post-meta {
    font-size: 0.75rem;
  }

  .post-featured-image img {
    max-height: 300px;
  }
}
