/* ===== ShipLinker blog styles — shared by index.html and every post page ===== */

:root {
  --bg: #07091a;
  --bg-2: #0b0f29;
  --surface: #0f1538;
  --surface-2: #141b46;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecff;
  --text-dim: #a4adcf;
  --text-mute: #6b7299;
  --accent: #6ee7ff;
  --accent-2: #8b7dff;
  --accent-3: #ff7ab8;
  --grad: linear-gradient(135deg, #6ee7ff 0%, #8b7dff 50%, #ff7ab8 100%);
  --grad-soft: linear-gradient(135deg, rgba(110,231,255,0.18), rgba(139,125,255,0.18) 50%, rgba(255,122,184,0.18));
  --shadow-lg: 0 30px 80px -20px rgba(8, 12, 40, 0.6);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(110, 231, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(139, 125, 255, 0.12), transparent 55%);
  pointer-events: none; z-index: -2;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none; z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 26, 0.65);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: var(--text);
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 14px rgba(139, 125, 255, 0.35));
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; color: var(--text-dim);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #0a0e27;
  box-shadow: 0 10px 30px -10px rgba(139, 125, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(139, 125, 255, 0.7); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 80px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12.5px; color: var(--text-dim);
  margin-bottom: 22px;
}
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 18px;
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.page-hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lead {
  max-width: 580px; margin: 0 auto;
  font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--text-dim); line-height: 1.65;
}

/* ===== FILTER BAR ===== */
.filter-bar { padding: 32px 0 0; }
.filter-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.filter-pill {
  padding: 9px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-pill:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.filter-pill.active {
  background: var(--grad);
  border-color: transparent;
  color: #0a0e27;
}

/* ===== POST LIST ===== */
main { padding: 48px 0 96px; }
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .updates-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .updates-grid { grid-template-columns: 1fr; } }
.update {
  background: rgba(15, 21, 56, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.update:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.update .cover {
  height: 140px; position: relative; overflow: hidden;
  display: block;
}
.update .cover.c1 { background: linear-gradient(135deg, #6ee7ff 0%, #1f3a8a 100%); }
.update .cover.c2 { background: linear-gradient(135deg, #8b7dff 0%, #2d1b69 100%); }
.update .cover.c3 { background: linear-gradient(135deg, #ff7ab8 0%, #6b1f4f 100%); }
.update .cover::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 40%);
}
.update .cover .pill {
  position: absolute; top: 14px; left: 14px;
  background: rgba(7,9,26,0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 100px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.update .body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.update .date { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.update h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 10px; }
.update p { color: var(--text-dim); font-size: 14px; line-height: 1.55; flex: 1; }
.update .read { font-size: 13px; color: var(--accent); font-weight: 500; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ===== ARTICLE (single post) ===== */
article.post { padding: 48px 0 80px; }
article.post .post-meta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 18px;
  font-size: 13px; color: var(--text-mute);
}
article.post .post-meta .pill {
  background: var(--grad-soft);
  color: var(--accent);
  border: 1px solid rgba(110, 231, 255, 0.25);
  padding: 4px 11px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
article.post h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1;
  margin-bottom: 18px;
}
article.post .lede {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text-dim); line-height: 1.6;
  margin-bottom: 36px;
  max-width: 680px;
}
article.post .hero-img {
  margin: 0 -24px 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  background: rgba(15, 21, 56, 0.4);
}
@media (min-width: 760px) { article.post .hero-img { margin: 0 0 48px; } }
article.post .hero-img img { width: 100%; height: auto; display: block; }
article.post .hero-img-grad {
  height: 280px;
  background: var(--grad);
  position: relative; overflow: hidden;
}
article.post .hero-img-grad::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12), transparent 40%);
}

/* Prose body */
.prose { font-size: 17px; color: var(--text-dim); line-height: 1.75; }
.prose > * { margin-bottom: 22px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.015em; line-height: 1.2;
  margin: 48px 0 16px;
}
.prose h3 {
  font-size: 19px; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.3;
  margin: 32px 0 10px;
}
.prose p { color: var(--text-dim); }
.prose p strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(110, 231, 255, 0.3); transition: border-color 0.15s; }
.prose a:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol { padding-left: 24px; color: var(--text-dim); }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--accent-2); font-weight: 600; }
.prose blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--grad-soft);
  border: 1px solid rgba(139, 125, 255, 0.22);
  border-radius: 14px;
  font-size: 18px; font-weight: 500;
  color: var(--text); line-height: 1.55;
  position: relative;
}
.prose blockquote::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 100px; background: var(--grad);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite {
  display: block; margin-top: 10px;
  font-size: 13px; color: var(--text-mute);
  font-style: normal;
}
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: rgba(15, 21, 56, 0.6);
  padding: 2px 7px; border-radius: 5px;
  color: var(--accent);
  border: 1px solid var(--line);
}
.prose pre {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(7, 9, 26, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-dim);
  overflow-x: auto;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose img {
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  width: 100%; height: auto;
}
.prose figure { margin: 32px 0; }
.prose figcaption {
  margin-top: 10px; text-align: center;
  color: var(--text-mute); font-size: 13px; font-style: italic;
}
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  margin: 40px 0;
}

/* Post footer (share + back) */
.post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
}
.post-share { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-mute); }
.post-share .share-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}
.post-share .share-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.post-share .share-btn svg { width: 14px; height: 14px; }

/* More posts */
.more-posts {
  padding: 64px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.more-posts h3 {
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-mute);
  margin-bottom: 22px;
  text-align: center;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  margin: 0 auto 60px;
  padding: 48px 40px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(110,231,255,0.18), transparent 60%),
    radial-gradient(ellipse 60% 100% at 100% 100%, rgba(255,122,184,0.18), transparent 60%),
    linear-gradient(135deg, rgba(20, 27, 70, 0.7), rgba(15, 21, 56, 0.85));
  border: 1px solid var(--line-strong);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 12px;
}
.cta-banner p { color: var(--text-dim); font-size: 16px; max-width: 520px; margin: 0 auto 22px; }
.cta-banner .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
footer a { color: var(--text-dim); margin: 0 12px; transition: color 0.15s; }
footer a:hover { color: var(--text); }
