/* Remove theme header/title/footer ONLY on our pages (theme-dependent selectors) */
body.post-type-archive-board_game .entry-title,
body.post-type-archive-board_game .page-title,
body.post-type-archive-board_game h1.page-title,
body.single-board_game .entry-title,
body.single-board_game .page-title,
body.single-board_game h1.page-title { display:none !important; }

/* Twenty Twenty-Five (and some classic layouts) */
body.post-type-archive-board_game #header,
body.single-board_game #header,
body.post-type-archive-board_game #footer,
body.single-board_game #footer { display:none !important; }

/* Remove the <hr> separators around our injected content in classic templates */
body.post-type-archive-board_game #header + hr,
body.single-board_game #header + hr,
body.post-type-archive-board_game main.bgc-wrap + hr,
body.single-board_game main.bgc-wrap + hr { display:none !important; }

/* Common block themes */
body.post-type-archive-board_game .site-info,
body.single-board_game .site-info { display:none !important; }

/* Core layout */
.bgc-wrap { padding: 16px 0; }
.bgc-shell { --bgc-bg:#0b1220; --bgc-text:#e7eefc; --bgc-muted:#9fb0d0; --bgc-border:rgba(255,255,255,.10); --bgc-accent:#7aa7ff;
  background: var(--bgc-bg); color: var(--bgc-text);
  border: 1px solid var(--bgc-border); border-radius: 18px;
  padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-width: 1200px; margin: 0 auto;
}
.bgc-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:rgba(231,238,252,.65);}
.bgc-h1{margin:6px 0 6px 0;font-size:30px;line-height:1.15;letter-spacing:-.02em;}
.bgc-year{font-size:18px;color:rgba(231,238,252,.70);font-weight:600;}
.bgc-sub{color:var(--bgc-muted);font-size:14px;}
.bgc-head{display:flex;gap:16px;align-items:flex-end;justify-content:space-between;margin:0 0 14px 0;flex-wrap:wrap;}
.bgc-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
.bgc-search,.bgc-sort{background:rgba(255,255,255,.06);border:1px solid var(--bgc-border);color:var(--bgc-text);padding:10px 12px;border-radius:12px;outline:none;}
.bgc-search{min-width:260px;}
.bgc-search::placeholder{color:rgba(231,238,252,.55);}

.bgc-grid{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:14px;}
@media (min-width: 720px){ .bgc-grid{grid-template-columns:repeat(4, minmax(0,1fr));} }
@media (min-width: 1100px){ .bgc-grid{grid-template-columns:repeat(6, minmax(0,1fr));} }

.bgc-card{display:block;text-decoration:none;color:inherit;background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); border:1px solid var(--bgc-border); border-radius:16px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,.25); cursor:pointer; transition: transform .14s ease, border-color .14s ease;}
.bgc-card:hover{transform: translateY(-2px); border-color: rgba(122,167,255,.45);}
.bgc-cover{aspect-ratio:3/4;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;}
.bgc-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.bgc-cover-fallback{color:rgba(231,238,252,.55);font-size:12px;padding:10px;text-align:center;}
.bgc-card-body{padding:10px 10px 12px 10px;}
.bgc-title{font-size:13px;line-height:1.25;margin:0 0 8px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px;}
.bgc-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--bgc-muted);font-size:12px;}
.bgc-empty{margin:18px 0;color:var(--bgc-muted);padding:12px;border:1px dashed var(--bgc-border);border-radius:14px;text-align:center;}

.bgc-toprow{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap;}
.bgc-back{display:inline-block;color:var(--bgc-accent);text-decoration:none;font-weight:700;}
.bgc-back:hover{text-decoration:underline;}

.bgc-editbtn{background:rgba(122,167,255,.18);border:1px solid rgba(122,167,255,.40);color:var(--bgc-text);padding:10px 12px;border-radius:12px;font-weight:800;cursor:pointer;}
.bgc-editbtn:hover{background:rgba(122,167,255,.25);}

