/* OrthoCure Blog Base Styles */
/* Save as: /css/blog.css */

:root {
  --color-navy: #142a46;
  --color-teal: #008b8b;
  --color-soft-bg: #f9fafb;
  --color-soft-panel: #f1f5f9;
  --color-panel-strong: #e5f3f3;
  --color-warm-accent: #f59e0b;
  --color-danger: #b91c1c;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-border-soft: #e5e7eb;

  --radius-card: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 3px rgba(15,23,42,0.08);
  --shadow-medium: 0 10px 30px rgba(15,23,42,0.18);
}

/* Global reset, but gentle */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.7;
  color: var(--color-text-main);
  background: var(--color-soft-bg);
}

/* Page shell */

.blog-shell {
  padding: 20px;
}

.blog-container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 32px 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

/* Header */

.blog-header {
  margin-bottom: 32px;
}

.blog-kicker {
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.blog-title {
  font-size: 2.2rem;
  line-height: 1.2;
  color: #1f2933;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.blog-tagline {
  color: var(--color-teal);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 12px 0;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Back link */

.blog-back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--color-teal);
  text-decoration: none;
}

.blog-back-link:hover {
  text-decoration: underline;
}

/* Typography */

p {
  margin: 0 0 18px 0;
  font-size: 1.02rem;
}

h1,
h2,
h3,
h4 {
  color: var(--color-navy);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 14px;
}

h2 {
  font-size: 1.7rem;
  border-bottom: 3px solid var(--color-teal);
  padding-bottom: 10px;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

ul,
ol {
  margin: 0 0 18px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

strong {
  font-weight: 600;
}

/* Links */

a {
  color: var(--color-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Content cards / panels */

.section-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.highlight-box {
  background: var(--color-soft-panel);
  border-left: 4px solid var(--color-teal);
  padding: 18px 18px;
  border-radius: 8px;
  margin: 20px 0;
}

.warning-box {
  background: #fff7ed;
  border-left: 4px solid var(--color-warm-accent);
  padding: 18px 18px;
  border-radius: 8px;
  margin: 20px 0;
}

.danger-box {
  background: #fef2f2;
  border-left: 4px solid var(--color-danger);
  padding: 18px 18px;
  border-radius: 8px;
  margin: 20px 0;
}

/* Stat highlight */

.stat-box {
  background: linear-gradient(135deg, var(--color-navy), #1e3a5f);
  color: #ffffff;
  border-radius: var(--radius-card);
  padding: 22px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-medium);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 6px;
}

.stat-text {
  font-size: 1rem;
}

/* Simple table */

.simple-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
}

.simple-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
}

.simple-table thead {
  background: linear-gradient(135deg, var(--color-navy), #1e3a5f);
  color: #ffffff;
}

.simple-table th {
  padding: 14px 14px;
  text-align: left;
}

.simple-table td {
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-soft);
}

.simple-table tr:nth-child(even) td {
  background: var(--color-soft-panel);
}

.simple-table tr:last-child td {
  border-bottom: none;
}

/* Lists with icons */

.icon-list {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.icon-list li {
  position: relative;
  padding: 10px 12px 10px 42px;
  margin-bottom: 10px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: background 0.15s ease, transform 0.15s ease;
}

.icon-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-teal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.icon-list li:hover {
  background: var(--color-soft-panel);
  transform: translateX(2px);
}

/* Images and captions */

.blog-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 26px 0 10px 0;
  display: block;
}

.blog-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

/* CTA section */

.cta-section {
  margin: 40px 0;
  padding: 32px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-teal), #006969);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.cta-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.6rem;
}

.cta-section p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.cta-button {
  display: inline-block;
  margin-top: 6px;
  background: #ffffff;
  color: var(--color-teal);
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.3);
}

/* FAQ */

