/*
 * OpsMed — Single Blog Post Styles
 * WCAG 2.2 AA Compliant
 */

/* Hero */
.page-hero { background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%); color: var(--white); padding: var(--space-3xl) 0 var(--space-2xl); text-align: center; }
.page-hero h1 { font-family: 'Inter', sans-serif; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: var(--space-md); max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.3; }
.page-hero__subtitle { font-size: 1rem; color: var(--blue-100); }

/* Shared */
.section { padding: var(--space-4xl) 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-lg); }

/* Post Meta */
.post-meta { display: flex; justify-content: center; gap: var(--space-md); font-size: 0.9rem; color: var(--blue-100); flex-wrap: wrap; }
.post-meta__sep { opacity: 0.5; }

/* Article Content */
.article-container { max-width: 740px; margin: 0 auto; }
.article-featured { margin-bottom: var(--space-2xl); border-radius: var(--radius-lg); overflow: hidden; }
.article-featured img { width: 100%; height: auto; display: block; }

.article-body { font-size: 1.05rem; color: var(--slate-700); line-height: 1.85; }
.article-body h2 { font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--slate-900); margin: var(--space-2xl) 0 var(--space-md); }
.article-body h3 { font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--slate-800); margin: var(--space-xl) 0 var(--space-sm); }
.article-body p { margin-bottom: var(--space-lg); }
.article-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--blue-800); }
.article-body ul, .article-body ol { margin: var(--space-md) 0 var(--space-lg) var(--space-xl); }
.article-body li { margin-bottom: var(--space-xs); line-height: 1.7; }
.article-body blockquote { border-left: 4px solid var(--blue-400); padding: var(--space-md) var(--space-xl); margin: var(--space-xl) 0; background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body blockquote p { color: var(--slate-600); font-style: italic; margin-bottom: 0; }
.article-body pre { background: var(--slate-900); color: var(--slate-100); padding: var(--space-xl); border-radius: var(--radius-md); overflow-x: auto; font-size: 0.9rem; margin: var(--space-xl) 0; }
.article-body code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.9em; background: var(--slate-100); padding: 0.15em 0.4em; border-radius: 3px; }
.article-body pre code { background: none; padding: 0; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: var(--space-xl) 0; }

/* Post Navigation */
.post-nav { border-top: 1px solid var(--slate-200); margin-top: var(--space-3xl); padding-top: var(--space-2xl); display: flex; justify-content: space-between; gap: var(--space-lg); }
.post-nav a { text-decoration: none; color: var(--blue-700); font-weight: 600; font-size: 0.95rem; max-width: 45%; }
.post-nav a:hover { color: var(--blue-900); }
.post-nav__label { display: block; font-size: 0.8rem; color: var(--slate-500); font-weight: 400; margin-bottom: 0.25em; text-transform: uppercase; letter-spacing: 0.05em; }

/* Focus */
a:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

/* Responsive */
@media (max-width: 600px) {
  .section { padding: var(--space-3xl) 0; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
