/* ============================================================
   REDSAN BLOG — Editorial Black / Red / White
   Fonts: Anton (display), Manrope (body), IBM Plex Mono (utility)
   ============================================================ */

:root {
  --black: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --white: #f5f5f5;
  --red: #e2231a;
  --red-dark: #a8160f;
  --gray: #8f8f8f;
  --border: #262626;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.red { color: var(--red); }

h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  letter-spacing: .3px;
  margin: 0;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a {
  text-decoration: none; color: var(--gray);
  font-size: 14px; font-weight: 600;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); border-color: var(--red); }
.nav-cta {
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 999px;
  white-space: nowrap; transition: background .15s ease;
}
.nav-cta:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 8px 24px 18px;
}
.mobile-nav a { color: var(--gray); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-nav a.active { color: var(--red); }
.mobile-nav.open { display: flex; }
.mobile-nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- MASTHEAD ---------- */
.masthead {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 900px 400px at 15% 0%, rgba(226,35,26,.14), transparent 60%);
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; color: var(--red);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px;
}
.masthead h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  color: var(--white);
}
.masthead-sub {
  color: var(--gray); font-size: 17px; line-height: 1.6;
  max-width: 560px; margin: 20px 0 32px;
}

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent; color: var(--gray);
  cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--red); color: var(--white); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- SECTION LABEL ---------- */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- CROSSHAIR / RETICLE MOTIF ---------- */
.crosshair { position: absolute; width: 22px; height: 22px; z-index: 2; }
.crosshair.tl { top: 14px; left: 14px; border-top: 2px solid rgba(255,255,255,.55); border-left: 2px solid rgba(255,255,255,.55); }
.crosshair.br { bottom: 14px; right: 14px; border-bottom: 2px solid rgba(255,255,255,.55); border-right: 2px solid rgba(255,255,255,.55); }

/* ---------- FEATURED / HERO GRID (EVERY.TO STYLE) ---------- */
.editorial-hero {
  padding: 44px 0 32px;
  border-bottom: 1px dashed var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}
.hero-col {
  display: flex;
  flex-direction: column;
}
.hero-col-left {
  gap: 18px;
  padding-right: 20px;
  border-right: 1px dashed var(--border);
}
.hero-col-center {
  padding: 0 4px;
}
.hero-col-right {
  padding-left: 20px;
  border-left: 1px dashed var(--border);
}

.trending-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
  flex: 1;
}
.trending-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
}
.trending-cover {
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .2s ease, border-color .2s ease;
}
.hero-main-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}
.hero-main-cover {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-main-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hero-main-body h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 12px;
}
.hero-main-body p {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.recent-list-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.recent-list-title span {
  color: var(--red);
}

.recent-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity .15s ease, transform .15s ease;
}
.recent-item:last-child {
  border-bottom: none;
}
.recent-item:hover {
  transform: translateX(4px);
}
.recent-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border);
}
.recent-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recent-details h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--white);
  margin: 0 0 4px;
}
.recent-details .tag {
  font-size: 10px;
  margin-bottom: 2px;
}

