/* ============================================================
   Detail Tech — Blog styles (matches homepage system)
   ============================================================ */

/* ---------- Post cards (homepage section + index grid) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.bpost {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bpost:hover { border-color: rgba(0,171,223,0.45); transform: translateY(-4px); }
.bpost__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.bpost__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.bpost:hover .bpost__media img { transform: scale(1.05); }
.bpost__cat {
  display: none;
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--ff-mono); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(8,9,10,0.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(0,171,223,0.4); padding: 6px 11px; border-radius: 100px;
}
.bpost__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.bpost__meta { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 9px; }
.bpost__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); display: inline-block; }
.bpost__title { font-family: var(--ff-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.28rem; line-height: 1.08; letter-spacing: -0.02em; color: var(--white); margin-top: 14px; }
.bpost:hover .bpost__title { color: var(--blue); }
.bpost__excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-top: 13px; }
.bpost__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px;
  font-family: var(--ff-body); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--blue);
}
.bpost__more svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.bpost:hover .bpost__more svg { transform: translateX(5px); }
.bpost__link { position: absolute; inset: 0; z-index: 3; }
.bpost { position: relative; }

.blog-cta { display: flex; justify-content: center; margin-top: 44px; }

@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- Blog index page ---------- */
.blog-page { padding-top: calc(var(--header-h) + 30px); }
.blog-head { max-width: 760px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.blog-filter {
  font-family: var(--ff-mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: var(--bg); cursor: pointer; transition: all 0.2s var(--ease);
}
.blog-filter:hover { border-color: var(--blue); color: var(--text); }
.blog-filter.is-active { background: var(--blue); border-color: var(--blue); color: #03171d; }
.bpost.is-hidden { display: none; }

/* ---------- Article (single post) ---------- */
.article { padding-top: calc(var(--header-h) + 30px); }
.article__head { max-width: 820px; margin-inline: auto; text-align: center; }
.article__crumbs { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.article__crumbs a { color: var(--blue); }
.article__crumbs svg { width: 13px; height: 13px; }
.article__cat {
  display: inline-block; font-family: var(--ff-mono); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  background: rgba(0,171,223,0.12); border: 1px solid rgba(0,171,223,0.35);
  padding: 6px 13px; border-radius: 100px;
}
.article__title { font-family: var(--ff-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--white); margin-top: 22px; text-wrap: balance; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 24px; font-family: var(--ff-mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.article__meta span { display: inline-flex; align-items: center; gap: 8px; }
.article__meta svg { width: 15px; height: 15px; color: var(--blue); }
.article__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.article__feat { max-width: 1040px; margin: clamp(34px, 5vw, 56px) auto 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); background: #000; }
.article__feat img { width: 100%; height: 450px; object-fit: cover; display: block; }
.article__feat video { width: 100%; height: 450px; object-fit: cover; display: block; }
.article__body figure img { width: 100%; height: 450px; object-fit: cover; display: block; }

.article__body { max-width: 760px; margin: clamp(40px, 5vw, 60px) auto 0; }
.article__body p { font-size: 1.075rem; line-height: 1.85; color: #c9ced3; margin-top: 1.35em; }
.article__body p:first-child { margin-top: 0; }
.article__body p:first-child { font-size: 1.18rem; line-height: 1.7; color: var(--text); }
.article__body h2 { font-family: var(--ff-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--white); margin-top: calc(1.9em - 20px); }
.article__body h2 + p { margin-top: 0.9em; }
.article__body h3 { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; color: var(--white); margin-top: calc(1.6em - 20px); }
.article__body em { display: block; font-family: var(--ff-mono); font-style: normal; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); margin-top: 1.4em; }
.article__body ul, .article__body ol { margin-top: 1.3em; padding-left: 0; display: flex; flex-direction: column; gap: 13px; }
.article__body ul li { position: relative; padding-left: 26px; font-size: 1.05rem; line-height: 1.65; color: #c9ced3; list-style: none; }
.article__body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.article__body ol { counter-reset: step; }
.article__body ol li { position: relative; padding-left: 44px; font-size: 1.05rem; line-height: 1.65; color: #c9ced3; list-style: none; counter-increment: step; min-height: 30px; display: flex; align-items: center; }
.article__body ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 800; font-style: italic; font-size: 0.92rem; color: var(--blue); background: rgba(0,171,223,0.1); border: 1px solid rgba(0,171,223,0.35); border-radius: 8px; }
.article__body strong { color: var(--white); font-weight: 700; }
.article__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,171,223,0.4); }
.article__body a:hover { text-decoration-color: var(--blue); }

/* post tags */
.article__tags { max-width: 760px; margin: clamp(30px, 4vw, 44px) auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article__tags-label { font-family: var(--ff-mono); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-right: 4px; }
.article__tag { font-family: var(--ff-mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 100px; transition: all 0.2s var(--ease); }
.article__tag:hover { border-color: var(--blue); color: var(--blue); }

/* end-of-post CTA */
.article__cta { max-width: 820px; margin: clamp(48px, 6vw, 72px) auto 0; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(34px, 5vw, 56px); position: relative; overflow: hidden; }
.article__cta::before { content: ""; position: absolute; right: -10%; top: -40%; width: 380px; height: 380px; background: radial-gradient(circle, var(--blue-glow), transparent 65%); opacity: 0.3; pointer-events: none; }
.article__cta h2 { position: relative; font-family: var(--ff-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--white); }
.article__cta p { position: relative; color: var(--muted); margin-top: 16px; max-width: 46ch; margin-inline: auto; }
.article__cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.article__back { display: flex; justify-content: center; margin-top: 40px; }
.article__back a { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); transition: color 0.2s var(--ease); }
.article__back a:hover { color: var(--blue); }
.article__back svg { width: 16px; height: 16px; }

/* related */
.related { border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 88px); }
