/* =========================
   ZBOE Unified Stylesheet
   Path expectations:
   - CSS: /assets/css/zboe.css
   - Images: /assets/img/...
   ========================= */

/* --- Base / Layout --- */
html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: radial-gradient(1000px 500px at 20% 0%, rgba(13, 110, 253, 0.15), transparent 10%),
              radial-gradient(900px 500px at 80% 0%, rgba(25, 135, 84, 0.12), transparent 10%),
              #0b0f14;
  font-size: 0.9rem;
}

/* Page backgrounds */
body.game-page {
  background-image: url("/assets/img/game_back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.zboe-page {
  background-image: url("/assets/img/zboe_back.png") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.bunker-page {
  background-image: url("/assets/img/bunker_back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#profileModal .nav-pills .nav-link {
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.03);
}
#profileModal .nav-pills .nav-link.active {
  color: #fff;
  background: rgba(13,110,253,.18);
  border-color: rgba(13,110,253,.35);
}

/* If you actually want these containers to be transparent, keep this.
   Note: This will be overridden by the .container background rule below if both apply. */
.main,
.wrapper {
  background: transparent !important;
}

/* Container background (kept because it appeared later and is more intentional) */
.container {
  background: radial-gradient(1000px 500px at 20% 0%, rgba(13, 110, 253, 0.15), transparent 10%),
              radial-gradient(900px 500px at 80% 0%, rgba(25, 135, 84, 0.12), transparent 10%),
              #0b0f14;
  font-size: 0.9rem;
}

/* --- Glass Panels / Cards --- */

/* BUNKER: softer glass (50%) */
body.bunker-page .card,
body.bunker-page .content-block,
body.bunker-page .main-panel {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* PAGE: softer-ish glass (600%) */
body.zboe-page .card,
body.zboe-page .content-block,
body.zboe-page .main-panel {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* GAME: darker glass (70%) */
body.game-page .card,
body.game-page .content-block,
body.game-page .main-panel {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
  padding: 0.75rem;
}

.soft-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.soft-card .card-header {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.75rem;
}

.soft-card hr {
  opacity: 0.15;
}

/* --- Typography / Labels --- */
.muted-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: #e8edf2;
  font-size: 0.85rem;
}

.card-body .muted-mono {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.value-text {
  color: #f2f4f7;
  font-weight: 600;
}

.label-text {
  color: #cfd6df;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
}

code {
  color: #fff;
}

/* --- Header / Navbar --- */
.header-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4));
}

.navbar {
  min-height: 70px;
}

/* --- Lists / Feeds / Scrollers --- */
.events-list,
.online-list {
  height: 100%;
  overflow: auto;
}

.event-feed {
  max-height: 360px;
  overflow: auto;
}

.online-list {
  max-height: 240px;
  overflow: auto;
}

.leaderboard {
  max-height: 240px;
  overflow: auto;
}

/* --- Progress --- */
.progress {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Badges --- */
.badge-soft {
  background: rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.35);
}

/* --- Stat Gain Pulse --- */
@keyframes statPulseGold {
  0% {
    box-shadow: 0 0 0 rgba(255, 193, 7, 0);
    border-color: rgba(255, 255, 255, 0.12);
  }
  40% {
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.9);
    border-color: rgba(255, 193, 7, 0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 193, 7, 0);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

@keyframes statPulseAmber {
  0% {
    box-shadow: 0 0 0 rgba(255, 159, 64, 0);
    border-color: rgba(255, 255, 255, 0.12);
  }
  40% {
    box-shadow: 0 0 10px rgba(255, 159, 64, 0.9);
    border-color: rgba(255, 159, 64, 0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 159, 64, 0);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

.pulse-gold {
  animation: statPulseGold 0.6s ease-out;
}

.pulse-amber {
  animation: statPulseAmber 0.6s ease-out;
}

/* --- RPG Player Card --- */
.rpg-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.rpg-card .card-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rpg-left {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.rpg-lv {
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.7);
}

.rpg-lv strong {
  font-size: 1.35rem;
  color: #fff;
}

.rpg-clip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 1.2rem;
  letter-spacing: 0.6px;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.35);
  display: inline-block;
}

.rpg-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.rpg-bar > .fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.rpg-bar-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.rpg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.rpg-stat {
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rpg-stat .k {
  font-size: 0.72rem;
  color: rgba(255,  255, 255, 0.7);
  letter-spacing: 0.5px;
}

.rpg-stat .v {
  font-weight: 700;
  color: #fff;
  margin-top: 0.1rem;
}

.rpg-meta-row {
  height: 18px; /* fixed height = no layout shifting */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.4px;
}

.rpg-meta-pill {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}