.faq-section {
  margin: 36px 0;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.faq-answer {
  color: var(--color-text-main);
}

/* Internal links block */

.internal-links-block {
  margin: 40px 0 20px 0;
  padding: 24px 20px;
  border-radius: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.internal-links-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #0f172a;
}

.internal-links-subtitle {
  margin: 0 0 18px 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.internal-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.internal-link-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.internal-link-card a {
  display: block;
  color: var(--color-navy);
  font-weight: 600;
  margin-bottom: 4px;
  text-decoration: none;
}

.internal-link-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.internal-link-card:hover {
  border-color: var(--color-teal);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* Footer contact block */

.blog-footer-card {
  text-align: center;
  padding: 24px 20px;
  border-radius: 10px;
  background: #f8fafc;
  margin: 30px 0;
  border: 1px solid #e5e7eb;
}

/* Utility */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.mb-0 {
  margin-bottom: 0;
}

/* Mobile */

@media (max-width: 768px) {
  .blog-container {
    padding: 24px 16px;
  }

  .blog-title {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .cta-section {
    padding: 26px 18px;
  }

  .internal-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Additions for Stress Fracture and Frozen Shoulder pages ===== */

/* Breadcrumb navigation */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--color-teal);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Updated date under meta */

.blog-updated {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Table of contents */

.table-of-contents {
  margin: 24px 0 28px 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--color-soft-panel);
  border: 1px solid var(--color-border-soft);
}

.table-of-contents h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--color-navy);
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 6px;
}

.table-of-contents a {
  font-size: 0.95rem;
  color: var(--color-teal);
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* Inline highlight line inside article */

.highlight-inline {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecfeff;
  border-left: 4px solid var(--color-teal);
  font-size: 0.98rem;
}

/* CTA card inside article body */

.cta-card {
  margin: 34px 0;
  padding: 24px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-teal), #006969);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.cta-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #ffffff;
}

.cta-card p {
  margin: 0 0 12px 0;
  font-size: 1rem;
}

/* Share buttons under CTA */

.share-buttons {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-button {
  display: inline-block;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  text-decoration: none;
  background: rgba(15, 118, 110, 0.1);
  backdrop-filter: blur(4px);
}

.share-button:hover {
  background: rgba(15, 118, 110, 0.2);
}

/* Internal links simple list version */

.internal-links-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0 0;
}

.internal-links-list li {
  margin-bottom: 8px;
}

.internal-links-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
}

.internal-links-list a:hover {
  text-decoration: underline;
}

/* Mobile tweaks for new blocks */

@media (max-width: 768px) {
  .table-of-contents {
    padding: 14px 14px;
  }

  .cta-card {
    padding: 22px 16px;
  }
}

/* Dark mode extension for OrthoCure blog */

@media (prefers-color-scheme: dark) {
  :root {
    --color-soft-bg: #020617;        /* page background */
    --color-soft-panel: #0f172a;     /* panels, boxes */
    --color-panel-strong: #020617;
    --color-text-main: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-border-soft: #1f2937;
  }

  body {
    background: var(--color-soft-bg);
    color: var(--color-text-main);
  }

  .blog-container {
    background: #020617;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
    border-radius: 16px;
  }

  .blog-title,
  h1,
  h2,
  h3,
  h4 {
    color: #e5e7eb;
  }

  .blog-tagline {
    color: var(--color-teal);
  }

  .blog-meta,
  .blog-updated {
    color: var(--color-text-muted);
  }

  /* Links slightly brighter on dark */

  a {
    color: #22d3ee;
  }

  a:hover {
    text-decoration: underline;
  }

  .breadcrumb {
    color: var(--color-text-muted);
  }

  .breadcrumb a {
    color: #38bdf8;
  }

  /* Text blocks and panels */

  .section-card {
    background: #020617;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }

  .highlight-box {
    background: #0b1120;
    border-left-color: var(--color-teal);
  }

  .warning-box {
    background: #451a03;
    border-left-color: #fbbf24;
  }

  .danger-box {
    background: #7f1d1d;
    border-left-color: #f97373;
  }

  .highlight-inline {
    background: #022c22;
    border-left-color: #22c55e;
    color: #e5e7eb;
  }

  /* Images */

  .blog-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  }

  .blog-caption {
    color: var(--color-text-muted);
  }

  /* Tables */

  .simple-table {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  }

  .simple-table thead {
    background: linear-gradient(135deg, #020617, #0f172a);
  }

  .simple-table td {
    background: #020617;
    border-bottom-color: var(--color-border-soft);
    color: var(--color-text-main);
  }

  .simple-table tr:nth-child(even) td {
    background: #020617;
  }

  /* CTA blocks */

  .cta-section {
    background: linear-gradient(135deg, #0f766e, #0e7490);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  }

  .cta-section p {
    color: #e5e7eb;
  }

  .cta-button {
    background: #f9fafb;
    color: #0f766e;
  }

  .cta-card {
    background: linear-gradient(135deg, #0f766e, #0e7490);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  }

  .share-button {
    border-color: rgba(248, 250, 252, 0.7);
    background: rgba(15, 23, 42, 0.6);
  }

  .share-button:hover {
    background: rgba(15, 23, 42, 0.8);
  }

  /* FAQ */

  .faq-section {
    border-color: var(--color-border-soft);
  }

  .faq-answer {
    color: var(--color-text-main);
  }

  /* Internal links */

  .internal-links-block {
    background: #020617;
    border-color: #1d4ed8;
  }

  .internal-links-title {
    color: #e5e7eb;
  }

  .internal-links-subtitle {
    color: var(--color-text-muted);
  }

  .internal-link-card {
    background: #020617;
    border-color: #1f2937;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  }

  .internal-link-card a {
    color: #e5e7eb;
  }

  .internal-link-card span {
    color: var(--color-text-muted);
  }

  .internal-links-list a {
    color: #e5e7eb;
  }

  /* Footer contact block */

  .blog-footer-card {
    background: #020617;
    border-color: #1f2937;
    color: var(--color-text-main);
  }
}