/* MuftiHub Blog — shared styles (brand: emerald #059669 / teal #0d9488) */
:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f0fdf4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d1fae5;
}
.site-header .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px;
}
.brand .name {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--body); font-weight: 500; }
.site-nav a:hover { color: var(--emerald-dark); text-decoration: none; }
.site-nav .cta {
  background: var(--emerald); color: #fff;
  padding: 8px 16px; border-radius: 9px; font-weight: 600;
}
.site-nav .cta:hover { background: var(--emerald-dark); }
@media (max-width: 640px) { .site-nav a:not(.cta) { display: none; } }

/* Layout */
.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--muted); margin: 28px 0 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--emerald-dark); }

/* Article */
.post-header { margin: 8px 0 28px; }
.eyebrow {
  display: inline-block;
  background: #d1fae5; color: #065f46;
  font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
h1 { font-size: 2.3rem; line-height: 1.2; color: var(--ink); margin: 0 0 14px; font-weight: 800; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-meta span + span::before { content: "·"; margin: 0 8px; }

article h2 { font-size: 1.6rem; color: var(--ink); margin: 40px 0 14px; font-weight: 700; }
article h3 { font-size: 1.2rem; color: var(--ink); margin: 28px 0 10px; font-weight: 700; }
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 22px; }
article li { margin-bottom: 8px; }
article strong { color: var(--ink); }

.lead { font-size: 1.18rem; color: #1f2937; }

blockquote {
  margin: 24px 0; padding: 16px 20px;
  background: var(--bg-soft); border-left: 4px solid var(--emerald);
  border-radius: 8px; color: #065f46;
}
blockquote p:last-child { margin-bottom: 0; }

.callout {
  background: var(--bg-soft); border: 1px solid #a7f3d0;
  border-radius: 12px; padding: 20px 22px; margin: 28px 0;
}
.callout h3 { margin-top: 0; }

.note {
  font-size: 0.95rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px;
}

/* CTA box */
.cta-box {
  margin: 40px 0;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #a7f3d0;
  border-radius: 16px; padding: 28px;
  text-align: center;
}
.cta-box h3 { margin: 0 0 10px; color: var(--ink); font-size: 1.3rem; }
.cta-box p { margin: 0 0 18px; color: var(--body); }
.btn {
  display: inline-block;
  background: var(--emerald); color: #fff !important;
  padding: 12px 24px; border-radius: 10px; font-weight: 600;
}
.btn:hover { background: var(--emerald-dark); text-decoration: none; }

/* Embedded waitlist form */
.waitlist-form {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; max-width: 460px; margin: 0 auto;
}
.waitlist-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 12px 14px; font-size: 1rem;
  border: 1px solid #a7f3d0; border-radius: 10px; outline: none;
  background: #fff; color: var(--ink);
}
.waitlist-form input[type="email"]:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(5,150,105,.15); }
.waitlist-form button {
  flex: 0 0 auto;
  background: var(--emerald); color: #fff;
  border: none; cursor: pointer;
  padding: 12px 22px; font-size: 1rem; font-weight: 600; border-radius: 10px;
  transition: background .15s;
}
.waitlist-form button:hover { background: var(--emerald-dark); }
.waitlist-form button:disabled { opacity: .6; cursor: default; }
.form-msg { margin: 14px 0 0; font-size: 0.95rem; min-height: 1.2em; }
.form-msg.ok { color: #047857; font-weight: 600; }
.form-msg.err { color: #b91c1c; }
.form-fineprint { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }

/* Related posts */
.related { margin: 48px 0 0; }
.related h2 { font-size: 1.4rem; margin-bottom: 16px; }
.related-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: block; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; transition: border-color .15s, box-shadow .15s;
}
.related-card:hover { border-color: var(--emerald); box-shadow: 0 4px 14px rgba(5,150,105,.08); text-decoration: none; }
.related-card .k { font-size: 12px; font-weight: 600; color: var(--emerald-dark); text-transform: uppercase; letter-spacing: .03em; }
.related-card .t { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }

/* Blog index */
.index-hero { text-align: center; padding: 48px 0 24px; }
.index-hero h1 { font-size: 2.5rem; }
.index-hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto; }
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin: 32px 0 64px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.post-card:hover { border-color: var(--emerald); box-shadow: 0 8px 24px rgba(5,150,105,.10); transform: translateY(-2px); text-decoration: none; }
.post-card .thumb { height: 8px; background: linear-gradient(90deg, var(--emerald), var(--teal)); }
.post-card .body { padding: 22px; }
.post-card .k { font-size: 12px; font-weight: 600; color: var(--emerald-dark); text-transform: uppercase; letter-spacing: .03em; }
.post-card h2 { font-size: 1.18rem; color: var(--ink); margin: 8px 0 10px; line-height: 1.35; }
.post-card p { font-size: 0.96rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: #111827; color: #cbd5e1; margin-top: 64px; padding: 56px 0 40px; }
.site-footer .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; text-align: center; }
.site-footer .brand { justify-content: center; }
.site-footer .name { color: #fff; -webkit-text-fill-color: #fff; }
.site-footer p { color: #94a3b8; max-width: 620px; margin: 16px auto; }
.site-footer a { color: #6ee7b7; }
.footer-links { margin: 20px 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: #cbd5e1; }
.footer-disclaimer { font-size: 13px; color: #64748b; border-top: 1px solid #1f2937; margin-top: 28px; padding-top: 24px; }
