/**
 * Egyptian Hands — Blog Stylesheet (Archive, Categories & Single Article)
 * Matches Egyptian Hands brand: #d71920 / #101923 / Cairo & Tajawal / Soft card shadows
 */

.eh-blog-page-container,
.eh-single-post-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 16px;
  direction: rtl;
  font-family: var(--eh-font-body, "Tajawal", "Cairo", sans-serif);
  color: var(--eh-ink, #101923);
}

/* Breadcrumb */
.eh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--eh-muted, #5e6d7d);
  margin-bottom: 24px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.06));
}

.eh-breadcrumb a {
  color: var(--eh-muted, #5e6d7d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.eh-breadcrumb a:hover {
  color: var(--eh-red, #d71920);
}

.eh-breadcrumb-sep {
  opacity: 0.5;
}

.eh-breadcrumb-current {
  color: var(--eh-red, #d71920);
  font-weight: 700;
}

/* Blog Archive Hero Card */
.eh-blog-hero {
  background: #ffffff;
  border: 1px solid var(--eh-border, rgba(16, 25, 35, 0.1));
  border-inline-start: 5px solid var(--eh-red, #d71920);
  border-radius: var(--eh-radius-card, 16px);
  box-shadow: var(--eh-shadow, 0 4px 20px -2px rgba(16, 25, 35, 0.06));
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.eh-blog-hero::after {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(215, 25, 32, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.eh-blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(215, 25, 32, 0.08);
  color: var(--eh-red, #d71920);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.eh-blog-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: var(--eh-ink, #101923);
  margin: 0 0 12px;
  line-height: 1.3;
}

.eh-blog-hero-desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--eh-muted, #5e6d7d);
  line-height: 1.8;
  max-width: 820px;
  margin: 0;
}

/* Category Filter Bar */
.eh-blog-category-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.08));
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(16, 25, 35, 0.03);
}

.eh-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--eh-ink, #101923);
  background: #faf7f4;
  border: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.06));
  text-decoration: none;
  transition: all 0.2s ease;
}

.eh-category-pill:hover {
  border-color: var(--eh-red, #d71920);
  color: var(--eh-red, #d71920);
}

.eh-category-pill.is-active {
  background: var(--eh-red, #d71920);
  color: #ffffff;
  border-color: var(--eh-red, #d71920);
  box-shadow: 0 3px 10px rgba(215, 25, 32, 0.25);
}

.eh-category-count {
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.eh-category-pill.is-active .eh-category-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Blog Posts Grid */
.eh-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

@media (max-width: 767px) {
  .eh-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Blog Post Card */
.eh-blog-card {
  background: #ffffff;
  border: 1px solid var(--eh-border, rgba(16, 25, 35, 0.08));
  border-radius: var(--eh-radius-card, 16px);
  box-shadow: var(--eh-shadow, 0 4px 20px -2px rgba(16, 25, 35, 0.06));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.eh-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--eh-shadow-hover, 0 12px 28px -4px rgba(16, 25, 35, 0.12));
  border-color: rgba(215, 25, 32, 0.3);
}

/* Card Media */
.eh-blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #101923 0%, #202d3d 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eh-blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.eh-blog-card:hover .eh-blog-card-img {
  transform: scale(1.05);
}

.eh-blog-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  padding: 20px;
  text-align: center;
}

.eh-blog-card-placeholder svg {
  width: 44px;
  height: 44px;
  color: var(--eh-red, #d71920);
}

.eh-card-category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--eh-red, #d71920);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  text-decoration: none;
}

.eh-card-category-badge:hover {
  color: #ffffff;
  background: #b8141a;
}

.eh-card-time-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(16, 25, 35, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Card Body */
.eh-blog-card-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eh-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--eh-muted, #5e6d7d);
  margin-bottom: 12px;
}

.eh-blog-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.eh-blog-card-title {
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 12px;
}

.eh-blog-card-title a {
  color: var(--eh-ink, #101923);
  text-decoration: none;
  transition: color 0.2s ease;
}

.eh-blog-card-title a:hover {
  color: var(--eh-red, #d71920);
}

.eh-blog-card-excerpt {
  font-size: 14px;
  color: var(--eh-muted, #5e6d7d);
  line-height: 1.75;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.eh-blog-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.06));
}

.eh-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--eh-red, #d71920);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.eh-blog-read-more:hover {
  color: #b8141a;
  gap: 12px;
}

.eh-blog-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.eh-blog-read-more:hover svg {
  transform: translateX(-4px);
}

/* Pagination */
.eh-pagination {
  display: flex;
  justify-content: center;
  margin: 36px 0 48px;
}

.eh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  margin: 0 4px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.1));
  color: var(--eh-ink, #101923);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.eh-pagination .page-numbers:hover,
.eh-pagination .page-numbers.current {
  background: var(--eh-red, #d71920);
  border-color: var(--eh-red, #d71920);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(215, 25, 32, 0.25);
}

/* Bottom CTA Banner */
.eh-blog-cta-banner {
  background: linear-gradient(135deg, #101923 0%, #1c2a38 100%);
  border-radius: var(--eh-radius-card, 16px);
  padding: clamp(28px, 4vw, 40px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--eh-shadow, 0 4px 20px -2px rgba(16, 25, 35, 0.06));
}

@media (max-width: 768px) {
  .eh-blog-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

.eh-blog-cta-content h3 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px;
}

.eh-blog-cta-content p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.6;
}

.eh-blog-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.eh-cta-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--eh-whatsapp, #25d366);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--eh-radius-btn, 12px);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease;
}

.eh-cta-btn-wa:hover {
  background: #1ebc57;
  color: #ffffff;
}

.eh-cta-btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--eh-red, #d71920);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--eh-radius-btn, 12px);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease;
}

.eh-cta-btn-shop:hover {
  background: #b8141a;
  color: #ffffff;
}

/* ==========================================================================
   Single Post Article View
   ========================================================================== */
.eh-article-card {
  background: #ffffff;
  border: 1px solid var(--eh-border, rgba(16, 25, 35, 0.1));
  border-radius: var(--eh-radius-card, 16px);
  box-shadow: var(--eh-shadow, 0 4px 20px -2px rgba(16, 25, 35, 0.06));
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 32px;
}

.eh-article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.08));
}

