/* Nuqta Dev Studio — shared blog stylesheet */
:root {
  --ink: #0a0a0f;
  --paper: #fafafa;
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --muted: #6b7280;
  --hairline: #e5e7eb;
  --mist: #f3f4f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Tajawal', 'Space Grotesk', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  text-align: right;
  overflow-x: clip;
}

::selection { background: var(--purple-500); color: #fff; }

a { color: var(--purple-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 900;
}
.nav-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C4B5FD 0%, #8B5CF6 45%, #5B21B6 100%);
}
.nav-wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-wordmark-ar { font-size: 18px; font-weight: 900; }
.nav-wordmark-en { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 700; font-size: 15px; }
.nav-cta {
  background: var(--purple-600); color: #fff !important;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 900; font-size: 14px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--purple-700); text-decoration: none; }

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

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--purple-700); }
.breadcrumb-sep { opacity: 0.5; }

/* Article header */
.article-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-50); color: var(--purple-700);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid var(--purple-200);
}
.article-tag::before { content: ''; width: 6px; height: 6px; background: var(--purple-500); border-radius: 50%; }

h1.article-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}

/* Article body */
.article-body h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 20px;
  color: #1f2937;
}
.article-body ul, .article-body ol {
  padding-right: 24px;
  margin-bottom: 20px;
}
.article-body li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 8px;
}
.article-body strong { color: var(--ink); font-weight: 900; }

.article-body blockquote {
  border-right: 4px solid var(--purple-500);
  background: var(--purple-50);
  padding: 20px 24px;
  border-radius: 12px;
  margin: 24px 0;
  font-size: 17px;
  color: var(--ink);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.article-body th, .article-body td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--hairline);
}
.article-body th {
  background: var(--purple-50);
  color: var(--purple-700);
  font-weight: 900;
}
.article-body tr:last-child td { border-bottom: none; }

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  color: #fff;
  padding: 32px 28px;
  border-radius: 20px;
  margin: 40px 0;
  text-align: center;
}
.cta-box h3 {
  font-size: 24px;
  font-weight: 900;
  color: #fff !important;
  margin: 0 0 8px;
}
.cta-box p {
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 20px;
  font-size: 16px;
}
.cta-box a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--purple-700) !important;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s;
}
.cta-box a:hover { transform: translateY(-2px); text-decoration: none; }

/* Related articles */
.related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.related h3 { font-size: 22px; font-weight: 900; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card {
  display: block;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover { border-color: var(--purple-300); transform: translateY(-2px); text-decoration: none; }
.related-card-tag { font-size: 12px; color: var(--purple-600); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.related-card-title { font-size: 17px; font-weight: 900; color: var(--ink); margin-top: 6px; line-height: 1.4; }

/* Blog index — card grid */
.blog-hero {
  max-width: 1120px; margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: right;
}
.blog-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.blog-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
}
.blog-grid-wrap {
  max-width: 1120px; margin: 0 auto;
  padding: 0 24px 80px;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.blog-card {
  display: flex; flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  transition: border-color 0.2s, transform 0.2s;
  height: 100%;
}
.blog-card:hover { border-color: var(--purple-300); transform: translateY(-4px); text-decoration: none; }
.blog-card-tag {
  display: inline-block;
  background: var(--purple-50); color: var(--purple-700);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  width: fit-content;
}
.blog-card h2 {
  font-size: 22px; font-weight: 900;
  color: var(--ink);
  margin-top: 14px; margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
}
.blog-card-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  background: #fff;
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--muted); font-size: 14px;
}
.footer a { color: var(--ink); }
.footer a:hover { color: var(--purple-700); }

/* WhatsApp bubble */
.wa-bubble {
  position: fixed; bottom: 24px; left: 24px; z-index: 50;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s;
}
.wa-bubble:hover { transform: scale(1.1); text-decoration: none; }
.wa-bubble svg { width: 32px; height: 32px; fill: #fff; }
