/**
 * Blog-specific styles for the WordPress theme.
 * Main design tokens and components come from /assets/css/custom.css on the main site.
 */

body.ode-wp-theme {
  background: var(--de-page-bg, #f0f2f5);
}

.ode-blog-main {
  max-width: 1140px;
}

.ode-blog-card {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ode-blog-card:hover {
  box-shadow: var(--de-shadow, 0 4px 18px rgba(0, 0, 0, 0.07));
}

.ode-blog-card-title {
  color: var(--de-text, #111827);
  text-decoration: none;
}

.ode-blog-card-title:hover {
  color: var(--de-accent, #0d9488);
}

.ode-blog-card-image-wrap {
  display: block;
  overflow: hidden;
}

.ode-blog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ode-back-link {
  color: var(--de-accent, #0d9488);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.ode-back-link:hover {
  color: var(--de-accent-hover, #0f766e);
}

.ode-post-content {
  max-width: 760px;
  color: var(--de-text-soft, #4b5563);
  line-height: 1.75;
  font-size: 1.05rem;
}

.ode-post-content h2,
.ode-post-content h3,
.ode-post-content h4 {
  color: var(--de-text, #111827);
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

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

.ode-post-content p,
.ode-post-content ul,
.ode-post-content ol,
.ode-post-content blockquote {
  margin-bottom: 1.1rem;
}

.ode-post-content ul,
.ode-post-content ol {
  padding-left: 1.35rem;
}

.ode-post-content a {
  color: var(--de-accent, #0d9488);
  text-decoration: underline;
}

.ode-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.ode-post-content blockquote {
  border-left: 4px solid var(--de-accent, #0d9488);
  padding: 0.5rem 0 0.5rem 1rem;
  color: var(--de-text, #111827);
  background: var(--de-surface-soft, #f8fafc);
  border-radius: 0 8px 8px 0;
}

.ode-blog-pagination .page-numbers {
  display: inline-block;
  margin-right: 8px;
  padding: 8px 12px;
  border: 1px solid var(--de-border, #e5e7eb);
  border-radius: 8px;
  text-decoration: none;
  color: var(--de-text-soft, #4b5563);
}

.ode-blog-pagination .page-numbers.current,
.ode-blog-pagination .page-numbers:hover {
  color: var(--de-accent, #0d9488);
  border-color: var(--de-accent, #0d9488);
}

.post-navigation {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--de-border, #e5e7eb);
}

.post-navigation .nav-links {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .post-navigation .nav-links {
    grid-template-columns: 1fr 1fr;
  }
}

.post-navigation a {
  display: block;
  text-decoration: none;
  color: var(--de-text, #111827);
  border: 1px solid var(--de-border, #e5e7eb);
  border-radius: 12px;
  padding: 14px 16px;
}

.post-navigation a:hover {
  border-color: var(--de-accent, #0d9488);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--de-muted, #9ca3af);
  margin-bottom: 4px;
}

.ode-post-tags a {
  color: var(--de-accent, #0d9488);
  text-decoration: none;
  margin-right: 8px;
}

.ode-single-featured img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
