/* styles.css for oceanicdepths.metrolagu.vin — Style: BinaryHaven (slug: bh-) */
:root {
  --bh-primary: #2d6cdf;
  --bh-bg: #0e1114;
  --bh-surface: #11161b;
  --bh-ink: #eaf2ff;
  --bh-muted: #97a6bd;
  --bh-radius-s: 6px;
  --bh-radius-m: 10px;
  --bh-radius-l: 16px;
  --bh-shadow-1: 0 1px 0 rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
  --bh-shadow-2: 0 6px 18px rgba(0,0,0,0.35);
  --bh-space-1: 8px;
  --bh-space-2: 12px;
  --bh-space-3: 16px;
  --bh-space-4: 24px;
  --bh-space-5: 32px;
  --bh-space-6: 48px;
  --bh-space-7: 64px;
  --bh-maxw: 1120px; /* distinct container width */
}

html, body {
  background: var(--bh-bg);
  color: var(--bh-ink);
  margin: 0;
  padding: 0;
  font: 16px/1.65 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

/* Background treatment: faint circuit gridlines + slate wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 110% -10%, rgba(45,108,223,0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(45,108,223,0.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 32px);
  pointer-events: none;
  z-index: 0;
}

/* Shell */
.bh-shell {
  position: relative;
  z-index: 1;
}
.bh-container {
  max-width: var(--bh-maxw);
  margin: 0 auto;
  padding: 0 var(--bh-space-4);
}

/* Header */
.bh-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,22,27,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bh-brand {
  display: flex; align-items: center; gap: var(--bh-space-3);
  padding: var(--bh-space-3) 0;
}
.bh-brand img {
  height: 32px; width: auto;
}
.bh-brand .bh-title {
  font-weight: 700; letter-spacing: 0.3px;
}

/* Nav: center, pill tabs, bg-fade */
.bh-nav {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  padding-bottom: var(--bh-space-3);
}
.bh-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--bh-ink);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: var(--bh-shadow-1);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.bh-nav a:hover, .bh-nav a:focus {
  background: var(--bh-primary);
  color: #101418;
  border-color: rgba(0,0,0,0.35);
  outline: none;
  transform: translateY(-1px);
}

/* Main layout: two-column with sidebar */
.bh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--bh-space-6);
  padding: var(--bh-space-6) 0 var(--bh-space-7);
}
@media (max-width: 1024px){
  .bh-layout { grid-template-columns: 1fr; }
}

main.bh-main {
  background: var(--bh-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--bh-radius-l);
  box-shadow: var(--bh-shadow-2);
  padding: var(--bh-space-6);
}
aside.bh-side {
  position: sticky; top: 82px;
  align-self: start;
  background: rgba(17,22,27,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--bh-radius-m);
  padding: var(--bh-space-5);
  box-shadow: var(--bh-shadow-1);
}
.bh-side h3{ margin-top: 0; }

.bh-dek {
  color: var(--bh-muted);
  font-size: 1.05rem;
  margin-top: 0;
}

/* Content image treatment — thin frame + subtle glow */
.bh-figure {
  margin: var(--bh-space-5) 0 var(--bh-space-6);
  border-radius: var(--bh-radius-l);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(45,108,223,0.25), 0 1px 0 rgba(255,255,255,0.08) inset;
  overflow: hidden;
}
.bh-figure img {
  display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover;
}
.bh-figure figcaption {
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  color: var(--bh-muted);
  font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Headings and separators: hairline */
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); margin: 0 0 var(--bh-space-3); }
h2 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); margin: var(--bh-space-6) 0 var(--bh-space-3); padding-top: var(--bh-space-2); border-top: 1px solid rgba(255,255,255,0.14); }
h3 { font-size: 1.1rem; margin: var(--bh-space-4) 0 var(--bh-space-2); color: var(--bh-muted); }

article p,
section p,
main p,
p {
  text-align: justify !important;
  text-justify: inter-word !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
  hyphens: auto !important;
}

p { margin: 0 0 1rem; }

/* Buttons & links */
a { color: var(--bh-primary); }
a:hover { filter: brightness(1.1); }

/* Footer */
.bh-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--bh-space-6) 0 var(--bh-space-7);
  color: var(--bh-muted);
  text-align: center;
}


:root{
  --bh-primary: #2d6cdf;
  --bh-paper: #0e1114;
  --bh-ink: #eaf2ff;
}
.bh-to-top{
  position: fixed;
  right: 18px; bottom: 18px;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: var(--bh-primary);
  color: #111;
  font: 600 18px/42px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 60;
}
.bh-to-top:hover{ background: #fff; }
.bh-to-top.bh-show{ opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce){ .bh-to-top{ transition: none; } }

/* --- Footer Alignment & Styling Fix (BinaryHaven / OceanicDepths) --- */
.bh-footer,
.bh-footer * {
  text-align: center !important;
}

/* Center and space out the footer content */
.bh-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: var(--bh-space-6);
  padding-bottom: var(--bh-space-6);
}

/* --- Final Footer Alignment & Glow Enhancement (BinaryHaven / OceanicDepths) --- */

/* Ensure footer section and links stay centered, overriding justify rules */
.bh-footer,
.bh-footer * {
  text-align: center !important;
}

/* Metrolagu Network Section: unified luminosity + centered layout */
.metrolagu-network {
  background: none;
  color: var(--bh-ink);
  padding: var(--bh-space-5) 0;
}

.network-container {
  max-width: var(--bh-maxw);
  margin: 0 auto;
  padding: 0 var(--bh-space-4);
}

.metrolagu-network h3 {
  font-size: 1.15em;
  margin-bottom: var(--bh-space-2);
  color: #63b3ff; /* oceanic blue accent */
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 6px rgba(45,108,223,0.35);
}

.metrolagu-network p {
  color: var(--bh-muted);
  margin-bottom: var(--bh-space-2);
  line-height: 1.7;
  text-align: center;
}

/* Links within network */
.network-links {
  text-align: center;
}

.network-links a {
  color: var(--bh-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(45,108,223,0.25);
  transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
}

.network-links a:hover {
  color: #63b3ff;
  border-bottom-color: #63b3ff;
  text-shadow: 0 0 6px rgba(45,108,223,0.45);
}

/* Copyright Pill (BinaryHaven variant) */
.site-footer .copyright,
.bh-footer .copyright {
  display: inline-block;
  margin: 18px auto 6px auto;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: var(--bh-ink);
  background: rgba(45,108,223,0.08);
  padding: 8px 24px;
  border: 1.5px solid rgba(45,108,223,0.45);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(45,108,223,0.25), 0 0 8px rgba(45,108,223,0.15);
  transition: all 0.3s ease;
}

/* Hover shimmer */
.bh-footer .copyright:hover {
  background: rgba(45,108,223,0.15);
  color: #a2c8ff;
  border-color: rgba(45,108,223,0.65);
  box-shadow: 0 3px 14px rgba(45,108,223,0.35);
  transform: translateY(-1px);
}

/* Ensure link inside copyright inherits color */
.bh-footer .copyright a {
  color: inherit !important;
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}
