/* burnclouds theme — dark / gritty / retro-futuristic cyberdeck
   Path: site_src/sites/burnclouds/assets/css/site.css

   Inspiration keywords:
   - dark, gritty, retro futuristic, cyberdeck, LCARS (subtle), vector network, oscilloscope
*/

:root{
  --bg:#05070c;
  --bg2:#070b12;
  --panel:#0b1220;
  --panel2:#0f172a;
  --ink:#e6edf3;
  --muted:#9aa7b6;
  --line:#1d2a3b;

  --cyan:#22d3ee;     /* oscilloscope cyan */
  --green:#22c55e;    /* status green */
  --amber:#fbbf24;    /* warning amber */
  --magenta:#fb7185;  /* accent */
  --blue:#60a5fa;     /* cool blue */

  --shadow: 0 18px 52px rgba(0,0,0,0.55);
  --radius: 16px;

  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html,body{
  margin:0; padding:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

/* Vector grid + faint “network” glow */
body{
  background:
    radial-gradient(circle at 18% 20%, rgba(34,211,238,0.14), transparent 40%),
    radial-gradient(circle at 78% 34%, rgba(34,197,94,0.10), transparent 42%),
    radial-gradient(circle at 60% 82%, rgba(251,113,133,0.10), transparent 40%),
    linear-gradient(0deg, rgba(96,165,250,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.05) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg), var(--bg2) 55%, #05070c);
  background-size: auto, auto, auto, 54px 54px, 54px 54px, auto;
}

/* Subtle scanlines */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.18;
  mix-blend-mode: overlay;
}

a{
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,211,238,0.22);
}
a:hover{
  border-bottom-color: rgba(34,211,238,0.65);
}

.wrap{
  max-width: 1020px;
  margin: 0 auto;
  padding: 22px 18px;
}

.muted{ color: var(--muted); }

/* Header (cyberdeck top bar) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(5,7,12,0.72);
  border-bottom: 1px solid rgba(34,211,238,0.18);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1.05rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.22);
  background:
    linear-gradient(180deg, rgba(15,23,42,0.78), rgba(11,18,32,0.55));
  box-shadow: 0 0 0 1px rgba(34,211,238,0.05), 0 10px 26px rgba(0,0,0,0.35);
}
.brand:hover{ border-color: rgba(34,211,238,0.45); }

.nav a{
  margin-left: 14px;
  color: rgba(230,237,243,0.92);
  border-bottom: none;
  font-weight: 650;
  opacity: 0.92;
}
.nav a:hover{ opacity: 1; }

/* Burnclouds masthead banner (site override template uses these) */
.bc-banner{ margin: 14px 0 6px; }
.bc-banner-card{
  border: 1px solid rgba(96,165,250,0.16);
  border-radius: var(--radius);
  background: rgba(11,18,32,0.78);
  box-shadow: var(--shadow);
  padding: 14px 14px;
  position: relative;
  overflow: hidden;
}
.bc-banner-card::before{
  content:"";
  position:absolute;
  inset:-2px -2px auto -2px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.85), rgba(34,197,94,0.65), rgba(251,191,36,0.55), transparent);
  opacity: 0.75;
}
.bc-banner-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.bc-logo{
  width: 380px;
  max-width: 52vw;
  height: auto;
  opacity: 0.95;
}
.bc-subline{
  font-family: var(--mono);
  font-size: 0.92rem;
  color: rgba(154,167,182,0.92);
  margin: 0;
  text-align: right;
}
@media (max-width: 720px){
  .bc-banner-row{ flex-direction: column; align-items: flex-start; }
  .bc-subline{ text-align: left; }
  .bc-logo{ width: 100%; max-width: 100%; }
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(34,211,238,0.14);
  margin-top: 46px;
  background: rgba(5,7,12,0.60);
}

/* Cards */
.post,
.post-list-item{
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: var(--radius);
  background: rgba(11,18,32,0.78);
  box-shadow: var(--shadow);
}

/* Index cards */
.post-list{
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 900px){
  .post-list{ grid-template-columns: 1fr 1fr; }
}

.post-list-item{
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
}

.post-list-item::after{
  content:"";
  position:absolute;
  top:-1px; right:-1px;
  width: 92px; height: 10px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.65));
  border-bottom-left-radius: 12px;
  opacity: 0.65;
}

.post-list-item > a{
  font-weight: 850;
  font-size: 1.18rem;
  border-bottom: none;
  color: var(--ink);
}
.post-list-item > a:hover{ color:#fff; }

.meta{
  margin-top: 6px;
  font-size: 0.94rem;
  color: var(--muted);
}
.summary{ color: var(--muted); }

/* Tags */
.tags{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.tag{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.20);
  background: rgba(34,197,94,0.06);
  color: rgba(230,237,243,0.90);
  font-size: 0.9rem;
  border-bottom: none;
}
.tag:hover{
  border-color: rgba(34,197,94,0.40);
  background: rgba(34,197,94,0.11);
}

/* Post page */
.post{
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}
.post::before{
  content:"";
  position:absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(34,211,238,0.85),
    rgba(34,197,94,0.65),
    rgba(251,191,36,0.55),
    transparent
  );
  opacity: 0.70;
}
.post header h1{
  margin: 0 0 10px;
  font-size: 2.0rem;
  letter-spacing: -0.02em;
}
.post header .meta{ margin-top: 8px; }

.post .content{
  font-size: 1.03rem;
  line-height: 1.7;
}
.post .content h2{
  margin-top: 1.35em;
  font-size: 1.35rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(34,211,238,0.22);
}
.post .content h3{
  margin-top: 1.1em;
  font-size: 1.15rem;
  color: rgba(34,211,238,0.92);
}

.post .content blockquote{
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid rgba(251,191,36,0.85);
  background: rgba(251,191,36,0.08);
  border-radius: 12px;
}

.post .content pre{
  overflow:auto;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34,211,238,0.22);
  background: rgba(5,7,12,0.60);
  box-shadow: inset 0 0 0 1px rgba(34,211,238,0.06);
}
.post .content code{
  font-family: var(--mono);
  font-size: 0.95em;
}

.post .content :not(pre) > code{
  padding: 0.12em 0.35em;
  border-radius: 8px;
  background: rgba(96,165,250,0.10);
  border: 1px solid rgba(96,165,250,0.16);
}

.post .content table{
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: rgba(5,7,12,0.40);
  border-radius: 14px;
  overflow: hidden;
}
.post .content th, .post .content td{
  border: 1px solid rgba(96,165,250,0.15);
  padding: 10px 10px;
}
.post .content th{
  text-align:left;
  background: rgba(96,165,250,0.10);
}

.post .content img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(96,165,250,0.15);
  background: rgba(0,0,0,0.18);
}

/* Optional callouts */
.callout{
  border: 1px solid rgba(34,211,238,0.20);
  background: rgba(34,211,238,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 18px 0;
}
.callout.warn{
  border-color: rgba(251,191,36,0.28);
  background: rgba(251,191,36,0.08);
}
.callout.danger{
  border-color: rgba(239,68,68,0.28);
  background: rgba(239,68,68,0.08);
}
.callout.ok{
  border-color: rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.08);
}

@media print{
  body{ background:#fff; color:#000; }
  body::before{ display:none; }
  .site-header, .site-footer, .nav{ display:none !important; }
  a{ color:#000; border-bottom:none; text-decoration:underline; }
  .post, .post-list-item{ box-shadow:none; background:#fff; border:1px solid #ddd; }
}
