/* ===== SUPREME WARRIOR — BLOG STYLES ===== */

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

:root {
  --bg:        #0B0B0C;
  --bg2:       #111114;
  --bg3:       #151519;
  --card:      #17171B;
  --line:      #26262C;
  --orange:    #F26722;
  --orange2:   #FF7A33;
  --white:     #F6F6F7;
  --grey:      #B4B4BB;
  --muted:     #7A7A82;
  --text:      #E8E8EA;
  --radius:    8px;
}

body {
  font-family: 'Barlow', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── BLOG HEADER ── */
.blog-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 7, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.blog-site-header .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 20px;
}

.blog-site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.blog-site-header .brand img {
  height: 64px;
  width: auto;
  display: block;
}

.blog-site-header .brand b {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.blog-site-header .brand span {
  color: var(--orange);
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  display: block;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.blog-site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.blog-site-header nav ul li a {
  color: var(--grey);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .2s;
}

.blog-site-header nav ul li a:hover,
.blog-site-header nav ul li a.active {
  color: var(--white);
}

.blog-site-header .btn-primary {
  background: var(--orange);
  color: #0B0B0C;
  padding: 10px 22px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.blog-site-header .btn-primary:hover {
  background: var(--orange2);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .blog-site-header nav { display: none; }
  .blog-site-header .wrap { height: 76px; }
  .blog-site-header .brand img { height: 48px; }
}

/* ── BLOG LISTING ── */
.blog-listing-page {
  background: var(--bg2);
  min-height: 80vh;
}

.blog-hero {
  background: var(--bg);
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.blog-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.blog-hero p {
  color: var(--grey);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .5s ease forwards;
  position: relative;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: #3a3a42;
}

.blog-card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg) 0%, #2a1810 50%, var(--orange) 150%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.blog-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-card-meta .tag {
  background: var(--bg3);
  color: var(--grey);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--line);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.blog-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.65;
  flex: 1;
  margin: 0 0 18px;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .2s, gap .2s;
}

.blog-card:hover .blog-card-link { color: var(--orange2); gap: 10px; }

.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}

.blog-empty .empty-emoji { font-size: 3rem; margin-bottom: 16px; }
.blog-empty h2 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
  border: 1px solid var(--line);
}

.pagination a {
  background: var(--card);
  color: var(--white);
}

.pagination a:hover {
  background: var(--orange);
  color: #0B0B0C;
  border-color: var(--orange);
}

.pagination span.current {
  background: var(--orange);
  color: #0B0B0C;
  border-color: var(--orange);
}

.pagination .pag-prev,
.pagination .pag-next {
  width: auto;
  padding: 0 16px;
  font-size: 0.82rem;
}

/* ── BLOG POST PAGE ── */
.blog-post-page {
  background: var(--bg);
  min-height: 80vh;
}

.post-hero {
  background: var(--bg2);
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.post-hero-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.post-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.post-tag {
  background: rgba(242, 103, 34, .15);
  color: var(--orange2);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.post-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  max-width: 780px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.post-meta span { display: inline-flex; align-items: center; gap: 5px; }

.post-wrap--has-image {
  padding-top: 0;
}

.post-featured-figure {
  margin: -48px auto 40px;
  max-width: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: var(--bg3);
}

.post-featured-image {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .post-featured-figure {
    margin: -32px auto 28px;
    max-width: 100%;
  }

  .post-hero {
    padding-bottom: 40px;
  }
}

.post-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.blog-post-body { color: var(--grey); line-height: 1.8; font-size: 1.05rem; }
.blog-post-body .post-lede {
  font-size: 1.12rem;
  color: var(--white);
  line-height: 1.75;
  margin: 0 0 1.8em;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--orange);
}
.blog-post-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 2.2em 0 .6em;
}
.blog-post-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 1.8em 0 .5em;
}
.blog-post-body p { margin: 0 0 1.3em; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.blog-post-body li { margin-bottom: .4em; }
.blog-post-body a { color: var(--orange); text-decoration: underline; }
.blog-post-body a:hover { color: var(--orange2); }
.blog-post-body blockquote {
  border-left: 3px solid var(--orange);
  margin: 1.6em 0;
  padding: .6em 0 .6em 1.2em;
  color: var(--muted);
  font-style: italic;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-post-body img { max-width: 100%; border-radius: var(--radius); margin: 1.2em 0; display: block; }
.blog-post-body pre {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2em 1.4em;
  overflow-x: auto;
  margin: 1.4em 0;
}
.blog-post-body code { font-size: .88em; }
.blog-post-body p code, .blog-post-body li code {
  background: var(--bg3);
  color: var(--orange2);
  padding: 1px 5px;
  border-radius: 3px;
}
.blog-post-body hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .2s;
}

.post-back:hover { color: var(--orange); }

.related-posts { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-posts h3 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: border-color .2s;
  border: 1px solid var(--line);
}

.related-card:hover { border-color: var(--orange); }
.related-card-date { font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }
.related-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
}

/* ── CTA STRIP ── */
.blog-cta {
  background: linear-gradient(100deg, var(--orange), #d4520f);
  padding: 56px 24px;
  text-align: center;
}

.blog-cta h2 {
  font-family: 'Barlow Condensed', sans-serif;
  color: #140a04;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.blog-cta p {
  color: #3a2410;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta .btn-primary {
  background: #0B0B0C;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}

.blog-cta .btn-primary:hover { background: #000; transform: translateY(-2px); }

/* ── BLOG FOOTER ── */
.blog-site-footer {
  background: #08080a;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.blog-site-footer .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.blog-site-footer .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .blog-site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .blog-site-footer .foot-grid { grid-template-columns: 1fr; }
}

.blog-site-footer .foot-brand .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-site-footer .foot-brand .brand img {
  height: 56px;
  width: auto;
}

.blog-site-footer .foot-brand .brand b {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}
.blog-site-footer .foot-brand .brand span {
  color: var(--orange);
  font-size: 0.75rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-site-footer h5 {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 14px;
}

.blog-site-footer ul { list-style: none; margin: 0; padding: 0; }
.blog-site-footer ul li { margin-bottom: 8px; }
.blog-site-footer ul li a { color: var(--muted); text-decoration: none; transition: color .2s; }
.blog-site-footer ul li a:hover { color: var(--orange); }

.blog-site-footer .foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.blog-site-footer .foot-bottom a { color: inherit; text-decoration: none; }
.blog-site-footer .foot-bottom a:hover { color: var(--orange); }

.blog-site-footer .foot-credit {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 0.72rem;
}
