/* assets/css/site.css
   Shared styling for all pages.
   Keep this file framework-free to make GitHub Pages easy (no build step). */

:root{
  --bg:#0b0f14;
  --panel: rgba(255,255,255,0.03);
  --text:#e6edf3;
  --muted:#9db0c6;
  --border:rgba(255,255,255,.10);
  --link:#7cc4ff;
  --max:1100px;
  --chip:rgba(255,255,255,.06);
  --btc:#F7931A;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}

a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 16px; }

/* ===== Header + nav ===== */
.header{
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

.topnav{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  white-space:nowrap;
}

.brand-logo{
  width:28px;
  height:28px;
  display:block;
}

.brand-name{
  font-weight:800;
  letter-spacing:.2px;
  color:var(--text);
}

.links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.links a{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
  color:var(--muted);
}

.links a[aria-current="page"]{
  color:var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

/* ===== Header content ===== */
.header-content{
  padding: 6px 0 16px;
}

.page-title{
  margin:10px 0 6px;
  font-size:28px;
  line-height:1.15;
}

.page-intro{
  margin:0 0 6px;
  color:var(--muted);
  max-width:80ch;
}

/* ===== Layout ===== */
.main{ padding:14px 0 18px; }

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}

.pad{ padding:14px; }

/* Map container (Leaflet will fill it) */
.map{
  width:100%;
  height:62vh;
  min-height:420px;
  max-height:760px;
}

/* Sidebar */
.controls{ padding:12px 12px 14px; display:grid; gap:10px; }
.field label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
.field input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(0,0,0,0.25);
  color:var(--text);
  outline:none;
}
.field input::placeholder{ color:rgba(157,176,198,0.75); }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--chip);
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12.5px;
  user-select:none;
}

.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:13px;
}

.btns{ display:flex; gap:10px; flex-wrap:wrap; }

button{
  appearance:none;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  padding:9px 12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}
button:hover{ background:rgba(255,255,255,0.07); }
button:active{ transform:translateY(1px); }

.status, .note, .muted{ color:var(--muted); font-size:13px; line-height:1.35; }

.list{ margin:10px 0 0; padding-left:18px; }
.h2{ margin:0 0 8px; font-size:18px; }
.h3{ margin:0 0 8px; font-size:16px; }
.hr{ border:0; border-top:1px solid var(--border); margin:14px 0; }

/* ===== Footer ===== */
.footer{
  border-top:1px solid var(--border);
  padding:16px 0;
}
.footer-inner{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:space-between;
  color:var(--muted);
  font-size:12.5px;
}
.footer-muted{ color:var(--muted); }

/* ===== Desktop layout ===== */
@media (min-width: 920px){
  .grid{ grid-template-columns: 1.6fr 1fr; align-items:start; }
  .map{ height: calc(100vh - 230px); min-height:520px; }
  .page-title{ font-size:34px; }
}

/* ===== Marker styling for Leaflet DivIcon =====
   The DivIcon markup is created in assets/js/map.js */
.btc-marker{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--btc);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}
