/*
 * Single post styles — mobile base.
 * Loaded only on is_singular('post').
 */

/* article-specific: masthead link */
.masthead a {
  text-decoration: none;
  color: inherit;
}

/* ========== BACK LINK ========== */
.back-link {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.back-link a:hover {
  color: var(--burgundy);
}

.back-link a svg {
  width: 16px;
  height: 16px;
}

/* ========== ARTICLE HEADER ========== */
.article-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px 0;
  text-align: center;
}

.article-category {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.article-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--burgundy-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.article-meta .separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.article-meta .author-name {
  font-weight: 600;
  color: var(--text-light);
}

.article-header-divider {
  width: 80px;
  height: 1.5px;
  background: var(--burgundy);
  margin: 28px auto 0;
  opacity: 0.3;
}

/* ========== ARTICLE CONTENT ========== */
.article-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
}

.article-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--burgundy-dark);
  margin-top: 44px;
  margin-bottom: 18px;
  line-height: 1.3;
}

.article-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--burgundy);
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--burgundy);
  background: rgba(114, 47, 55, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content blockquote p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 500;
  color: var(--burgundy);
}

/* Arabic text blocks */
.arabic-block {
  direction: rtl;
  text-align: right;
  font-family: 'Scheherazade New', serif;
  font-size: 1.2rem;
  line-height: 2.2;
  color: var(--burgundy-dark);
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.03) 0%, rgba(201, 169, 110, 0.04) 100%);
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin: 28px 0;
  position: relative;
}

.arabic-block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--burgundy);
  border-radius: 3px 0 0 3px;
  opacity: 0.3;
}

.arabic-inline {
  direction: rtl;
  font-family: 'Scheherazade New', serif;
  font-size: 1.2rem;
  color: var(--burgundy-dark);
  unicode-bidi: isolate;
}

/* Content divider */
.content-divider {
  text-align: center;
  margin: 40px 0;
  color: var(--accent-gold);
  font-size: 1.2rem;
  letter-spacing: 8px;
  opacity: 0.5;
}

/* Emphasis box */
.emphasis-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.emphasis-box .label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.emphasis-box p {
  margin-bottom: 0;
}

/* ========== VIDEO EMBED ========== */
.video-embed {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.video-embed .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #1a1a1a;
}

.video-embed .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-lazy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #1a1a1a;
}

.video-lazy .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.video-lazy:hover .video-thumbnail {
  opacity: 1;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.video-lazy:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.video-caption {
  padding: 12px 16px;
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ========== SHARE BUTTONS ========== */
.share-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
}

.share-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

/* ========== RELATED ARTICLES ========== */
.related-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.related-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--burgundy-dark);
  text-align: center;
  margin-bottom: 8px;
}

.related-divider {
  width: 50px;
  height: 1px;
  background: var(--burgundy);
  margin: 0 auto 32px;
  opacity: 0.3;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.related-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.related-card-link:hover .related-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.related-card-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.related-card-thumbnail svg {
  width: 100%;
  height: auto;
  display: block;
}

.related-card-body {
  padding: 18px 20px 16px;
}

.related-card-category {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  border: 1.2px solid var(--burgundy);
  border-radius: 50px;
  padding: 2px 9px;
  margin-bottom: 8px;
}

.related-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  transition: color var(--transition);
}

.related-card-link:hover .related-card-title {
  color: var(--burgundy);
}

.related-card-meta {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
