/* ============================================================
   SharksFlow Blog — shared styles (used by the hub + every post)
   Matches the main site tokens: dark cinematic, brand #14b4ff.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #14b4ff;
  --brand-soft: #A4F4FD;
  --bg: #080808;
  --ink: #ffffff;
  --muted: rgba(255,255,255,0.62);
  --faint: rgba(255,255,255,0.42);
  --line: rgba(255,255,255,0.09);
  --card: rgba(255,255,255,0.015);
  --wrap: 1180px;
  --read: 760px;
}
html { scroll-behavior: smooth; }
html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg); color: var(--ink);
  overflow-x: clip; width: 100%; max-width: 100%;
  line-height: 1.6;
}
body {
  background:
    radial-gradient(900px circle at 50% -5%, rgba(20,180,255,0.10), transparent 55%),
    linear-gradient(180deg, #0b1a30 0%, #0a1422 22%, var(--bg) 60%);
  background-attachment: fixed;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: rgba(20,180,255,0.28); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3.5rem); }

/* ── NAV ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8,8,8,0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-logo svg { width: 30px; height: 30px; }
.nav-logo-text {
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff 40%, var(--brand) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.nav-links { display: none; gap: 1.75rem; align-items: center; }
@media(min-width:820px){ .nav-links { display: flex; } }
.nav-links a { color: var(--muted); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; color: #000; font-weight: 600; font-size: 0.82rem;
  padding: 0.6rem 1.15rem; border-radius: 100px; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: rgba(255,255,255,0.88); }
.nav-cta:active { transform: scale(0.97); }

/* ── SHARED BITS ── */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.eyebrow-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.glass { background: var(--card); backdrop-filter: blur(8px); box-shadow: inset 0 1px 1px rgba(255,255,255,0.07); border: 1px solid var(--line); }

/* ── BLOG HUB ── */
.hub-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); }
.hub-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; margin-top: 1.1rem; }
.hub-head p { margin-top: 1.1rem; color: var(--muted); max-width: 52ch; font-size: 1.02rem; }

.posts-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding-bottom: clamp(4rem, 8vw, 7rem); }
@media(min-width:640px){ .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1000px){ .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { border-radius: 1.25rem; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s cubic-bezier(.22,1,.36,1), border-color 0.3s; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(20,180,255,0.4); }
.post-card-img { display: block; width: 100%; aspect-ratio: 1200 / 630; height: auto; min-height: 0; object-fit: cover; flex: none; border-bottom: 1px solid var(--line); }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.post-card h2 { margin-top: 0.6rem; font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.post-card p { margin-top: 0.65rem; font-size: 0.88rem; color: var(--muted); line-height: 1.6; flex: 1; }
.post-card .meta { margin-top: 1.2rem; font-size: 0.74rem; color: var(--faint); display: flex; gap: 0.6rem; align-items: center; }
.post-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

/* ── ARTICLE ── */
.article-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.breadcrumb { font-size: 0.78rem; color: var(--faint); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.4rem; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; max-width: 20ch; margin-top: 1.1rem; }
.article-meta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.article-meta .author { color: #fff; font-weight: 600; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.article-hero { margin-top: 2.25rem; position: relative; width: 100%; padding-top: 52.5%; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--line); }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: var(--read); margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem); font-size: 1.06rem; color: rgba(255,255,255,0.82); }
.article-body > * + * { margin-top: 1.35rem; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-top: 2.75rem; line-height: 1.2; scroll-margin-top: 5rem; }
.article-body h3 { font-size: 1.2rem; font-weight: 600; color: #fff; margin-top: 2rem; }
.article-body p { line-height: 1.75; }
.article-body a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(164,244,253,0.4); transition: text-decoration-color 0.2s; }
.article-body a:hover { text-decoration-color: var(--brand-soft); }
.article-body strong { color: #fff; font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: 1.1rem; margin-top: 0.65rem; line-height: 1.7; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.article-body ol { list-style: decimal; }
.article-body ol li { margin-top: 0.65rem; line-height: 1.7; padding-left: 0.3rem; }
.article-body ol li::marker { color: var(--brand); font-weight: 700; }
.article-body blockquote { border-left: 3px solid var(--brand); padding: 0.4rem 0 0.4rem 1.4rem; color: #fff; font-size: 1.15rem; font-style: italic; }
.article-body figure img { border-radius: 1rem; border: 1px solid var(--line); }
.article-body figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: var(--faint); text-align: center; }

/* TOC */
.toc { border-radius: 1rem; padding: 1.4rem 1.5rem; margin-bottom: 0.5rem; }
.toc h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 0.9rem; }
.toc a { display: block; color: var(--muted); font-size: 0.92rem; padding: 0.3rem 0; transition: color 0.2s; }
.toc a:hover { color: #fff; }

/* Callout */
.callout { border-radius: 1rem; padding: 1.5rem 1.6rem; border: 1px solid rgba(20,180,255,0.25); background: rgba(20,180,255,0.05); }
.callout p { margin: 0; color: rgba(255,255,255,0.85); }

/* FAQ */
.faq { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 0; font-size: 1.02rem; font-weight: 600; color: #fff; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.3rem; color: var(--muted); line-height: 1.7; font-size: 0.96rem; }

/* CTA box */
.post-cta { max-width: var(--read); margin: 0 auto; border-radius: 1.5rem; padding: clamp(2rem, 5vw, 3rem); text-align: center; position: relative; overflow: hidden; }
.post-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px circle at 50% 0%, rgba(20,180,255,0.16), transparent 70%); pointer-events: none; }
.post-cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; position: relative; }
.post-cta p { margin-top: 1rem; color: var(--muted); max-width: 34ch; margin-inline: auto; position: relative; }
.post-cta .btns { margin-top: 1.75rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; color: #000; font-weight: 600; font-size: 0.9rem; padding: 0.85rem 1.6rem; border-radius: 100px; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: rgba(255,255,255,0.88); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; background: transparent; color: #fff; font-weight: 500; font-size: 0.9rem; padding: 0.85rem 1.6rem; border-radius: 100px; border: 1px solid rgba(255,255,255,0.2); transition: background 0.2s; }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* Keep reading */
.keep-reading { padding-block: clamp(3rem, 6vw, 5rem); }
.keep-reading h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
.kr-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media(min-width:700px){ .kr-grid { grid-template-columns: repeat(3, 1fr); } }
.kr-card { border-radius: 1rem; padding: 1.4rem 1.5rem; transition: transform 0.3s, border-color 0.3s; }
.kr-card:hover { transform: translateY(-4px); border-color: rgba(20,180,255,0.4); }
.kr-card .cat { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.kr-card h4 { margin-top: 0.5rem; font-size: 1rem; font-weight: 600; line-height: 1.35; }

/* ── FOOTER ── */
footer.site-footer { border-top: 1px solid var(--line); padding-top: 3.5rem; padding-bottom: 2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media(min-width:768px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 1.1rem; font-size: 0.85rem; line-height: 1.6; color: var(--faint); max-width: 32ch; }
.footer-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--muted); padding: 0.35rem 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.72rem; color: var(--faint); }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all 0.2s; }
.footer-socials a:hover { color: #fff; border-color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}