/* ============================================================
   BBBankje — teal accent (#3fb8af) on dark slate-green.
   z-index layers: #map 0 < topbar/FAB 1100 < modals 9999 < gate 10000
   (auth.js modals set their own inline z-index 10020, above the gate).
   ============================================================ */

@font-face {
  font-family: Ariw9500;
  src: url(Fonts/ari-w9500-display.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Ariw9500, sans-serif;
  background: #0b1510;
  color: white;
  overflow: hidden;
}

#map {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0b1510;
}

body.placing #map { cursor: crosshair; }

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── topbar ─────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 84px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 430px;
  padding: 8px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22,40,31,0.95), rgba(11,21,16,0.95));
  border: 2px solid #3fb8af;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.back-link {
  color: #3fb8af;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
}

.topbar-logo { width: 28px; height: 28px; }

.topbar-title {
  flex: 1;
  font-size: 20px;
  color: #3fb8af;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.lang-toggle {
  border: 1px solid #3fb8af;
  background: transparent;
  color: #3fb8af;
  border-radius: 8px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.lang-toggle:hover { background: rgba(63,184,175,0.15); }

/* ── filter bar ─────────────────────────────────────────── */
.filterbar {
  position: fixed;
  top: 72px;
  left: 14px;
  right: 14px;
  z-index: 1100;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filterbar::-webkit-scrollbar { display: none; }

.filter-btn, .filter-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(63,184,175,0.5);
  background: rgba(11,21,16,0.9);
  color: #ddd;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.filter-btn--active {
  background: #3fb8af;
  color: #06201d;
  font-weight: bold;
  border-color: #3fb8af;
}
.filter-chip--active {
  background: rgba(63,184,175,0.3);
  color: #fff;
  border-color: #3fb8af;
}
.filter-sep {
  flex: 0 0 1px;
  background: rgba(63,184,175,0.4);
  margin: 4px 2px;
}

/* ── FAB + placing hint ─────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #06201d;
  cursor: pointer;
  background: linear-gradient(270deg, #3fb8af, #2d9a92, #4fd8cd);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  box-shadow: 0 4px 0 #1f6b65, 0 6px 18px rgba(0,0,0,0.5);
}
.fab:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }

.place-hint {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(11,21,16,0.95);
  border: 1px solid #3fb8af;
  color: #3fb8af;
  font-size: 14px;
  white-space: nowrap;
  max-width: 90vw;
}

/* ── map pins (pure CSS teardrops, no image assets) ─────── */
.spot-pin { background: none; border: none; }
.pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  cursor: pointer;
}
.pin span { transform: rotate(45deg); font-size: 16px; }
.pin--smoke { background: #2ecc71; }
.pin--drink { background: #f1c40f; }
.pin--both  { background: #3fb8af; }

/* ── modals (house pattern, teal theme) ─────────────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  background: linear-gradient(180deg, #16281f, #0b1510);
  padding: 30px;
  border: 2px solid #3fb8af;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  color: white;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb { background: #3fb8af; border-radius: 10px; }

.close {
  float: right;
  font-size: 26px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}
.close:hover { color: #3fb8af; }

.bankje-h2 { color: #3fb8af; margin: 0 0 12px; font-size: 22px; }
.bankje-h3 { color: #3fb8af; font-size: 15px; margin: 18px 0 8px; }

/* ── add/edit form ──────────────────────────────────────── */
.form-label { display: block; font-size: 13px; color: #9fd6d1; margin: 10px 0 2px; }

.seg { display: flex; gap: 8px; margin: 4px 0; }
.seg-btn {
  flex: 1;
  padding: 9px 4px;
  border: 1px solid rgba(63,184,175,0.5);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #ccc;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.seg-btn--active { background: #3fb8af; color: #06201d; font-weight: bold; border-color: #3fb8af; }

.form-2col { display: flex; gap: 10px; }
.form-2col > div { flex: 1; }

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 15px;
  cursor: pointer;
}
.check-row input { width: 18px; height: 18px; accent-color: #3fb8af; }

.file-field { padding: 8px; font-size: 13px; }
select.auth-field { appearance: auto; }

.auth-btn--danger { border-color: #e74c3c; color: #e74c3c; }

/* ── detail modal ───────────────────────────────────────── */
.detail-photo {
  width: calc(100% + 60px);
  margin: -30px -30px 14px;
  max-height: 240px;
  object-fit: cover;
  border-radius: 13px 13px 0 0;
  display: block;
}
.detail-name { margin-bottom: 6px; }
.detail-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.detail-owner strong { color: #3fb8af; }
.detail-rating { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.rating-num { font-size: 13px; color: #aaa; }
.detail-desc { font-size: 14px; color: #ddd; line-height: 1.5; margin-bottom: 12px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.maps-row { display: flex; gap: 8px; margin-bottom: 14px; }
.maps-row a { text-decoration: none; }
#reportModal textarea { margin: 12px 0 14px; text-align: left; }
.chip {
  padding: 5px 10px;
  border-radius: 14px;
  background: rgba(63,184,175,0.12);
  border: 1px solid rgba(63,184,175,0.4);
  font-size: 13px;
  color: #ddd;
}

.vote-row { display: flex; gap: 10px; margin-bottom: 12px; }
.vote-btn {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.vote-btn--on { background: rgba(63,184,175,0.35); border-color: #3fb8af; }
.vote-row--static .vote-btn { cursor: default; }

.detail-ownrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.report-badge {
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(231,76,60,0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
  font-size: 13px;
}

/* ── reviews ────────────────────────────────────────────── */
.rev-list { display: flex; flex-direction: column; gap: 8px; }
.rev-row {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px;
}
.rev-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3fb8af;
  color: #06201d;
  font-weight: bold;
  font-size: 14px;
}
.rev-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rev-main { flex: 1; min-width: 0; }
.rev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rev-name { font-weight: bold; font-size: 14px; }
.rev-body { font-size: 14px; color: #ddd; margin-top: 3px; line-height: 1.4; overflow-wrap: break-word; }
.rev-empty { color: #888; font-size: 14px; }

.star { color: #555; font-size: 18px; background: none; border: none; padding: 0 1px; }
.star--on { color: #f1c40f; }
button.star { cursor: pointer; font-size: 26px; }

.star-input { margin-bottom: 6px; }
.rev-write-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ── confirm modal ──────────────────────────────────────── */
.confirm-content { max-width: 340px; text-align: center; }
.confirm-text { font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btns .auth-btn { margin-top: 0; }

/* ── login gate ─────────────────────────────────────────── */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(22,40,31,0.85), rgba(11,21,16,0.92)),
              url('bbbankjeback.gif') center / cover no-repeat;
  padding: 24px;
  text-align: center;
}
.gate-logo { width: 110px; height: 110px; filter: drop-shadow(0 0 18px rgba(63,184,175,0.4)); }
.gate-title { color: #3fb8af; font-size: 34px; text-shadow: 2px 2px 6px rgba(0,0,0,0.7); }
.gate-text { color: #ccc; font-size: 15px; max-width: 320px; line-height: 1.5; }
.gate-btn { width: auto; padding: 12px 28px; font-size: 16px; }
.gate-back { color: rgba(63,184,175,0.6); font-size: 13px; text-decoration: none; margin-top: 10px; }
.gate-back:hover { color: #3fb8af; }

/* ============================================================
   ACCOUNTS — auth.js injected UI, teal theme.
   (Same classes as the games; accent swapped to #3fb8af.)
   ============================================================ */
.profile-icon-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1100;
  width: 50px;
  height: 50px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  background: linear-gradient(270deg, #3fb8af, #2d9a92, #1f7d76);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  box-shadow: 0px 4px 0px #14504b;
}
.profile-icon-btn--avatar { padding: 0; overflow: hidden; }
.profile-icon-btn img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.profile-icon-btn:active { transform: translateY(4px); box-shadow: 0px 0px 0px transparent; }

/* ── auth modal shell ─────────────────────────────────────── */
.auth-content { max-width: 380px; }
.auth-h2 { color: #3fb8af; text-align: center; margin: 0 0 14px; }
.auth-h3 { color: #3fb8af; font-size: 15px; margin: 16px 0 8px; }
.auth-link { display: inline-block; margin-top: 10px; color: #3fb8af; font-size: 13px; text-decoration: none; }

.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tab {
  flex: 1; padding: 10px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,0.08); color: #ccc; font-family: inherit; font-size: 15px;
}
.auth-tab--active { background: #3fb8af; color: #06201d; font-weight: bold; }

.auth-field {
  width: 100%; box-sizing: border-box; padding: 11px; margin: 6px 0;
  border-radius: 8px; border: 1px solid #3fb8af; background: rgba(0,0,0,0.4);
  color: #fff; font-family: inherit; font-size: 16px;
}
.auth-btn {
  width: 100%; box-sizing: border-box; padding: 11px; margin-top: 8px; border: none;
  border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600;
  background: rgba(255,255,255,0.12); color: #fff;
}
.auth-btn--primary { background: linear-gradient(180deg,#4fd8cd,#2d9a92); color: #06201d; box-shadow: 0 4px #1f6b65; }
.auth-btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,0.25); }
.auth-btn--mini { width: auto; padding: 6px 10px; margin: 0; font-size: 13px; }
.auth-btn--join { background: linear-gradient(180deg,#3fb8af,#2d9a92); color: #fff; }
.auth-btn:disabled { opacity: .6; cursor: default; }

.auth-msg { min-height: 18px; margin: 10px 0 0; font-size: 14px; text-align: center; }
.auth-msg--err { color: #e74c3c; }
.auth-msg--ok  { color: #3fb8af; }

/* ── profile ──────────────────────────────────────────────── */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #3fb8af; color: #06201d; font-size: 28px; font-weight: bold;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 20px; font-weight: bold; }
.profile-code { font-size: 13px; color: #aaa; }
.profile-code strong { color: #3fb8af; letter-spacing: 1px; }
.profile-actions, .profile-edit { display: flex; gap: 8px; margin: 8px 0; }
.profile-edit .auth-field { margin: 0; }
.profile-edit .auth-btn, .profile-actions .auth-btn { margin-top: 0; }
.profile-foot { display: flex; gap: 8px; margin-top: 14px; }

.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-box { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 4px; text-align: center; }
.stat-val { font-size: 22px; font-weight: bold; color: #3fb8af; }
.stat-label { font-size: 11px; color: #aaa; margin-top: 2px; }

/* ── friends ──────────────────────────────────────────────── */
.friend-add { display: flex; gap: 8px; }
.friend-add .auth-field { margin: 0; }
.friend-add .auth-btn { margin-top: 0; width: auto; white-space: nowrap; }
.friend-list { display: flex; flex-direction: column; gap: 6px; }
.friend-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); border-radius: 8px; padding: 8px 10px; }
.friend-name { flex: 1; display: flex; align-items: center; gap: 6px; }
.friend-actions { display: flex; gap: 6px; }
.friend-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #3fb8af; color: #06201d; font-weight: bold; font-size: 14px;
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fb8af; display: inline-block; }
.friend-empty { color: #888; font-size: 14px; text-align: center; }

/* user badge (admin-assigned; color set inline per badge) */
.badge-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid;
  color: #3fb8af;
  border-color: #3fb8af;
  background: rgba(255,255,255,0.08);
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .profile-icon-btn { width: 40px; height: 40px; padding: 8px; top: 15px; right: 15px; font-size: 20px; }
  .topbar { right: 70px; padding: 7px 12px; }
  .topbar-title { font-size: 17px; }
  .filterbar { top: 66px; }
  .modal-content { padding: 22px; }
  .detail-photo { width: calc(100% + 44px); margin: -22px -22px 12px; }
}
