/* Ask Langebaan — styles.css (cleaned + consolidated)
   Notes:
   - CSS-only cleanup: removed duplicates/patch blocks, kept behaviour.
   - Normalised icon buttons (anchors + share <button>) so they match.
*/

:root{
  --bg:#0b1320;
  --text:#f1f5f9;
  --muted:#94a3b8;
  --card:rgba(17,24,39,0.65);
  --border:rgba(148,163,184,0.14);
  --accent:#38bdf8;
}

/* Base */
html,body{margin:0;height:100%;}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(800px 520px at 10% 10%, rgba(34,211,238,0.12), transparent 55%),
    radial-gradient(900px 560px at 90% 15%, rgba(16,185,129,0.10), transparent 55%),
    linear-gradient(180deg, #0b1320 0%, #070b15 55%, #060b14 100%);
  color: var(--text);
}

/* Layout */
.wrap{
  width:min(980px, calc(100% - 32px));
  margin:0 auto;
  padding:32px 0 64px;
}
.center{text-align:center;}
.muted{color:var(--muted); font-weight:600;}

/* Hero */
.hero{position:relative; margin-bottom:18px;}
h1{margin:0 0 18px 0; font-size:34px; letter-spacing:-0.5px;}
.tagline{margin-top:8px; font-size:13px; color:rgba(148,163,184,0.95); font-weight:600;}

.adminLink{
  position:absolute;
  top:6px;
  right:0;
  font-size:13px;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  color:var(--text);
  background: rgba(17,24,39,0.52);
  border:1px solid rgba(148,163,184,0.18);
}
.adminLink:hover{
  border-color:rgba(56,189,248,0.55);
  box-shadow:0 0 0 4px rgba(56,189,248,0.10);
}

/* Search bar */
.bar{
  display:flex;
  gap:10px;
  padding:12px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius:18px;
}
#q{
  flex:1;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.22);
  color: var(--text);
  font-size:16px;
}
#q:focus{
  outline:none;
  border-color:rgba(56,189,248,0.85);
  box-shadow:0 0 0 4px rgba(56,189,248,0.14);
}
/* higher contrast placeholder */
#q::placeholder{color:rgba(241,245,249,0.72);}

#askBtn{
  padding:14px 18px;
  border-radius:999px;
  border:none;
  font-weight:800;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color:#020617;
  cursor:pointer;
}

/* Answer banner */
.answer{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}

/* Top filter pills (iconPill) */
.metaBar{
  display:flex;
  justify-content:center;
  gap:12px;
  padding:12px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius:14px;
}

.iconPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:#eaf1ff;
}
.iconPill:hover{background: rgba(255,255,255,.07);}
.iconDot{width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center;}
.pillText{font-size:13px; opacity:.95;}

/* Active filter glow */
.iconPill.isActive{
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.18),
    0 10px 30px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

/* Weather */
.weatherLine{text-align:center;}
.wxLine{font-size:16px; font-weight:600;}
.wxQuip{margin-top:4px; opacity:.85;}

/* Cards grid */
.cards{
  margin-top:16px;
  display:grid;
  gap:12px;
}
@media (min-width: 820px){
  .cards{grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));}
}

/* Card */
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}
.cardTop{margin-bottom:6px;}
.card h3{margin:0 0 6px 0; font-size:18px; letter-spacing:-0.2px; line-height:1.15;}

.meta{
  margin-bottom:8px;
  line-height:1.35;
  opacity:0.9;
}
.desc{
  margin-bottom:10px;
  line-height:1.4;
}
.small{
  color:var(--muted);
  font-size:13px;
  margin:0 0 10px 0;
  opacity:0.85;
}

/* Badges */
.badgeRow{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 8px 0; /* no left offset */
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:700;
}
.badge.verified{background:rgba(56,232,178,0.14); color:#38e8b2; border:1px solid rgba(56,232,178,0.32);}
.badge.unverified{background:rgba(245,194,107,0.14); color:#f5c26b; border:1px solid rgba(245,194,107,0.32);}
.badge.pensioners{background: rgba(46,204,113,.15); border:1px solid rgba(46,204,113,.35); color:#b9ffd6;}
.badge.promo{background: rgba(241,196,15,.12); border:1px solid rgba(241,196,15,.35); color:#ffe9a3;}

/* Icon row (anchors + share button) */
.iconRow{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
}

/* Base icon button */
.iconBtn{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(17,24,39,0.52);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;

  /* kill baseline/padding weirdness */
  padding:0;
  line-height:1;
  vertical-align:middle;
}

/* Normalise <button class="iconBtn"> */
button.iconBtn{
  -webkit-appearance:none;
  appearance:none;
  font: inherit;
}

/* SVG alignment */
.iconBtn svg{display:block; width:18px; height:18px; fill: currentColor; opacity:0.95;}

.iconBtn:hover{
  border-color:rgba(56,189,248,0.55);
  box-shadow:0 0 0 4px rgba(56,189,248,0.10);
}

/* More info */
.moreWrap{margin-top:10px;}
.moreBtn{
  padding:8px 12px;
  border-radius:12px;
}
.moreBox{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* In-card highlight helpers */
.card .flagLine{
  margin-top:6px;
  padding:6px 10px;
  border-radius:10px;
  font-weight:700;
}

/* Pensioners emphasis */
body.filterPensionersActive .card.hasPensioners{
  border-color: rgba(46,204,113,.45);
}
body.filterPensionersActive .card.hasPensioners .flagLine,
body.filterPensionersActive .badge.pensioners{
  background: rgba(46,204,113,.22);
  color: #d9ffea;
}

/* Promo emphasis */
body.filterPromoActive .card.hasPromo{
  border-color: rgba(241,196,15,.45);
}
body.filterPromoActive .card.hasPromo .flagLine,
body.filterPromoActive .badge.promo{
  background: rgba(241,196,15,.22);
  color: #fff2c2;
}

/* Generic buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(17,24,39,0.52);
  color:var(--text);
  cursor:pointer;
}
.btn.primary{background: linear-gradient(135deg, var(--accent), #0ea5e9); color:#020617; border:none; font-weight:800;}
.btn.danger{border-color:rgba(248,113,113,0.35);}
.btn.smallBtn{padding:8px 12px; font-size:13px;}

/* =========================
   Admin
   ========================= */
.adminWrap{width:min(1080px, calc(100% - 32px));}
.adminTop{margin-bottom:14px;}
.adminRow{display:flex; gap:10px; flex-wrap:wrap; justify-content:center;}
.adminCard{background: var(--card); border:1px solid var(--border); border-radius:16px; padding:16px;}

.form .label{font-size:12px; color:var(--muted); margin-bottom:6px;}
.form input, .form textarea, .form select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.22);
  color: var(--text);
  font-size:14px;
}
.form textarea{resize:vertical;}

.grid2{display:grid; gap:12px; grid-template-columns: 1fr;}
@media (min-width: 820px){
  .grid2{grid-template-columns: 1fr 1fr;}
}

.tableWrap{overflow:auto; border-radius:12px; border:1px solid rgba(148,163,184,0.14);}
.table{width:100%; border-collapse:collapse; min-width:760px;}
.table th, .table td{padding:12px; border-bottom:1px solid rgba(148,163,184,0.12); text-align:left;}
.table th{font-size:12px; color:rgba(148,163,184,0.95); font-weight:800; letter-spacing:0.3px;}
