/* blog-common.css — shared styles for all blog/article pages */

/* Reuse main styles.css variables, add article-specific rules */
.article-topnav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 13px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.article-topnav .nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; color: var(--primary); text-decoration: none;
}
.article-topnav .nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.article-topnav .back-link {
  font-size: 13.5px; font-weight: 600; color: var(--text2);
  text-decoration: none; transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.article-topnav .back-link:hover { color: var(--primary); }
.article-topnav .nav-actions { display: flex; gap: 8px; }

/* Article layout */
.article-wrap {
  max-width: 860px; margin: 0 auto; padding: 0 24px 80px;
}

/* Hero banner */
.article-hero {
  background: linear-gradient(135deg, #1FAB89 0%, #0c5a47 100%);
  border-radius: 0 0 28px 28px;
  padding: 48px 32px 40px;
  margin-bottom: 36px;
  position: relative; overflow: hidden; color: #fff;
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M40 0L48 24H72L52 38L60 62L40 48L20 62L28 38L8 24H32Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.article-hero .hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.article-category {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: 34px; font-weight: 900; color: #fff; letter-spacing: -0.8px;
  line-height: 1.2; margin-bottom: 14px;
}
.article-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.72);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* Content area */
.article-body {
  font-size: 16px; line-height: 1.85; color: var(--text2);
}
.article-body h2 {
  font-size: 24px; font-weight: 800; color: var(--text);
  margin: 36px 0 14px; letter-spacing: -0.3px;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.article-body h3 {
  font-size: 19px; font-weight: 700; color: var(--text);
  margin: 26px 0 10px;
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol {
  padding-left: 22px; margin-bottom: 20px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.8; }
.article-body strong { color: var(--text); font-weight: 700; }

.article-body .arabic-quote {
  font-family: 'Amiri', serif;
  font-size: 26px; direction: rtl; text-align: center;
  color: var(--primary); line-height: 2; padding: 18px 20px;
  background: rgba(31,171,137,0.06);
  border-right: 4px solid var(--primary);
  border-radius: 4px; margin: 24px 0 8px;
}
.article-body .arabic-source {
  text-align: center; font-size: 13px; color: var(--text2);
  margin-bottom: 24px; font-style: italic;
}
.article-body .highlight-box {
  background: rgba(31,171,137,0.08);
  border: 1px solid rgba(31,171,137,0.22);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 24px 0;
}
.article-body .highlight-box p { margin: 0; color: var(--text); font-weight: 500; }
.article-body .gold-box {
  background: rgba(244,196,48,0.08);
  border: 1px solid rgba(244,196,48,0.25);
  border-left: 4px solid #F4C430;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 24px 0;
}
.article-body .gold-box p { margin: 0; color: var(--text); }

/* Info card grid */
.info-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 14px; margin: 24px 0;
}
.info-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 20px;
  transition: all 0.25s;
}
.info-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.info-card .ic-icon { font-size: 30px; margin-bottom: 10px; }
.info-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.info-card p { font-size: 13px; color: var(--text2); line-height: 1.65; margin: 0; }

/* Steps list */
.steps-list { counter-reset: steps; list-style: none !important; padding: 0 !important; }
.steps-list li {
  counter-increment: steps;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--glass-border);
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(steps);
  min-width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0c5a47);
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* Related articles */
.related-articles {
  margin-top: 48px; padding-top: 32px;
  border-top: 2px solid var(--glass-border);
}
.related-articles h3 {
  font-size: 20px; font-weight: 800; margin-bottom: 20px; color: var(--text);
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 16px;
}
.related-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 20px; text-decoration: none;
  display: block; transition: all 0.25s;
}
.related-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.related-card .rc-cat {
  font-size: 11px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 8px;
}
.related-card h4 { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.related-card p { font-size: 12.5px; color: var(--text2); margin-top: 6px; line-height: 1.5; }

/* AdSense slots injected by AdSense auto-ads — no manual placeholders needed */

/* Footer */
.article-footer {
  background: var(--bg2); border-top: 1px solid var(--glass-border);
  padding: 22px 32px; text-align: center;
  font-size: 12.5px; color: var(--text3);
}
.article-footer a { color: var(--primary); text-decoration: none; }
.article-footer a:hover { text-decoration: underline; }

/* TOC */
.toc-box {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 20px 24px; margin-bottom: 32px;
}
.toc-box h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.toc-box ol {
  padding-left: 18px; margin: 0 !important;
}
.toc-box ol li {
  font-size: 13.5px; margin-bottom: 6px;
}
.toc-box ol li a {
  color: var(--text2); text-decoration: none; transition: color 0.2s;
}
.toc-box ol li a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .article-topnav { padding: 12px 16px; }
  .article-hero { padding: 32px 18px 28px; border-radius: 0 0 20px 20px; }
  .article-hero h1 { font-size: 26px; }
  .article-wrap { padding: 0 14px 60px; }
  .article-body h2 { font-size: 20px; }
  .article-body { font-size: 15px; }
  .related-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   BREADCRUMB NAV
   ============================================================ */
.breadcrumb-nav {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 24px 0;
  font-size: 12.5px;
  color: var(--text3);
}
.breadcrumb-nav a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .sep { margin: 0 6px; }
.breadcrumb-nav .current { color: var(--primary); font-weight: 600; }

/* ============================================================
   ARTICLE READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), #2ec4a0);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.1s linear;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-top: 32px;
  border-top: 2px solid var(--glass-border);
}
.share-bar .share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.share-btn-copy {
  background: var(--card);
  border: 1.5px solid var(--card-border);
  color: var(--text2);
}
.share-btn-copy:hover { border-color: var(--primary); color: var(--primary); }
.share-btn-whatsapp { background: #25D366; color: #fff; }
.share-btn-whatsapp:hover { background: #1da85e; }
.share-btn-twitter { background: #000; color: #fff; }
.share-btn-twitter:hover { background: #333; }

/* ============================================================
   AUTHOR / ARTICLE BYLINE BOX
   ============================================================ */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 32px;
}
.author-box .author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0c5a47);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}
.author-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.author-box p  { font-size: 13px; color: var(--text2); line-height: 1.6; margin: 0; }