.eh-article-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eh-article-title {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 900;
  color: var(--eh-ink, #101923);
  line-height: 1.35;
  margin: 0 0 18px;
}

.eh-article-author-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #faf7f4;
  border-radius: 12px;
  border: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.06));
}

.eh-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eh-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--eh-red, #d71920);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.eh-author-details strong {
  display: block;
  font-size: 14px;
  color: var(--eh-ink, #101923);
}

.eh-author-details span {
  font-size: 12.5px;
  color: var(--eh-muted, #5e6d7d);
}

/* Article Body Typography */
.eh-article-body {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--eh-ink, #101923);
}

.eh-blog-lead {
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--eh-ink, #101923);
  padding: 18px 24px;
  background: #faf7f4;
  border-inline-start: 4px solid var(--eh-red, #d71920);
  border-radius: 12px;
  margin-bottom: 28px;
}

.eh-article-body h2 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  color: var(--eh-ink, #101923);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(215, 25, 32, 0.15);
}

.eh-article-body h3 {
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 800;
  color: var(--eh-ink, #101923);
  margin: 28px 0 12px;
}

.eh-article-body p {
  margin-bottom: 18px;
  line-height: 1.9;
}

.eh-article-body ul,
.eh-article-body ol {
  padding-inline-start: 24px;
  margin-bottom: 22px;
}

.eh-article-body li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* Callout Boxes */
.eh-blog-callout {
  padding: 20px 24px;
  border-radius: 14px;
  margin: 28px 0;
  border: 1px solid transparent;
}

.eh-blog-callout h4 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 10px;
}

.eh-blog-callout ul {
  margin: 0;
  padding-inline-start: 20px;
}

.eh-blog-callout--tip {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #115e59;
}
.eh-blog-callout--tip h4 { color: #0f766e; }

.eh-blog-callout--warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.eh-blog-callout--warning h4 { color: #b45309; }

.eh-blog-callout--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.eh-blog-callout--danger h4 { color: #b91c1c; }

.eh-blog-callout--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.eh-blog-callout--success h4 { color: #047857; }

/* Article Social Share */
.eh-article-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.08));
}

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

.eh-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.eh-share-btn--wa {
  background: var(--eh-whatsapp, #25d366);
  color: #ffffff;
}
.eh-share-btn--wa:hover {
  background: #1ebc57;
  color: #ffffff;
}

.eh-share-btn--fb {
  background: #1877f2;
  color: #ffffff;
}
.eh-share-btn--fb:hover {
  background: #0d65d9;
  color: #ffffff;
}

.eh-share-btn--copy {
  background: #faf7f4;
  border: 1px solid var(--eh-border-light, rgba(16, 25, 35, 0.1));
  color: var(--eh-ink, #101923);
}
.eh-share-btn--copy:hover {
  border-color: var(--eh-red, #d71920);
  color: var(--eh-red, #d71920);
}
