/* MeetingVault Blog — style.css */

:root {
  --navy: #0F1B2D;
  --navy-light: #142236;
  --vault-blue: #1A3A5C;
  --teal: #2D8B7A;
  --teal-dark: #246E63;
  --slate: #94A3B8;
  --silver-mist: #E2E8F0;
  --cloud-white: #F8FAFC;
  --signal-green: #34D399;
  --amber: #F59E0B;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--navy);
  color: var(--silver-mist);
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--teal);
  color: var(--cloud-white);
}

/* ——————————————————————————————
   Navigation
—————————————————————————————— */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(15, 27, 45, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 139, 122, 0.1);
  transition: background 0.3s ease;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cloud-white);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.nav-logo::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cloud-white);
}

.nav-cta {
  background: var(--teal);
  color: var(--cloud-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* ——————————————————————————————
   Blog Post Article
—————————————————————————————— */

.blog-post {
  flex: 1;
  margin-top: 64px;
}

/* ——————————————————————————————
   Post Header / Hero
—————————————————————————————— */

.post-header {
  width: 100%;
  padding: 5rem 2rem 4rem;
  background: linear-gradient(
    180deg,
    var(--navy) 0%,
    var(--navy-light) 50%,
    var(--navy) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(45, 139, 122, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-category {
  display: inline-block;
  background: rgba(45, 139, 122, 0.15);
  color: var(--teal);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-date,
.post-read-time {
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 400;
}

.post-date::before,
.post-read-time::before {
  content: '\00b7';
  margin-right: 0.75rem;
  color: var(--slate);
}

.post-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--cloud-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.post-subtitle {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ——————————————————————————————
   Post Body
—————————————————————————————— */

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.post-body p {
  margin-bottom: 1.5rem;
  color: var(--silver-mist);
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-body strong {
  color: var(--cloud-white);
  font-weight: 600;
}

.post-body a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: var(--signal-green);
  text-decoration-color: var(--signal-green);
}

/* Headings */

.post-body h2 {
  color: var(--teal);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
  line-height: 1.3;
}

.post-body h3 {
  color: var(--silver-mist);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Lists */

.post-body ul,
.post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-body ul {
  list-style: none;
}

.post-body ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--silver-mist);
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.post-body ol {
  counter-reset: ol-counter;
  list-style: none;
}

.post-body ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.6rem;
  color: var(--silver-mist);
  font-size: 1.05rem;
  line-height: 1.7;
  counter-increment: ol-counter;
}

.post-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 1.25rem;
}

/* Blockquote */

.post-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--navy-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-body blockquote p {
  margin-bottom: 0;
  color: var(--slate);
}

/* Code */

.post-body code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  background: var(--navy-light);
  color: var(--teal);
  padding: 0.2em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
  font-weight: 400;
}

.post-body pre {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--navy-light);
  border-radius: 8px;
  border: 1px solid rgba(45, 139, 122, 0.1);
  overflow-x: auto;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--silver-mist);
}

/* Table of Contents */

nav.toc {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--navy-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
}

nav.toc strong {
  display: block;
  color: var(--cloud-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

nav.toc ol {
  counter-reset: toc-counter;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

nav.toc ol li {
  padding-left: 1.75rem;
  margin-bottom: 0.4rem;
  counter-increment: toc-counter;
  font-size: 0.95rem;
}

nav.toc ol li::before {
  content: counter(toc-counter);
  min-width: 1.25rem;
  font-size: 0.85rem;
}

nav.toc a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
}

nav.toc a:hover {
  color: var(--teal);
}

/* Table */

.post-body table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

.post-body thead th {
  background: var(--teal-dark);
  color: var(--cloud-white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-body tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--silver-mist);
}

.post-body tbody tr {
  background: var(--navy-light);
  transition: background 0.15s ease;
}

.post-body tbody tr:nth-child(even) {
  background: rgba(20, 34, 54, 0.6);
}

.post-body tbody tr:hover {
  background: rgba(45, 139, 122, 0.07);
}

/* Horizontal Rule */

.post-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--vault-blue),
    transparent
  );
  margin: 3rem 0;
}

/* Images */

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* ——————————————————————————————
   Footer
—————————————————————————————— */

.site-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: var(--navy);
}

.site-footer p {
  color: var(--slate);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--signal-green);
}

/* ——————————————————————————————
   Responsive — Tablet
—————————————————————————————— */

@media (max-width: 768px) {
  .nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .post-header {
    padding: 4rem 1.5rem 3rem;
  }

  .post-header h1 {
    font-size: 2.2rem;
  }

  .post-subtitle {
    font-size: 1.05rem;
  }

  .post-body {
    padding: 2.5rem 1.5rem 4rem;
  }

  .post-body h2 {
    font-size: 1.4rem;
    margin-top: 2.75rem;
  }

  .post-body h3 {
    font-size: 1.15rem;
    margin-top: 2rem;
  }

  .post-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ——————————————————————————————
   Responsive — Mobile
—————————————————————————————— */

@media (max-width: 480px) {
  .nav {
    padding: 0 1rem;
    height: 56px;
  }

  .nav-logo {
    font-size: 1.05rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .nav-cta {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .blog-post {
    margin-top: 56px;
  }

  .post-header {
    padding: 3rem 1rem 2.5rem;
  }

  .post-meta {
    gap: 0.5rem;
  }

  .post-category {
    font-size: 0.72rem;
  }

  .post-date,
  .post-read-time {
    font-size: 0.78rem;
  }

  .post-header h1 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
  }

  .post-subtitle {
    font-size: 0.95rem;
  }

  .post-body {
    padding: 2rem 1rem 3rem;
  }

  .post-body p,
  .post-body ul li,
  .post-body ol li {
    font-size: 1rem;
  }

  .post-body h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
  }

  .post-body h3 {
    font-size: 1.1rem;
  }

  .post-body blockquote {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
  }

  nav.toc {
    padding: 1.25rem 1.25rem;
  }

  .site-footer {
    padding: 2rem 1rem;
  }
}
