/* ============================================
   KORROSIV.AI — Blog Post Styles (Terminal)
   ============================================ */

/* --- ACRONYM TOOLTIPS --- */
abbr[title] {
  text-decoration: underline dotted rgba(107, 104, 98, 0.5);
  text-underline-offset: 3px;
  cursor: help;
  position: relative;
  font-style: normal;
}

abbr[title]:hover {
  text-decoration-color: var(--acid);
}

abbr[title]::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--charred);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(107, 104, 98, 0.2);
  white-space: normal;
  width: max-content;
  max-width: 320px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 100;
}

abbr[title]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* --- ARTICLE LAYOUT --- */
.blog-post {
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 100vh;
  background: var(--void);
}

/* --- HEADER --- */
.blog-header {
  max-width: 720px;
  margin: 0 auto 64px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-terminal);
  font-size: 0.75rem;
  color: var(--slag);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.blog-meta-sep {
  color: rgba(107, 104, 98, 0.3);
}

.blog-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ash);
  margin-bottom: 20px;
}

.blog-subtitle {
  font-size: 1.125rem;
  color: var(--slag);
  line-height: 1.6;
}

/* --- BODY --- */
.blog-body {
  max-width: 720px;
  margin: 0 auto;
}

.blog-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(232, 228, 222, 0.85);
  margin-bottom: 24px;
}

.blog-body em {
  color: var(--ash);
  font-style: italic;
}

.blog-body strong {
  color: var(--ash);
  font-weight: 600;
}

.blog-body a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 74, 58, 0.3);
  transition: text-decoration-color 0.2s;
}

.blog-body a:hover {
  text-decoration-color: var(--acid);
}

/* --- HEADINGS --- */
.blog-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ash);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(107, 104, 98, 0.12);
}

.blog-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.blog-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ash);
  margin-bottom: 8px;
}

/* --- LISTS --- */
.blog-body ul,
.blog-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(232, 228, 222, 0.85);
  margin-bottom: 8px;
}

.blog-body li strong {
  color: var(--ash);
}

/* --- CODE --- */
.blog-body code {
  font-family: var(--font-terminal);
  font-size: 0.875em;
  background: rgba(10, 10, 9, 0.8);
  border: 1px solid rgba(107, 104, 98, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--acid);
}

.blog-code-block {
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(107, 104, 98, 0.15);
  background: var(--code-bg);
}

.blog-code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(10, 10, 9, 0.8);
  border-bottom: 1px solid rgba(107, 104, 98, 0.1);
}

.blog-code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.blog-code-dot:first-child { background: #ff5f57; }
.blog-code-dot:nth-child(2) { background: #ffbd2e; }
.blog-code-dot:nth-child(3) { background: #28ca42; }

.blog-code-label {
  margin-left: auto;
  font-family: var(--font-terminal);
  font-size: 0.6875rem;
  color: var(--slag);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-code-block pre {
  padding: 20px;
  overflow-x: auto;
}

.blog-code-block code {
  font-family: var(--font-terminal);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(232, 228, 222, 0.8);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

/* --- CALLOUT --- */
.blog-callout {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--code-bg);
  border-radius: 4px;
}

.blog-callout-bar {
  flex-shrink: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--acid);
}

.blog-callout-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(232, 228, 222, 0.85);
}

.blog-callout-content strong {
  color: var(--acid);
  font-weight: 600;
}

/* --- KILL CHAIN --- */
.blog-killchain {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.killchain-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--code-bg);
  border: 1px solid rgba(107, 104, 98, 0.1);
  border-radius: 4px;
  width: 100%;
  transition: border-color 0.3s;
}

.killchain-step:hover {
  border-color: rgba(107, 104, 98, 0.2);
}

.killchain-step.killchain-critical {
  border-color: rgba(212, 74, 58, 0.3);
  background: rgba(139, 26, 26, 0.08);
}

.killchain-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(107, 104, 98, 0.15);
  font-family: var(--font-terminal);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slag);
}

.killchain-critical .killchain-num {
  background: rgba(212, 74, 58, 0.2);
  color: var(--acid);
}

.killchain-content {
  flex: 1;
}

.killchain-label {
  font-family: var(--font-terminal);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slag);
  margin-bottom: 4px;
}

.killchain-critical .killchain-label {
  color: var(--acid);
}

.killchain-content p {
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
  color: rgba(232, 228, 222, 0.8) !important;
  margin-bottom: 0 !important;
}

.killchain-connector {
  width: 1px;
  height: 16px;
  margin-left: 30px;
  background: rgba(107, 104, 98, 0.2);
}

/* --- CTA --- */
.blog-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--code-bg);
  border: 1px solid rgba(212, 74, 58, 0.15);
  border-radius: 4px;
  text-align: center;
}

.blog-cta p {
  font-size: 1rem !important;
  color: var(--slag) !important;
  margin-bottom: 0 !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .blog-post {
    padding-top: 100px;
  }

  .blog-title {
    font-size: 1.75rem;
  }

  .blog-body h2 {
    font-size: 1.3rem;
  }
}
