/* Shared styles for Zentile blog pages */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(6, 182, 212, 0.30), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #161232 60%, #1e1b4b 100%);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 28px 20px 80px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
  flex: 0 0 auto;
}
.mark svg { width: 20px; height: 20px; }

.brand-link {
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 12px;
}
.brand-name {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #c7d2fe);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-tag { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.top-nav { display: flex; gap: 14px; align-items: center; }
.top-nav a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.top-nav a:hover { background: rgba(255,255,255,0.10); color: #fff; }
.top-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(6,182,212,0.30));
  color: #fff;
  border-color: rgba(199, 210, 254, 0.35);
}

.eyebrow {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 60%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  color: #cbd5e1;
  font-size: clamp(15px, 2vw, 18px);
  margin: 0 0 30px;
  max-width: 65ch;
}

.meta {
  color: #94a3b8;
  font-size: 13px;
  margin: -4px 0 24px;
}

article h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 38px 0 12px;
  color: #f8fafc;
}

article h3 {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  margin: 26px 0 8px;
  color: #f8fafc;
}

article p, article li { color: #cbd5e1; }
article p { margin: 12px 0; }
article ul, article ol { padding-left: 22px; }
article li { margin: 6px 0; }
article strong { color: #f8fafc; }

article blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 3px solid rgba(124, 58, 237, 0.7);
  background: rgba(124, 58, 237, 0.08);
  border-radius: 0 12px 12px 0;
  color: #e2e8f0;
  font-style: italic;
}

.callout {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 22px 0;
}
.callout strong { color: #fff; }

.cta-card {
  margin-top: 44px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(199, 210, 254, 0.20);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-card h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.cta-card p {
  margin: 0;
  color: #e2e8f0;
}
.cta-card a {
  align-self: flex-start;
  text-decoration: none;
  background: #fff;
  color: #0b1020;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.cta-card a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

/* Blog index post grid */
.post-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 720px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid .post-card:first-child { grid-column: 1 / -1; }
}

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 22px 22px 20px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.post-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.20);
}
.post-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.post-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: #f8fafc;
}
.post-card p { margin: 0 0 14px; color: #cbd5e1; font-size: 15px; line-height: 1.55; }
.post-cta { color: #c7d2fe; font-weight: 700; font-size: 14px; }

/* Related posts on article pages */
.related {
  margin-top: 56px;
}
.related h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 14px;
}
.related-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
.related a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 160ms ease, border-color 160ms ease;
}
.related a:hover { background: rgba(255,255,255,0.10); border-color: rgba(124, 58, 237, 0.40); }
.related a strong { display: block; color: #f8fafc; margin-bottom: 4px; }
.related a span { color: #94a3b8; font-size: 13px; }

footer {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 13px; color: #94a3b8;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
footer a { color: #c7d2fe; text-decoration: none; }
footer a:hover { text-decoration: underline; }