.bgc-single-hero{display:grid;grid-template-columns:1fr;gap:18px;}
@media (min-width: 980px){ .bgc-single-hero{grid-template-columns:360px 1fr;} }
.bgc-single-cover img{width:100%;border-radius:16px;display:block;box-shadow:0 12px 34px rgba(0,0,0,.35);}
.bgc-badgerow{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 14px;}
.bgc-badge2{border:1px solid var(--bgc-border);background:rgba(255,255,255,.04);border-radius:14px;padding:10px 12px;min-width:160px}
.bgc-badge2 span{display:block;color:var(--bgc-muted);font-size:12px;margin-bottom:4px;}
.bgc-badge2 strong{font-size:18px;}
.bgc-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 16px;}
@media (min-width: 720px){ .bgc-cards{grid-template-columns:repeat(3,minmax(0,1fr));} }
.bgc-stat{border:1px solid var(--bgc-border);background:rgba(255,255,255,.03);border-radius:14px;padding:12px;}
.bgc-stat-k{color:var(--bgc-muted);font-size:12px;margin-bottom:6px;}
.bgc-stat-v{font-size:18px;font-weight:800;}
.bgc-section-title{font-size:12px;letter-spacing:.10em;text-transform:uppercase;color:rgba(231,238,252,.70);margin:16px 0 8px;}
.bgc-desc-text{color:rgba(231,238,252,.92);font-size:14px;line-height:1.55;}
.bgc-muted{color:var(--bgc-muted);}
.bgc-notesbox{border:1px solid var(--bgc-border);background:rgba(255,255,255,.03);border-radius:14px;padding:12px;margin-top:10px;}

.bgc-input{width:100%;margin-top:8px;background:rgba(255,255,255,.06);border:1px solid var(--bgc-border);color:var(--bgc-text);padding:8px 10px;border-radius:10px;font-weight:700;}
.bgc-textarea{width:100%;margin-top:8px;background:rgba(255,255,255,.06);border:1px solid var(--bgc-border);color:var(--bgc-text);padding:10px 12px;border-radius:12px;font-weight:600;}

.bgc-editbar{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap;}
.bgc-savebtn,.bgc-cancelbtn{border-radius:12px;padding:10px 12px;font-weight:900;cursor:pointer;border:1px solid var(--bgc-border);color:var(--bgc-text);background:rgba(255,255,255,.06);}
.bgc-savebtn{background:rgba(122,167,255,.20);border-color:rgba(122,167,255,.40);}
.bgc-savebtn:hover{background:rgba(122,167,255,.28);}
.bgc-cancelbtn:hover{background:rgba(255,255,255,.10);}
.bgc-msg{color:var(--bgc-muted);font-size:13px;font-weight:700;}

/* Modal */
.bgc-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:18px;z-index:99999;}
.bgc-modal-card{width:min(420px,100%);background:#0b1220;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.45);color:var(--bgc-text);}
.bgc-modal-title{font-size:18px;font-weight:900;margin-bottom:6px;}
.bgc-modal-sub{color:rgba(231,238,252,.72);font-size:13px;margin-bottom:10px;}
.bgc-modal-input{width:100%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:var(--bgc-text);padding:10px 12px;border-radius:12px;font-weight:800;outline:none;}
.bgc-modal-actions{display:flex;gap:10px;margin-top:12px;justify-content:flex-end;}
.bgc-modal-error{margin-top:10px;color:#ffb3b3;font-weight:800;}


/* Search field dropdown */
.bgc-filter{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  font:inherit;
  outline:none;
  min-width:130px;
}
.bgc-filter:focus{border-color:rgba(255,238,88,.7); box-shadow:0 0 0 3px rgba(255,238,88,.15)}

.bgc-filter option{color:#111;background:#fff;}


.bgc-kicker-link{ text-decoration:none; cursor:pointer; }
.bgc-kicker-link:hover{ text-decoration:underline; }



select.bgc-filter,
select.bgc-sort {
  /* Keep native arrow (do NOT disable appearance) */
  background-color: #ffffff;
  color: #111827;

  border: 1px solid #d1d5db;
  border-radius: 12px;

  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;

  line-height: 1.2;
  height: 44px;

  cursor: pointer;
}

select.bgc-filter:hover,
select.bgc-sort:hover {
  border-color: #9ca3af;
}

select.bgc-filter:focus,
select.bgc-sort:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ===============================
   Unified dropdown styling (v1.10.13)
   Match search field background
   =============================== */

select.bgc-filter,
select.bgc-sort {
  background-color: rgba(255,255,255,0.08);
  color: #e5e7eb;

  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;

  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;

  line-height: 1.2;
  height: 44px;

  cursor: pointer;
}

select.bgc-filter option,
select.bgc-sort option {
  color: #111827; /* keep options readable */
}

select.bgc-filter:hover,
select.bgc-sort:hover {
  border-color: rgba(255,255,255,0.25);
}

select.bgc-filter:focus,
select.bgc-sort:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96,165,250,0.25);
}
