/* ============================================================
   THE O2C EDGE — Global Stylesheet
   Brand System v1.0
   www.theo2cedge.com
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;900&family=Outfit:wght@300;400;500;600&family=Space+Mono&family=Tektur:wght@500;600&display=swap');

/* === BRAND VARIABLES === */
:root {
  --deep-navy:     #080F26;
  --electric-blue: #0078FF;
  --bright-blue:   #1EA0FF;
  --accent-cyan:   #00B4FF;
  --off-white:     #F0F5FF;
  --white:         #FFFFFF;
  --navy-mid:      #0D1A3A;
  --navy-card:     #0A1630;
  --navy-dark:     #040A1A;

  --font-headline: 'Big Shoulders Display', sans-serif;
  --font-body:     'Outfit', sans-serif;
  --font-mono:     'Space Mono', monospace;
  --font-label:    'Tektur', sans-serif;

  --nav-height: 70px;
  --max-width:  1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--deep-navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--bright-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-cyan); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
}
p { font-family: var(--font-body); }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.pt-nav { padding-top: var(--nav-height); }
.section      { padding: 6rem 0; }
.section-sm   { padding: 4rem 0; }
.section-dark { background: var(--deep-navy); }
.section-mid  { background: var(--navy-mid); }
.section-light {
  background: var(--off-white);
  color: var(--deep-navy);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-height);
  background: var(--deep-navy);
  border-top: 3px solid var(--electric-blue);
  border-bottom: 1px solid rgba(0,120,255,.12);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-logo .dia { color: var(--electric-blue); font-size: .75rem; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240,245,255,.65);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links .nav-cta {
  color: var(--electric-blue) !important;
  border: 1px solid var(--electric-blue);
  padding: .35rem 1rem;
  transition: all .2s !important;
}
.nav-links .nav-cta:hover {
  background: var(--electric-blue);
  color: var(--white) !important;
}
/* Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all .3s;
}

/* === SECTION LABEL === */
.sec-label {
  font-family: var(--font-label);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--electric-blue);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.sec-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--electric-blue);
  flex-shrink: 0;
}
.section-light .sec-label { color: var(--electric-blue); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .85rem 1.75rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--electric-blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--bright-blue);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-blue {
  background: transparent;
  color: var(--electric-blue);
  border: 1px solid var(--electric-blue);
}
.btn-outline-blue:hover {
  background: var(--electric-blue);
  color: var(--white);
}
.btn-dark {
  background: var(--deep-navy);
  color: var(--white);
  border: 1px solid rgba(0,120,255,.3);
}
.btn-dark:hover {
  border-color: var(--electric-blue);
  color: var(--white);
}

/* === POST CARDS === */
.post-card {
  background: var(--off-white);
  color: var(--deep-navy);
  padding: 2rem;
  border-left: 5px solid var(--electric-blue);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,120,255,.18);
}
.post-card .post-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--electric-blue);
  margin-bottom: .6rem;
}
.post-card h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--deep-navy);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.post-card p {
  font-size: .97rem;
  color: rgba(8,15,38,.75);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.post-card .post-meta {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: rgba(8,15,38,.4);
  padding-top: 1rem;
  border-top: 1px solid rgba(8,15,38,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.post-card .read-link {
  font-family: var(--font-label);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--electric-blue);
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: gap .2s;
}
.post-card .read-link:hover { gap: .55rem; color: var(--deep-navy); }

/* === STAT CARDS === */
.stat-card {
  padding: 1.75rem;
  border-left: 3px solid var(--electric-blue);
  background: rgba(0,120,255,.06);
}
.stat-card .stat-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: .4rem;
  display: block;
}
.stat-card .stat-label {
  font-size: .92rem;
  color: rgba(240,245,255,.65);
  line-height: 1.5;
}

/* === TOOL CARDS === */
.tool-card {
  background: var(--navy-card);
  border: 1px solid rgba(0,120,255,.15);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.tool-card:hover {
  border-color: var(--electric-blue);
  transform: translateY(-2px);
}
.tool-card .tool-name {
  font-family: var(--font-headline);
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .5rem;
  letter-spacing: .04em;
}
.tool-card p {
  font-size: .92rem;
  color: rgba(240,245,255,.6);
  line-height: 1.6;
  margin-bottom: .9rem;
}
.tool-card .tool-tag {
  font-family: var(--font-label);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

/* === DIVIDER DIAMOND === */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,120,255,.18);
}
.divider .dia { color: var(--electric-blue); font-size: 1rem; }

/* === FOOTER === */
.footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--electric-blue);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .f-logo {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .75rem;
}
.footer-brand p {
  font-size: .88rem;
  color: rgba(240,245,255,.4);
  font-style: italic;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-label);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--electric-blue);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(240,245,255,.45);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(0,120,255,.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: rgba(240,245,255,.22);
}
.footer-bottom .dia { color: var(--electric-blue); margin: 0 .5rem; }

/* === GRIDS === */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }

/* === UTILITIES === */
.text-center  { text-align: center; }
.text-blue    { color: var(--electric-blue); }
.text-cyan    { color: var(--accent-cyan); }
.text-bright  { color: var(--bright-blue); }
.text-muted   { color: rgba(240,245,255,.5); }
.text-navy-muted { color: rgba(8,15,38,.5); }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.inline-flex { display: inline-flex; align-items: center; gap: .5rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--deep-navy);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid rgba(0,120,255,.12);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1.hero-title { font-size: clamp(2.5rem,10vw,4rem); }
}

/* ============================================================
   POST ARTICLE STYLES
   ============================================================ */

