/* opsec.css */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

body { font-family: "Special Elite", monospace; }

:root{
  --bg: #000000;
  --panel: rgba(10, 10, 10, 0.92);
  --panel-2: rgba(14, 14, 14, 0.92);

  --text: #ff4e00;
  --muted: rgba(255, 78, 0, 0.70);

  --cyan: #00ffff;
  --cyan-dim: rgba(0, 255, 255, 0.55);

  --border: rgba(0, 255, 255, 0.28);
  --border-2: rgba(255, 78, 0, 0.28);

  --shadow: 0 0 18px rgba(0, 255, 255, 0.18);
  --shadow-strong: 0 0 28px rgba(255, 78, 0, 0.20);

  --radius: 14px;
  --radius-sm: 10px;

  --max: 1200px;

  --mono: "Special Elite", monospace;

}

/* Base reset */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  overflow-x: hidden; /* important for mobile stability */
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-shadow: 0 0 10px rgba(0,255,255,0.35);
}

/* Optional marquees */
.marquee-left, .marquee-right {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 22px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.85rem;
  color: var(--muted);
  z-index: 50;
  opacity: 0.9;
}
.marquee-left { left: 0; }
.marquee-right { right: 0; }
marquee { user-select: none; }

/* Hero */
.site-hero{
  padding: 1.4rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(0,255,255,0.10), transparent 60%),
    radial-gradient(700px 420px at 80% 0%, rgba(255,78,0,0.10), transparent 55%),
    linear-gradient(180deg, rgba(10,10,10,0.92), rgba(0,0,0,0.92));
}

.hero-shell{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1rem;
  align-items: start;
}

.hero-ascii{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.65);
  box-shadow: var(--shadow);
  padding: 0.8rem 0.8rem 0.6rem;
  overflow: hidden;
}

.ascii{
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
  white-space: pre;
  text-shadow: 1px 1px 0 rgba(0,255,255,0.65), -1px -1px 0 rgba(0,255,255,0.35);
}

.hero-meta{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.65);
  box-shadow: var(--shadow);
  padding: 0.9rem 0.9rem 1rem;
}

.hero-title{
  margin: 0.1rem 0 0.2rem;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(255,78,0,0.26);
}

.hero-subtitle{
  margin: 0.4rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.badge{
  font-size: 0.72rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,255,255,0.06);
  color: var(--cyan);
}
.badge-orange{
  border-color: var(--border-2);
  background: rgba(255,78,0,0.08);
  color: var(--text);
}
.badge-cyan{
  border-color: var(--border);
  background: rgba(0,255,255,0.06);
  color: var(--cyan);
}
.badge-ghost{
  border-color: rgba(255,78,0,0.18);
  background: rgba(255,78,0,0.04);
  color: var(--muted);
}

.hero-links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0 0.8rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
  will-change: transform;
}

.btn-primary{
  background: rgba(0,255,255,0.09);
  color: var(--cyan);
  box-shadow: var(--shadow);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0,255,255,0.25);
  background: rgba(0,255,255,0.12);
}

.btn-outline{
  background: rgba(255,78,0,0.07);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-outline:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255,78,0,0.18);
  background: rgba(255,78,0,0.10);
}

.hero-note{
  border-top: 1px dashed rgba(0,255,255,0.25);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.6rem;
}
.note-title{
  color: var(--cyan);
  opacity: 0.9;
  font-size: 0.85rem;
}
.note-body{
  color: var(--muted);
  font-size: 0.92rem;
}

/* Page wrapper */
.page{
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

/* Panels */
.panel{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin: 0.95rem 0;
  overflow: hidden;
}

.panel-warning{
  border-color: rgba(255,78,0,0.40);
  background:
    linear-gradient(180deg, rgba(255,78,0,0.07), rgba(0,0,0,0.60));
  box-shadow: 0 0 22px rgba(255,78,0,0.14);
}

.panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-title{
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.panel-text{
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}
.subtle{ color: rgba(255,78,0,0.60); }

/* Pill */
.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,255,255,0.28);
  background: rgba(0,255,255,0.06);
  color: var(--cyan);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  transition: box-shadow 160ms ease, transform 120ms ease;
}
.pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0,255,255,0.20);
}