/* Original Featured Fallback */
.featured-wrap { padding: 40px 0 20px; }
.featured {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 0; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  transition: border-color .2s ease;
}
.featured:hover { border-color: var(--red); }
.featured-cover {
  position: relative; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.featured-cover .cover-icon { font-size: 64px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.cover-sales { background: linear-gradient(135deg, var(--red) 0%, #6e0e08 100%); }
.cover-ai { background: linear-gradient(135deg, #1a1a1a 0%, var(--red) 130%); }
.cover-biz { background: linear-gradient(135deg, #1e1e1e 0%, #3a3a3a 100%); }

.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--red); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 14px;
}
.featured-body h2 {
  font-size: clamp(24px, 3vw, 34px); line-height: 1.15; color: var(--white); margin-bottom: 16px;
}
.featured-body p { color: var(--gray); font-size: 16px; line-height: 1.65; margin: 0 0 24px; max-width: 520px; }

.byline { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 13px;
  color: #fff; flex-shrink: 0;
}
.byline-name { font-size: 14px; font-weight: 700; color: var(--white); }
.byline-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gray); }

/* ---------- ARCHIVE GRID ---------- */
.archive { padding: 60px 0 20px; }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mag-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.mag-card:hover { transform: translateY(-4px); border-color: var(--red); }
.mag-cover { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; }
.mag-cover .cover-icon { font-size: 38px; }
.flair {
  position: absolute; top: 14px; left: 14px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  background: rgba(0,0,0,.55); color: #fff;
  padding: 5px 10px; border-radius: 6px; z-index: 3;
}
.flair.featured-flair { background: var(--red); }
.mag-body { padding: 22px; }
.mag-body .tag { font-size: 11px; }
.mag-body h3 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.35; color: var(--white); margin: 0 0 10px; }
.mag-body p { font-size: 13.5px; line-height: 1.55; color: var(--gray); margin: 0 0 18px; }
.mag-body .avatar { width: 30px; height: 30px; font-size: 11px; }
.mag-body .byline-name { font-size: 13px; }
.mag-body .byline-meta { font-size: 11px; }

.empty-state { display: none; text-align: center; padding: 60px 0; color: var(--gray); font-family: 'IBM Plex Mono', monospace; }
.loadmore-wrap { display: flex; justify-content: center; margin-top: 40px; }
.btn-outline {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600;
  background: transparent; border: 1px solid var(--border); color: var(--white);
  padding: 13px 30px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ---------- QUOTE STRIP ---------- */
.quote-strip { padding: 70px 0; border-top: 1px solid var(--border); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
  background: var(--surface); border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 24px;
}
.quote-card p {
  font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: 18px; line-height: 1.35; color: var(--white);
  margin: 0 0 18px;
}
.quote-source {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--red); text-decoration: none; letter-spacing: .02em;
}
.quote-source:hover { text-decoration: underline; }

/* ---------- NEWSLETTER BAND ---------- */
.newsletter-band { background: var(--surface-2); border-top: 1px solid var(--border); padding: 60px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter-band h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; color: var(--white); margin-top: 8px; }
.newsletter-form { display: flex; gap: 0; border-bottom: 2px solid var(--border); min-width: 320px; flex: 0 0 auto; }
.newsletter-form input {
  background: transparent; border: none; color: var(--white);
  font-family: 'Manrope', sans-serif; font-size: 16px; padding: 12px 4px; flex: 1; min-width: 200px;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form input::placeholder { color: var(--gray); }
.newsletter-form button {
  background: none; border: none; color: var(--red);
  font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 14px;
  cursor: pointer; padding: 12px 4px; white-space: nowrap;
}
.newsletter-form:focus-within { border-color: var(--red); }

/* ---------- FOOTER ---------- */
footer { padding: 56px 0 0; border-top: 1px solid var(--border); }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 36px; }
.foot-logo { height: 30px; width: auto; margin-bottom: 14px; }
.foot-left p { color: var(--gray); font-size: 14px; margin: 0 0 16px; }
.foot-social { display: flex; gap: 12px; }
.foot-social a {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--gray); font-size: 11px; font-weight: 700;
  transition: all .15s ease;
}
.foot-social a:hover { border-color: var(--red); color: var(--red); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px 28px; align-content: flex-start; }
.foot-nav a { text-decoration: none; color: var(--gray); font-size: 14px; }
.foot-nav a:hover { color: var(--white); }
.foot-bottom { padding: 20px 24px; border-top: 1px solid var(--border); color: var(--gray); font-size: 13px; }

/* ---------- STICKY BAR / WHATSAPP ---------- */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 12px 20px; align-items: center; justify-content: space-between;
}
.sticky-bar .txt { font-size: 14px; color: var(--white); }
.sticky-bar .sticky-btn { background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 999px; }
@media (max-width: 640px) { .sticky-bar.show { display: flex; } }

.wa-float {
  position: fixed; bottom: 84px; right: 20px; z-index: 95;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 24px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.4);
}

/* ---------- SINGLE POST ---------- */
.post-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--border); }
.post-hero .back { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--gray); text-decoration: none; display: inline-block; margin-bottom: 24px; }
.post-hero .back:hover { color: var(--red); }
.post-hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.1; color: var(--white); margin: 16px 0 24px; max-width: 820px; }
.post-body {
  max-width: 720px; margin: 0 auto; padding: 50px 24px 0;
  font-size: 17px; line-height: 1.8; color: var(--white);
}
.post-body h2 { font-size: clamp(22px, 3vw, 28px); margin: 44px 0 16px; color: var(--white); }
.post-body h3 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; margin: 32px 0 12px; }
.post-body p { margin: 0 0 22px; color: #cfcfcf; }
.post-body strong { color: var(--white); }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 22px; color: #cfcfcf; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid var(--red); margin: 32px 0; padding: 6px 0 6px 22px;
  font-family: 'Anton', sans-serif; font-weight: 400; font-size: 20px; color: var(--white);
}
.post-body .callout {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin: 30px 0; font-size: 15px; color: var(--white);
}
.post-share {
  max-width: 720px; margin: 44px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--gray);
}
.post-share a { text-decoration: none; color: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }
.post-share a:hover { border-color: var(--red); color: var(--red); }
.related { max-width: 900px; margin: 60px auto 0; padding: 0 24px; }

.final-cta { padding: 80px 0; text-align: center; border-top: 1px solid var(--border); }
.final-cta h2 { font-size: clamp(26px, 4vw, 40px); color: var(--white); max-width: 700px; margin: 0 auto 16px; }
.final-cta p { color: var(--gray); margin: 0 0 30px; }
.final-cta .btn-primary {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; padding: 16px 34px; border-radius: 999px; font-size: 15px;
}
.final-cta .btn-primary:hover { background: var(--red-dark); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-col-right { grid-column: span 2; border-left: none; border-top: 1px dashed var(--border); padding-left: 0; padding-top: 20px; }
  .hero-col-left { border-right: none; padding-right: 0; }
  .recent-list-title { margin-top: 10px; }
}
@media (max-width: 980px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-cover { min-height: 200px; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-col-left, .hero-col-center, .hero-col-right { padding: 0; border: none; }
  .hero-col-right { border-top: 1px dashed var(--border); padding-top: 20px; }
  .trending-card { margin-bottom: 12px; }
}
@media (max-width: 640px) {
  .mag-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { min-width: 0; }
  .foot-inner { flex-direction: column; }
}