/* Post Hero */
.post-hero {
  background: var(--deep-navy);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(0,120,255,.12);
}
.post-hero-eyebrow {
  font-family: var(--font-label);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.post-hero-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-cyan);
  flex-shrink: 0;
}
.post-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.07;
  max-width: 860px;
  margin-bottom: 2rem;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.post-hero-meta span {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: rgba(240,245,255,.35);
}
.post-hero-meta .post-num-badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--electric-blue);
  border: 1px solid rgba(0,120,255,.3);
  padding: .2rem .7rem;
}

/* Article Container */
.post-container { max-width: 800px; }

/* Post Body Prose */
.post-body { font-size: 1.02rem; }
.post-body p {
  color: rgba(240,245,255,.82);
  line-height: 1.9;
  margin-bottom: 2rem;
}
.post-body p + p {
  margin-top: .25rem;
}
.post-body h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
  color: var(--white);
  margin: 3.5rem 0 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--electric-blue);
  line-height: 1.2;
}
.post-body h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 2.25rem 0 .85rem;
  letter-spacing: .04em;
}
.post-body strong { color: var(--white); font-weight: 600; }
.post-body em { color: rgba(240,245,255,.7); font-style: italic; }
.post-body a { color: var(--bright-blue); }
.post-body a:hover { color: var(--accent-cyan); }

/* Blockquote */
.post-body blockquote {
  border-left: 3px solid var(--electric-blue);
  padding: 1.1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(0,120,255,.06);
  font-style: italic;
  color: rgba(240,245,255,.8);
  font-size: 1rem;
  line-height: 1.75;
}

/* Tables */
.post-body .post-table-wrap { overflow-x: auto; margin: 2rem 0; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.post-body table th {
  background: rgba(0,120,255,.14);
  color: var(--white);
  font-family: var(--font-label);
  font-size: .6rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--electric-blue);
  white-space: nowrap;
}
.post-body table td {
  padding: .75rem 1rem;
  color: rgba(240,245,255,.78);
  border-bottom: 1px solid rgba(0,120,255,.1);
  vertical-align: top;
  line-height: 1.55;
}
.post-body table tr:last-child td { border-bottom: none; }
.post-body table tr:hover td { background: rgba(0,120,255,.04); }

/* Stat callout in prose */
.post-stat {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* Section number badge */
.post-section-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--electric-blue);
  margin-bottom: .25rem;
  display: block;
}

/* Post Footer */
.post-footer-cta {
  margin: 3.5rem 0 0;
  padding: 2rem;
  background: rgba(0,120,255,.07);
  border-left: 3px solid var(--electric-blue);
}
.post-footer-cta p {
  color: rgba(240,245,255,.82);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0;
  font-style: italic;
}
.post-footer-cta strong { color: var(--white); }
.post-series-line {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,120,255,.12);
  font-style: italic;
  color: rgba(240,245,255,.35);
  font-size: .88rem;
}
.post-hashtags {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--electric-blue);
  margin-top: .65rem;
  line-height: 1.8;
}

/* References */
.post-references {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,120,255,.1);
}
.post-references h4 {
  font-family: var(--font-label);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--electric-blue);
  margin-bottom: 1rem;
}
.post-references ol { padding-left: 1.5rem; }
.post-references li {
  font-size: .77rem;
  color: rgba(240,245,255,.3);
  margin-bottom: .4rem;
  line-height: 1.5;
}
.post-references a {
  color: rgba(240,245,255,.3);
  font-size: .77rem;
  word-break: break-all;
}
.post-references a:hover { color: var(--electric-blue); }

/* Post Navigation */
.post-nav-bar {
  background: var(--navy-mid);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,120,255,.12);
}
.post-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  max-width: 42%;
}
.post-nav-item.next { text-align: right; }
.post-nav-dir {
  font-family: var(--font-label);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,245,255,.35);
}
.post-nav-title {
  font-family: var(--font-headline);
  font-size: .92rem;
  text-transform: uppercase;
  color: var(--white);
  transition: color .2s;
  line-height: 1.2;
}
.post-nav-item a:hover .post-nav-title { color: var(--accent-cyan); }
.post-nav-center { text-align: center; }

@media (max-width: 640px) {
  .post-hero { padding: 3.5rem 0 3rem; }
  .post-nav-inner { flex-direction: column; align-items: flex-start; }
  .post-nav-item.next { text-align: left; }
  .post-body h2 { margin-top: 2.5rem; }
}

/* ============================================================
   GOOGLE ADSENSE — Ad unit styles
   Placement rules: side (fixed) and below content only.
   NEVER inside post body text.
   ============================================================ */

/* ── Leaderboard / Banner ad (below content, above post nav) ── */
.ad-unit-below-post {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  background: var(--off-white);
  border-top: 1px solid rgba(8,15,38,.07);
  border-bottom: 1px solid rgba(8,15,38,.07);
  overflow: hidden;
}
.ad-unit-below-post ins {
  display: block;
  margin: 0 auto;
}

/* ── In-page section ad (between page sections on home/blog) ── */
.ad-unit-section {
  width: 100%;
  text-align: center;
  padding: 1.5rem 0;
  background: var(--deep-navy);
  border-top: 1px solid rgba(0,120,255,.07);
  border-bottom: 1px solid rgba(0,120,255,.07);
  overflow: hidden;
}
.ad-unit-section ins {
  display: block;
  margin: 0 auto;
}

/* ── Sticky sidebar ad (right side, wide screens only) ── */
.ad-sidebar-sticky {
  display: none;  /* hidden by default / on small screens */
}
@media (min-width: 1360px) {
  .ad-sidebar-sticky {
    display: block;
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 40;
    pointer-events: auto;
  }
}