/* TOC */
.toc-grid{
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.toc-item{
  border: 1px solid rgba(0,255,255,0.22);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  background: rgba(0,0,0,0.55);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.10);
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}
.toc-item:hover{
  transform: translateY(-1px);
  background: rgba(0,255,255,0.06);
  box-shadow: 0 0 16px rgba(0,255,255,0.18);
}

/* Layout grids */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

/* Cards */
.card{
  border: 1px solid rgba(0,255,255,0.20);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.60);
  box-shadow: 0 0 14px rgba(0,255,255,0.10);
  padding: 0.85rem 0.85rem 0.9rem;
  transition: transform 120ms ease, box-shadow 160ms ease;
}
.card:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0,255,255,0.16);
}

.card-title{
  margin: 0.05rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
  text-shadow: 0 0 12px rgba(255,78,0,0.18);
}
.card-text{
  margin: 0.25rem 0 0.6rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Mini blocks */
.mini{
  border: 1px dashed rgba(255,78,0,0.22);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  background: rgba(255,78,0,0.04);
  margin-top: 0.6rem;
}
.mini-title{
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.92rem;
}

/* Lists */
.list{
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.list li{ margin: 0.22rem 0; }
.list li .subtle{ color: rgba(255,78,0,0.62); }

/* Code boxes */
.codebox{
  margin-top: 0.85rem;
  border: 1px solid rgba(0,255,255,0.24);
  border-radius: 12px;
  background: rgba(0,0,0,0.72);
  box-shadow: 0 0 16px rgba(0,255,255,0.12);
  overflow: hidden;
}
.codebox-title{
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(0,255,255,0.06);
  border-bottom: 1px solid rgba(0,255,255,0.20);
}
.code{
  margin: 0;
  padding: 0.75rem 0.7rem;
  font-size: 0.88rem;
  color: var(--text);
  overflow-x: auto;
}
.mono{ font-family: var(--mono); }

/* Fold (details/summary) */
.fold{
  margin-top: 0.9rem;
  border: 1px solid rgba(255,78,0,0.22);
  border-radius: 12px;
  background: rgba(255,78,0,0.04);
  overflow: hidden;
}
.fold-summary{
  cursor: pointer;
  padding: 0.75rem 0.8rem;
  color: var(--text);
  list-style: none;
  user-select: none;
  border-bottom: 1px solid rgba(255,78,0,0.18);
}
.fold-summary::-webkit-details-marker{ display:none; }
.fold[open] .fold-summary{
  background: rgba(255,78,0,0.07);
}
.fold-body{
  padding: 0.75rem 0.8rem;
}

/* Link chips */
.linkrow{
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.linkchip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,255,255,0.24);
  background: rgba(0,255,255,0.06);
  color: var(--cyan);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}
.linkchip:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0,255,255,0.18);
  background: rgba(0,255,255,0.10);
}

/* Table */
.table-wrap{
  margin-top: 0.6rem;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.18);
  background: rgba(0,0,0,0.60);
}
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.table th, .table td{
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(0,255,255,0.12);
  color: var(--muted);
  font-size: 0.92rem;
}
.table th{
  color: var(--cyan);
  text-align: left;
  background: rgba(0,255,255,0.05);
}
.table tr:hover td{
  background: rgba(255,78,0,0.05);
}

/* Footer */
.footer{
  border-top: 1px solid rgba(0,255,255,0.22);
  padding: 1.1rem 1rem;
  color: rgba(255,78,0,0.62);
  box-shadow: 0 -10px 22px rgba(0,255,255,0.06);
}
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}
.footer-left, .footer-right{ font-size: 0.88rem; }

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 980px){
  .hero-shell{
    grid-template-columns: 1fr;
  }
  .ascii{
    font-size: 0.82rem;
  }
  .grid-3{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  /* hide marquees on mobile */
  .marquee-left, .marquee-right{ display: none; }

  .page{ padding: 0.85rem 0.85rem 1.6rem; }

  .grid-2{
    grid-template-columns: 1fr;
  }

  .toc-grid{
    grid-template-columns: 1fr;
  }

  .ascii{
    font-size: 0.68rem;
    overflow-x: auto;
    display: block;
  }

  .btn{
    width: 100%;
  }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px){
  .ascii{ font-size: 0.58rem; }
  .hero-title{ font-size: 1.2rem; }
  .hero-subtitle{ font-size: 0.92rem; }
  .panel{ padding: 0.85rem; }
  .card{ padding: 0.75rem; }
}
