html, body {
  height: 100%;
  margin: 0;
  background-color: #0E0E10;
  color: #f5f5f5;

  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
}

/* =========================================================
   GLOBAL LAYOUT (ALL PAGES)
   - Pages should scroll normally site-wide.
   - Footer should sit after content (not clipped).
   ========================================================= */

.gh-page-shell {
  min-height: 100vh;        /* normal site behavior */
  display: flex;
  flex-direction: column;
}

.gh-main-content {
  flex: 1 1 auto;           /* pushes footer down on short pages */
}

.gh-footer {
  flex-shrink: 0;
}


/* ===============================
   GLOBAL ALERTS / DJANGO MESSAGES
   =============================== */

.alert {
  background: rgba(255, 223, 0, 0.08);
  border: 1px solid rgba(255, 223, 0, 0.25);
  color: #fff;

  font-size: 0.9rem;
  border-radius: 10px;

  padding: 12px 16px;
  margin-bottom: 14px;

  box-shadow: 0 0 18px rgba(255, 223, 0, 0.06);
}



/* ============================================================
   Gaming Hub – Bootstrap Warning Theme Override
   Brand Warning Color: #FFDF00
   ============================================================ */

:root {
  --bs-warning: #FFDF00;
  --bs-warning-rgb: 255, 223, 0;

  --bs-warning-text-emphasis: #c9b200;   /* slightly darker for text */
  --bs-warning-bg-subtle: rgba(255, 223, 0, 0.15);
  --bs-warning-border-subtle: rgba(255, 223, 0, 0.4);
}

/* Buttons */
.btn-warning {
  --bs-btn-color: #0f0f12; /* dark text for contrast */
  --bs-btn-bg: #FFDF00;
  --bs-btn-border-color: #FFDF00;

  --bs-btn-hover-color: #0f0f12;
  --bs-btn-hover-bg: #f0d200;
  --bs-btn-hover-border-color: #f0d200;

  --bs-btn-focus-shadow-rgb: 255, 223, 0;

  --bs-btn-active-color: #0f0f12;
  --bs-btn-active-bg: #e6c800;
  --bs-btn-active-border-color: #e6c800;
}


.btn-outline-warning {
  --bs-btn-color: #FFDF00;
  --bs-btn-border-color: #FFDF00;

  --bs-btn-hover-color: #0f0f12;
  --bs-btn-hover-bg: #FFDF00;
  --bs-btn-hover-border-color: #FFDF00;

  --bs-btn-focus-shadow-rgb: 255, 223, 0;

  --bs-btn-active-color: #0f0f12;
  --bs-btn-active-bg: #e6c800;
  --bs-btn-active-border-color: #e6c800;
}

/* Disabled state */
.btn-outline-warning:disabled,
.btn-outline-warning.disabled {
  color: rgba(255, 223, 0, 0.5);
  border-color: rgba(255, 223, 0, 0.5);
  background-color: transparent;
}

/* Alerts */
.alert-warning {
  --bs-alert-color: #0f0f12;
  --bs-alert-bg: rgba(255, 223, 0, 0.15);
  --bs-alert-border-color: rgba(255, 223, 0, 0.4);
}

/* Badges */
.badge.bg-warning {
  color: #0f0f12;
}

/* Text & links */
.text-warning,
.link-warning {
  color: #FFDF00 !important;
}

.link-warning:hover {
  color: #f0d200 !important;
}

/* Borders */
.border-warning {
  border-color: #FFDF00 !important;
}






/* =========================================================
   HOME-ONLY BEHAVIOR
   - Only apply this on pages that set body_class = no-page-scroll.
   - Prevent page scroll; inner feed container handles scrolling.
   ========================================================= */

.no-page-scroll {
  height: 100vh;            /* lock viewport */
  overflow: hidden;         /* disable page scroll ONLY on home */
}

.no-page-scroll .gh-page-shell {
  height: 100vh;            /* lock shell to viewport */
}

.no-page-scroll .gh-main-content {
  overflow: hidden;         /* keep home page from scrolling */
}

/* =========================================================
   FORCE DARK MODALS (unchanged)
   ========================================================= */

.gh-modal-dark .modal-content {
  background-color: #16171B;
  color: #f5f5f5;
  border: 1px solid #2a2b31;
  border-radius: 16px;
}

.gh-modal-dark .modal-header,
.gh-modal-dark .modal-footer {
  border-color: #2a2b31;
}

.gh-modal-dark .modal-title {
  color: #f5f5f5;
}

.gh-modal-dark .modal-body {
  color: rgba(245, 245, 245, 0.85);
}

.gh-modal-dark .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.8;
}

.gh-modal-dark .btn-close:hover {
  opacity: 1;
}

/* =========================================================
   MISC (unchanged)
   ========================================================= */

.new-post {
  color: #ffdf00;
  box-shadow: 0 10px 28px rgba(255,223,0,.08);
}

.new-post:hover {
  color: #000000;
  background-color: #ffdf00;
  border-color: #ffdf00;
}

.gh-form-error {
  color: #FFDF00;
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
}

.team-post-group-heading {
  color: #e7e7e7;
  font-weight: 800;
  margin: 0 0 18px 0;
}

/* Global mention styling */
.mention {
  background: linear-gradient(
    90deg,
    rgba(255, 223, 0, 0.15),
    rgba(255, 223, 0, 0.02)
  );
  color: #FFDF00;
  padding: 0 6px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.mention:hover {
  text-decoration: underline;
}

.mention-dropdown {
  background: #0f0f0f;
  border: 1px solid rgba(218, 218, 218, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);

  width: max-content;
  min-width: 160px;
  max-width: 260px;

  max-height: 220px;
  overflow-y: auto;

  padding: 4px;
}

.mention-item {
  display: block;
  width: 100%;
  white-space: nowrap;

  background: transparent;
  border: 0;
  text-align: left;

  padding: 6px 10px;
  border-radius: 8px;

  cursor: pointer;
}

.mention-item:hover,
.mention-item.active {
  background: linear-gradient(
    90deg,
    rgba(255, 223, 0, 0.15),
    rgba(255, 223, 0, 0.02)
  );
}

.mention-item__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.mention-dropdown::-webkit-scrollbar {
  width: 6px;
}

.mention-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 223, 0, 0.3);
  border-radius: 6px;
}

/* ===== GLOBAL SCROLLBAR STYLE ===== */

::-webkit-scrollbar {
  width: 34px;
}

::-webkit-scrollbar-track {
  background: #0b0b0f;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.9);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffdf00, #f3b700);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.18) 1px, transparent 0),
    radial-gradient(circle at 16px 1px, rgba(0,0,0,0.18) 1px, transparent 0);
  background-size: 18px 18px;

  border-radius: 999px;
  border: 2px solid #050507;

  box-shadow:
    0 0 6px rgba(255, 0, 0, 0.9),
    0 0 12px rgba(255, 223, 0, 0.7);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe949, #ffdf00);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.22) 1px, transparent 0),
    radial-gradient(circle at 16px 1px, rgba(0,0,0,0.22) 1px, transparent 0);

  box-shadow:
    0 0 10px rgba(255, 239, 150, 1),
    0 0 18px rgba(255, 223, 0, 0.9);
}

body {
  scrollbar-gutter: stable;
}

* {
  scrollbar-width: thick;
  scrollbar-color: #ffdf00 #313131;
}


@media (max-width: 767.98px) {
  body[data-auth="true"] .gh-page-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}
