/* ============================================================
   Feed — violet accent (#a78bfa) on dark violet-navy.
   z-index layers: 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(../Baap/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: #0d0a1a;
  color: white;
}

@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(26,20,48,0.95), rgba(13,10,26,0.95));
  border: 2px solid #a78bfa;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

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

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

.topbar-logo {
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(167,139,250,0.4));
}

.lang-toggle {
  border: 1px solid #a78bfa;
  background: transparent;
  color: #a78bfa;
  border-radius: 8px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.lang-toggle:hover { background: rgba(167,139,250,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 {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(167,139,250,0.5);
  background: rgba(13,10,26,0.9);
  color: #ddd;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.filter-btn--active {
  background: #a78bfa;
  color: #120b26;
  font-weight: bold;
  border-color: #a78bfa;
}

/* ── FAB ────────────────────────────────────────────────── */
.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: #120b26;
  cursor: pointer;
  background: linear-gradient(270deg, #a78bfa, #8b6bea, #c4b0fc);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  box-shadow: 0 4px 0 #4c3799, 0 6px 18px rgba(0,0,0,0.5);
}
.fab:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }

/* ── feed list ──────────────────────────────────────────── */
.feed-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 128px 14px 110px;
}

.post-card {
  background: rgba(26,20,48,0.92);
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.post-head { display: flex; align-items: center; gap: 10px; }
.post-head-main { flex: 1; min-width: 0; }
.post-author {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: bold;
  font-size: 15px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #998fc0;
  margin-top: 2px;
}
.post-headbtns { display: flex; gap: 6px; align-self: flex-start; }

.post-body {
  margin: 10px 0 2px;
  font-size: 15px;
  line-height: 1.5;
  color: #eee;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.post-photo {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
  display: block;
}

.post-actions { display: flex; gap: 10px; margin-top: 12px; }

.vote-row--static .vote-btn { cursor: default; }
.vote-btn {
  padding: 8px 16px;
  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: 14px;
  cursor: pointer;
}
.vote-btn--on { background: rgba(167,139,250,0.35); border-color: #a78bfa; }

/* tag pills on posts */
.tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
}
.tag-pill--baap { color: #2ecc71; border-color: #2ecc71; background: rgba(46,204,113,0.15); }
.tag-pill--bier { color: #f1c40f; border-color: #f1c40f; background: rgba(241,196,15,0.12); }
.tag-pill--both { color: #a78bfa; border-color: #a78bfa; background: rgba(167,139,250,0.15); }

/* 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: #a78bfa;
  border-color: #a78bfa;
  background: rgba(255,255,255,0.08);
}

/* ── comments ───────────────────────────────────────────── */
.post-comments {
  border-top: 1px solid rgba(167,139,250,0.25);
  margin-top: 12px;
  padding-top: 10px;
}
.comment-row { display: flex; gap: 8px; padding: 6px 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-name { font-weight: bold; font-size: 13px; }
.comment-time { font-size: 11px; color: #998fc0; }
.comment-body {
  font-size: 14px;
  color: #ddd;
  margin-top: 2px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.comment-empty { color: #888; font-size: 13px; padding: 4px 0; }

.comment-compose { display: flex; gap: 8px; margin-top: 8px; }
.comment-compose .auth-field { margin: 0; font-size: 14px; }
.comment-compose .auth-btn { margin-top: 0; width: auto; white-space: nowrap; }

.rev-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #a78bfa;
  color: #120b26;
  font-weight: bold;
  font-size: 14px;
}
.rev-avatar img { width: 100%; height: 100%; object-fit: cover; }

.report-badge {
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(231,76,60,0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
  font-size: 13px;
}

.load-more { max-width: 220px; margin: 6px auto 0; display: block; }
.feed-empty { text-align: center; color: #888; margin-top: 40px; font-size: 15px; }

.compose-count { text-align: right; font-size: 12px; color: #998fc0; margin-top: -2px; }

/* ── modals (house pattern, violet 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, #1a1430, #0d0a1a);
  padding: 30px;
  border: 2px solid #a78bfa;
  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: #a78bfa; border-radius: 10px; }

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

.feed-h2 { color: #a78bfa; margin: 0 0 12px; font-size: 22px; }

.form-label { display: block; font-size: 13px; color: #cabdf5; margin: 10px 0 2px; }

.seg { display: flex; gap: 8px; margin: 4px 0; }
.seg-btn {
  flex: 1;
  padding: 9px 4px;
  border: 1px solid rgba(167,139,250,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: #a78bfa; color: #120b26; font-weight: bold; border-color: #a78bfa; }

.file-field { padding: 8px; font-size: 13px; }

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

/* ── 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; }
#reportModal textarea { margin: 12px 0 14px; text-align: left; }

/* ── 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, #1a1430, #0d0a1a);
  padding: 24px;
  text-align: center;
}
.gate-logo { width: 110px; height: auto; filter: drop-shadow(0 0 18px rgba(167,139,250,0.4)); }
.gate-feed-logo { width: 220px; max-width: 70vw; height: auto; filter: drop-shadow(0 0 18px rgba(167,139,250,0.4)); }

/* ── 18+ gate (boven de login gate) ─────────────────────── */
.age-gate { z-index: 10001; }
.age-emoji { font-size: 56px; line-height: 1; filter: drop-shadow(0 0 18px rgba(231,76,60,0.4)); }
.age-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.age-btns .auth-btn { margin-top: 0; }

/* ── gepinde post (admin) ───────────────────────────────── */
.post-card--pinned {
  border-color: #f1c40f;
  box-shadow: 0 0 14px rgba(241,196,15,0.25);
}
.pin-pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #f1c40f;
  color: #f1c40f;
  background: rgba(241,196,15,0.12);
}
.gate-title { color: #a78bfa; 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(167,139,250,0.6); font-size: 13px; text-decoration: none; margin-top: 10px; }
.gate-back:hover { color: #a78bfa; }

/* ============================================================
   ACCOUNTS — auth.js injected UI, violet theme.
   (Same classes as the games/BBBankje; accent swapped to #a78bfa.)
   ============================================================ */
.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, #a78bfa, #8b6bea, #6d4fd8);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  box-shadow: 0px 4px 0px #3d2b80;
}
.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: #a78bfa; text-align: center; margin: 0 0 14px; }
.auth-h3 { color: #a78bfa; font-size: 15px; margin: 16px 0 8px; }
.auth-link { display: inline-block; margin-top: 10px; color: #a78bfa; 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: #a78bfa; color: #120b26; font-weight: bold; }

.auth-field {
  width: 100%; box-sizing: border-box; padding: 11px; margin: 6px 0;
  border-radius: 8px; border: 1px solid #a78bfa; 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,#c4b0fc,#8b6bea); color: #120b26; box-shadow: 0 4px #4c3799; }
.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,#a78bfa,#8b6bea); 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: #a78bfa; }

/* ── 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: #a78bfa; color: #120b26; 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: #a78bfa; 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: #a78bfa; }
.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: #a78bfa; color: #120b26; 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: #a78bfa; display: inline-block; }
.friend-empty { color: #888; font-size: 14px; text-align: center; }

/* ── 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; }
  .feed-wrap { padding-top: 118px; }
  .modal-content { padding: 22px; }
}
