/* Frontend note: Styles for blog inline. */
/*
 * Blog Page – Minimal Light Style
 */

/* Typography */
body,
body *,
h1, h2, h3, h4, h5, h6,
p, span, div, a, li, ul, ol,
.heading-two, .heading-four, .heading-five,
.section-content, .blog-title, .blog-category-link,
.tag-text, .blog-date, .blog-meta,
.search-input-two {
  font-family: 'YekanBakh', 'Vazirmatn', Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.2px;
  color: #222;
}

body {
  background: #ffffff;
  line-height: 1.8;
  transition: opacity 0.2s ease-in;
}

body[unresolved] {
  opacity: 0;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  margin: 3rem 0 1.2rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Remove aggressive outlines */
.wf-force-outline-none[tabindex="-1"]:focus,
.lf-player-container :focus {
  outline: none;
}

/* Range / Progress – lighter */
.lf-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #eee;
  cursor: pointer;
}

.lf-progress::-webkit-slider-thumb,
.lf-progress::-moz-range-thumb,
.lf-progress::-ms-thumb {
  -webkit-appearance: none;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
}

/* Player Buttons */
.lf-player-btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lf-player-btn {
  width: 16px;
  fill: #bbb;
  transition: fill 0.2s ease;
}

.lf-player-btn.active {
  fill: #333;
}

/* Popover – clean + light */
.lf-popover {
  position: relative;
}

.lf-popover-content {
  position: absolute;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
}

/* Arrow */
.lf-arrow {
  position: absolute;
  bottom: -8px;
  border-style: solid;
  border-width: 8px 8px 0 8px;
}

/* Alignment */
.lf-left-align { left: 0; }
.lf-right-align { right: 0; }

/* Inputs */
.lf-text-input {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 6px 10px;
  width: 70px;
  font-size: 0.9rem;
}

/* Color Picker */
.lf-color-picker {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.lf-color-selectors,
.lf-color-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lf-color-component {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  gap: 12px;
}

.lf-color-component strong {
  width: 36px;
  font-weight: 400;
}

.lf-color-component input[type='range'],
.lf-color-component input[type='number'] {
  margin: 0;
}

.lf-preview {
  height: 60px;
  width: 60px;
  border-radius: 6px;
}

/* Snapshot */
.lf-popover-snapshot {
  width: 180px;
}

.lf-popover-snapshot h5 {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 400;
}

.lf-popover-snapshot a {
  display: block;
  text-decoration: none;
  margin-bottom: 6px;
  color: #333;
}

.lf-popover-snapshot .lf-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #999;
}

/* Controls spacing */
.lf-player-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

/* Header isolation: prevent About typography from affecting shared navbar */
.about-page .ab-header-shell {
  font-size: initial;
  line-height: normal;
  color: initial;
}

.about-page .ab-header-shell * {
  line-height: normal;
}

.blog-card-image--placeholder {
  background: linear-gradient(135deg, rgba(105, 195, 80, 0.18) 0%, rgba(162, 200, 79, 0.32) 100%);
}

.blog-empty-state {
  border: 1px dashed rgba(105, 195, 80, 0.35);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  color: #475569;
}

.blog-richtext {
  font-family: 'Vazirmatn', Arial, sans-serif;
  color: #1f2937;
}

.blog-richtext > *:first-child {
  margin-top: 0;
}

.blog-richtext h2,
.blog-richtext h3,
.blog-richtext h4 {
  color: #0f172a;
  line-height: 1.5;
}

.blog-richtext img,
.blog-richtext video {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.blog-richtext audio {
  width: 100%;
}

.blog-richtext figure {
  margin: 2rem 0;
}

.blog-richtext figcaption {
  margin-top: 10px;
  color: #64748b;
  font-size: 14px;
}

.blog-richtext ul,
.blog-richtext ol {
  padding-right: 1.5rem;
}

.blog-related-posts {
  padding: 0 0 60px;
}
