/* =======================================================================
   Data Deleters LLC — shared theme
   Used by: index.html, apply.html, admin.html
   Edit tokens in :root to reskin every page at once.
   ======================================================================= */

:root{
  --bg: #0c1110;
  --bg-raised: #131a18;
  --bg-sunken: #0a0e0d;
  --line: #223028;
  --text: #e6ece8;
  --text-dim: #8fa39a;
  --green: #4fe08a;
  --green-dim: #2d5c47;
  --orange: #ef7a3c;
  --orange-dim: #6b3f21;
  --red: #e2584a;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  background-image: linear-gradient(180deg, rgba(79,224,138,0.05), transparent 320px);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--green); }
::selection{ background: var(--green-dim); color: var(--text); }

.wrap{ max-width: 880px; margin: 0 auto; padding: 0 28px; }
.wrap-wide{ max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */

header{ border-bottom: 1px solid var(--line); padding: 22px 0; }
.header-row{
  display:flex; align-items:center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand{
  display:flex; align-items:center; gap: 12px;
  font-family: var(--mono); font-weight:600; font-size: 17px; letter-spacing: 0.01em;
  text-decoration:none; color: var(--text);
}
.brand-mark{
  font-family: var(--mono); font-weight:700; font-size: 18px;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg-raised);
}
.brand-mark span:first-child{ color: var(--orange); }
.brand-mark span:last-child{ color: var(--green); }

nav{ display:flex; gap: 22px; font-family: var(--mono); font-size: 14px; }
nav a{
  color: var(--text-dim); text-decoration:none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
nav a:hover{ color: var(--text); border-bottom-color: var(--green); }
nav a.current{ color: var(--text); border-bottom-color: var(--orange); }

/* ---------- hero / page intro ---------- */

.hero{ padding: 76px 0 56px; }
.hero.compact{ padding: 56px 0 40px; }
.eyebrow{ font-family: var(--mono); font-size: 13px; color: var(--orange); margin: 0 0 14px; }
h1{
  font-family: var(--mono); font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15; margin: 0 0 18px; font-weight: 700; max-width: 17ch;
}
.lede{ font-size: 18px; color: var(--text-dim); max-width: 58ch; margin: 0 0 24px; }

.connect-box{
  display:inline-block; background: var(--bg-raised); border: 1px solid var(--line);
  border-left: 3px solid var(--green); border-radius: 6px; padding: 18px 22px; font-family: var(--mono);
}
.connect-box .label{ font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.connect-box .addr{ font-size: 20px; color: var(--green); }
.connect-box .addr .port{ color: var(--orange); }

/* ---------- sections ---------- */

section{ padding: 56px 0; border-top: 1px solid var(--line); }
section.no-border{ border-top:none; }
h2{ font-family: var(--mono); font-size: 24px; margin: 0 0 8px; }
h3{ font-family: var(--mono); font-size: 16px; margin: 0 0 6px; }
.section-intro{ color: var(--text-dim); max-width: 62ch; margin: 0 0 32px; }

/* ---------- gallery (index page) ---------- */

.gallery{ display:grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.gallery .photo-slot:first-child{ grid-row: span 2; }
.photo-slot{
  border: 1px dashed var(--line); border-radius: 6px; background: var(--bg-raised);
  min-height: 140px; display:flex; align-items:center; justify-content:center;
  text-align:center; padding: 16px;
}
.photo-slot img{ width:100%; height:100%; object-fit: cover; border-radius: 5px; }
.photo-slot .hint{ font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.photo-slot .hint b{ color: var(--text); display:block; margin-bottom:4px; font-size:13px; }

@media (max-width: 620px){
  .gallery{ grid-template-columns: 1fr; }
  .gallery .photo-slot:first-child{ grid-row: auto; }
}

/* ---------- terminal-log key/value list ---------- */

.log{ font-family: var(--mono); font-size: 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-raised); overflow: hidden; }
.log-row{ display:grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.log-row:last-child{ border-bottom:none; }
.log-key{ color: var(--green); white-space: nowrap; }
.log-key::before{ content: "$ "; color: var(--text-dim); }
.log-val{ color: var(--text-dim); }
.log-val b{ color: var(--text); font-weight: 500; }

@media (max-width: 620px){ .log-row{ grid-template-columns: 1fr; gap: 6px; } }

/* ---------- generic status table ---------- */

table.status{ width:100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
table.status th{ text-align:left; color: var(--text-dim); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.status td{ padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.status tr:last-child td{ border-bottom:none; }
.dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background: var(--green); margin-right: 8px; }
.dot.warn{ background: var(--orange); }
.dot.bad{ background: var(--red); }
.status-note{ font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-top: 14px; }

/* ---------- badges ---------- */

.badge{
  display:inline-block; font-family: var(--mono); font-size: 12px;
  padding: 3px 9px; border-radius: 4px; border: 1px solid transparent; white-space:nowrap;
}
.badge-pending{ color: var(--orange); background: rgba(239,122,60,0.12); border-color: var(--orange-dim); }
.badge-approved{ color: var(--green); background: rgba(79,224,138,0.12); border-color: var(--green-dim); }
.badge-denied{ color: var(--red); background: rgba(226,88,74,0.12); border-color: #6b2a24; }

/* ---------- forms ---------- */

.callout{
  font-family: var(--mono); font-size: 13px; color: var(--text-dim);
  border: 1px dashed var(--line); border-radius: 6px; background: var(--bg-raised);
  padding: 14px 18px; margin-bottom: 32px;
}
.callout b{ color: var(--orange); }

form{ max-width: 560px; }
.field{ margin-bottom: 22px; }
.field label{
  display:block; font-family: var(--mono); font-size: 13px; color: var(--text);
  margin-bottom: 8px;
}
.field .hint-text{ display:block; font-family: var(--sans); font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field select,
.field textarea{
  width:100%; background: var(--bg-sunken); border: 1px solid var(--line);
  border-radius: 5px; padding: 11px 13px; font-family: var(--sans);
  font-size: 15px; color: var(--text); outline:none;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--green); }
.field textarea{ resize: vertical; min-height: 110px; }
.field-row{ display:flex; gap: 16px; }
.field-row .field{ flex:1; }
@media (max-width: 560px){ .field-row{ flex-direction:column; gap:0; } }

.btn{
  display:inline-block; font-family: var(--mono); font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 5px; border: 1px solid var(--green);
  background: var(--green); color: #08130d; text-decoration:none; cursor:pointer;
}
.btn:hover{ background: #6ef0a3; }
.btn-ghost{
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn-ghost:hover{ border-color: var(--text-dim); }

/* ---------- admin layout ---------- */

.admin-shell{ display:grid; grid-template-columns: 200px 1fr; gap: 0; min-height: calc(100vh - 71px); }
.admin-sidebar{
  border-right: 1px solid var(--line); padding: 28px 20px;
  font-family: var(--mono); font-size: 14px;
}
.admin-sidebar .side-label{ color: var(--text-dim); font-size: 12px; margin: 18px 0 8px; }
.admin-sidebar .side-label:first-child{ margin-top:0; }
.admin-sidebar a{
  display:block; color: var(--text-dim); text-decoration:none; padding: 6px 0;
}
.admin-sidebar a:hover, .admin-sidebar a.current{ color: var(--text); }
.admin-main{ padding: 36px 32px; }

@media (max-width: 720px){
  .admin-shell{ grid-template-columns: 1fr; }
  .admin-sidebar{ border-right:none; border-bottom: 1px solid var(--line); padding: 18px 20px; }
}

/* ---------- footer ---------- */

footer{
  border-top: 1px solid var(--line); padding: 32px 0 48px; font-family: var(--mono);
  font-size: 12px; color: var(--text-dim); display:flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
footer .orange{ color: var(--orange); }
