/* ============================================
   Omegafit.ee Blog Post Styles
   Athletic Editorial Design
   ============================================ */

/* --- Variables --- */
.single-post {
  --omg-accent: #ff0055;
  --omg-accent-glow: rgba(255, 0, 85, 0.12);
  --omg-dark: #111111;
  --omg-mid: #2a2a2a;
  --omg-text: #333333;
  --omg-muted: #6b7280;
  --omg-light: #f7f7f8;
  --omg-border: #e5e7eb;
  --omg-white: #ffffff;
  --omg-radius: 12px;
  --omg-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --omg-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
}

/* --- Article Body --- */
.single-post .entry-content {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--omg-text);
  max-width: 780px;
  margin: 0 auto;
}

.single-post .entry-content > * + * {
  margin-top: 1.5em;
}

/* --- Lead Paragraph --- */
.single-post .entry-content .lead,
.single-post .entry-content > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--omg-mid);
  border-left: 4px solid var(--omg-accent);
  padding-left: 1.25em;
  margin-bottom: 2em;
}

/* --- Update Badge --- */
.single-post .entry-content .lead + p em,
.single-post .entry-content > p:nth-of-type(2) em {
  display: inline-block;
  background: var(--omg-accent-glow);
  color: var(--omg-accent);
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 4px 14px;
  border-radius: 20px;
}

/* --- Headings --- */
.single-post .entry-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--omg-dark);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--omg-accent);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.single-post .entry-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--omg-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

/* --- Lists --- */
.single-post .entry-content ul,
.single-post .entry-content ol {
  padding-left: 0;
  list-style: none;
}

.single-post .entry-content ul li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.65em;
  line-height: 1.65;
}

.single-post .entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--omg-accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.single-post .entry-content ol {
  counter-reset: step-counter;
}

.single-post .entry-content ol li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.75em;
}

.single-post .entry-content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8em;
  height: 1.8em;
  background: var(--omg-accent);
  color: var(--omg-white);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Product Cards Grid --- */
.single-post .product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.single-post .product-card {
  background: var(--omg-white);
  border-radius: var(--omg-radius);
  box-shadow: var(--omg-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.single-post .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--omg-shadow-hover);
}

.single-post .product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--omg-light);
  padding: 1rem;
}

.single-post .product-card-body {
  padding: 1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.single-post .product-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--omg-dark);
  margin-bottom: 0.35em;
  line-height: 1.35;
}

.single-post .product-card-meta {
  font-size: 0.82rem;
  color: var(--omg-muted);
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.single-post .product-card-price {
  margin-top: auto;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--omg-accent);
}

.single-post .product-card-badge {
  display: inline-block;
  background: var(--omg-accent);
  color: var(--omg-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.5em;
}

.single-post .product-card-badge.green {
  background: #059669;
}

/* --- Callout / Tip Box --- */
.single-post .callout {
  background: linear-gradient(135deg, var(--omg-dark) 0%, var(--omg-mid) 100%);
  color: var(--omg-white);
  border-radius: var(--omg-radius);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.single-post .callout::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--omg-accent);
  opacity: 0.15;
  border-radius: 50%;
}

.single-post .callout-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.5em;
  color: var(--omg-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.single-post .callout p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.7;
}

.single-post .callout a {
  color: var(--omg-accent);
  text-decoration: underline;
}

.single-post .entry-content .callout strong {
  color: var(--omg-white);
  font-weight: 700;
}

/* --- Comparison Table --- */
.single-post .entry-content .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--omg-radius);
  overflow: hidden;
  box-shadow: var(--omg-shadow);
  font-size: 0.92rem;
  margin: 2rem 0;
}

.single-post .entry-content .wp-block-table thead {
  background: var(--omg-dark);
  color: var(--omg-white);
}

.single-post .entry-content .wp-block-table th {
  padding: 0.9rem 1rem;
  font-weight: 700;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
}

.single-post .entry-content .wp-block-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--omg-border);
  border-left: none;
  border-right: none;
  vertical-align: middle;
}

.single-post .entry-content .wp-block-table tbody tr {
  background: var(--omg-white);
  transition: background 0.15s;
}

.single-post .entry-content .wp-block-table tbody tr:hover {
  background: var(--omg-accent-glow);
}

.single-post .entry-content .wp-block-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- FAQ Section --- */
.single-post .entry-content h3 + p {
  margin-top: 0.25em;
}

/* FAQ-style: questions in h3 after the FAQ h2 */
.single-post .entry-content h2 + h3,
.single-post .entry-content p + h3 {
  background: var(--omg-white);
  margin: 1.5rem 0 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--omg-radius) var(--omg-radius) 0 0;
  box-shadow: var(--omg-shadow);
  border-left: 4px solid var(--omg-accent);
  font-size: 1.05rem;
}

.single-post .entry-content h2 + h3 + p,
.single-post .entry-content p + h3 + p {
  background: var(--omg-white);
  padding: 0 1.25rem 1rem 1.25rem;
  border-radius: 0 0 var(--omg-radius) var(--omg-radius);
  box-shadow: var(--omg-shadow);
  margin-top: 0;
  margin-bottom: 0;
  border-left: 4px solid transparent;
}

/* --- Links --- */
.single-post .entry-content a {
  color: var(--omg-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.single-post .entry-content a:hover {
  border-bottom-color: var(--omg-accent);
}

/* --- Strong/Bold emphasis --- */
.single-post .entry-content strong {
  color: var(--omg-dark);
  font-weight: 700;
}

/* --- Post Header --- */
.single-post .entry-header .entry-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--omg-dark);
}

/* --- CTA Button --- */
.single-post .blog-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--omg-accent);
  color: var(--omg-white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.75em;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(255, 0, 85, 0.3);
}

.single-post .blog-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 85, 0.4);
  color: var(--omg-white);
  border-bottom: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .single-post .entry-content {
    font-size: 1rem;
  }

  .single-post .entry-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
  }

  .single-post .entry-header .entry-title {
    font-size: 1.6rem;
  }

  .single-post .product-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .single-post .product-card img {
    height: 140px;
  }

  .single-post .callout {
    padding: 1.25rem 1.5rem;
  }

  .single-post .entry-content .wp-block-table {
    font-size: 0.82rem;
  }

  .single-post .entry-content .wp-block-table th,
  .single-post .entry-content .wp-block-table td {
    padding: 0.6rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .single-post .product-cards {
    grid-template-columns: 1fr;
  }
}
