/* ParseBase Blog – Shared Styles (matches main site design system) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

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

body {
  font-family: "Inter", system-ui, sans-serif;
  color: hsl(222 47% 11%);
  line-height: 1.7;
  background: hsl(210 20% 99%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", "Inter", sans-serif;
}

a {
  color: hsl(221 83% 53%);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(210 20% 99% / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(214 32% 91%);
}
.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-header .logo img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  object-fit: contain;
}
.site-header .logo span {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    hsl(221 83% 53%) 0%,
    hsl(173 80% 40%) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-header nav a {
  color: hsl(215 16% 47%);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.site-header nav a:hover {
  color: hsl(222 47% 11%);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(222 47% 11%);
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-ghost:hover {
  background: hsl(210 40% 96%);
  text-decoration: none;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(210 40% 98%);
  background: hsl(221 83% 53%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: hsl(221 83% 46%);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header nav,
  .header-actions {
    display: none;
  }
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 760px;
  margin: 5.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  color: hsl(215 16% 47%);
}
.breadcrumb a {
  color: hsl(215 16% 47%);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: hsl(222 47% 11%);
}

/* ── Blog Post Container ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ── Blog Post Header ── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsla(221 83% 53% / 0.1);
  color: hsl(221 83% 53%);
  font-size: 0.8rem;
  font-weight: 500;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: hsl(222 47% 11%);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(215 16% 47%);
  margin-bottom: 2.5rem;
}

/* ── Article Content ── */
article h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  color: hsl(222 47% 11%);
}
article h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
  color: hsl(222 47% 11%);
}
article p {
  margin-bottom: 1rem;
  color: hsl(215 16% 47%);
  line-height: 1.75;
}
article ul,
article ol {
  margin: 0 0 1.25rem 1.5rem;
  color: hsl(215 16% 47%);
}
article li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}
article strong {
  color: hsl(222 47% 11%);
  font-weight: 600;
}
article a {
  color: hsl(221 83% 53%);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: hsla(221 83% 53% / 0.4);
  transition: text-decoration-color 0.2s;
}
article a:hover {
  text-decoration-color: hsl(221 83% 53%);
}

/* ── Table ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid hsl(214 32% 91%);
}
th,
td {
  padding: 0.75rem;
  text-align: left;
}
th {
  background: hsl(210 40% 96% / 0.5);
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 600;
  color: hsl(222 47% 11%);
  border-bottom: 1px solid hsl(214 32% 91%);
}
td {
  color: hsl(215 16% 47%);
  border-bottom: 1px solid hsl(214 32% 91%);
}
tr:last-child td {
  border-bottom: none;
}
tr:nth-child(even) {
  background: hsl(210 40% 96% / 0.2);
}

/* ── CTA Box ── */
.cta {
  background: linear-gradient(
    135deg,
    hsl(221 83% 53%) 0%,
    hsl(173 80% 40%) 100%
  );
  color: hsl(210 40% 98%);
  text-align: center;
  padding: 2.5rem;
  border-radius: 1rem;
  margin: 3rem 0;
}
.cta h2 {
  font-family: "Sora", "Inter", sans-serif;
  color: hsl(210 40% 98%);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.cta p {
  color: hsla(210 40% 98% / 0.9);
  margin-bottom: 1.5rem;
}
.cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: hsl(0 0% 100%);
  color: hsl(222 47% 11%);
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}
.cta a:hover {
  background: hsl(0 0% 95%);
  text-decoration: none;
}

/* ── Related Articles ── */
.related {
  margin-top: 3rem;
}
.related h3 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(222 47% 11%);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
.related-card {
  display: block;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: hsl(0 0% 100%);
  border: 1px solid hsl(214 32% 91%);
  text-decoration: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.related-card:hover {
  border-color: hsla(221 83% 53% / 0.3);
  box-shadow: 0 8px 30px -8px hsla(222 47% 11% / 0.08);
  text-decoration: none;
}
.related-card .related-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.related-card .related-tag {
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: hsla(221 83% 53% / 0.1);
  color: hsl(221 83% 53%);
  font-size: 0.75rem;
  font-weight: 500;
}
.related-card h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(222 47% 11%);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.related-card:hover h4 {
  color: hsl(221 83% 53%);
}
.related-card p {
  font-size: 0.875rem;
  color: hsl(215 16% 47%);
  line-height: 1.6;
}

/* ── Footer ── */
.site-footer {
  background: hsl(222 47% 11%);
  color: hsl(210 40% 98%);
  margin-top: 3rem;
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-brand .logo img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  object-fit: contain;
}
.footer-brand .logo span {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    hsl(221 83% 53%) 0%,
    hsl(173 80% 40%) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p {
  font-size: 0.875rem;
  color: hsla(210 40% 98% / 0.7);
  line-height: 1.6;
}
.site-footer h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer ul li {
  margin-bottom: 0.5rem;
}
.site-footer ul a,
.site-footer a.footer-link {
  color: hsla(210 40% 98% / 0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer ul a:hover,
.site-footer a.footer-link:hover {
  color: hsl(210 40% 98%);
  text-decoration: none;
}
.footer-note {
  font-size: 0.75rem;
  color: hsla(210 40% 98% / 0.5);
  margin-top: 1rem;
}
.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid hsla(210 40% 98% / 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: hsla(210 40% 98% / 0.5);
}

/* ── Blog Listing (blog/index.html) ── */
.blog-header {
  text-align: center;
  max-width: 640px;
  margin: 6rem auto 2rem;
  padding: 0 1.5rem;
}
.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.blog-header p {
  font-size: 1.125rem;
  color: hsl(215 16% 47%);
  line-height: 1.6;
}
.blog-grid {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 1rem;
  background: hsl(0 0% 100%);
  border: 1px solid hsl(214 32% 91%);
  text-decoration: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.blog-card:hover {
  border-color: hsla(221 83% 53% / 0.3);
  box-shadow: 0 8px 30px -8px hsla(222 47% 11% / 0.08);
  text-decoration: none;
}
.blog-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.blog-card h2 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(222 47% 11%);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.blog-card:hover h2 {
  color: hsl(221 83% 53%);
}
.blog-card .card-excerpt {
  font-size: 0.875rem;
  color: hsl(215 16% 47%);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.blog-card .card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: hsl(215 16% 47%);
}
