/* rg-cosmetic.css v2 — Additive cosmetic enhancements */
/* DOES NOT override any existing styles */

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0e0e14;
}
::-webkit-scrollbar-thumb {
  background: #2a2a3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a4f;
}
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #2a2a3a #0e0e14;
}

/* ── Custom Text Selection ── */
::selection {
  background: rgba(124, 58, 237, 0.35);
  color: #ffffff;
}
::-moz-selection {
  background: rgba(124, 58, 237, 0.35);
  color: #ffffff;
}

/* ── Scroll-to-Top Button ── */
.rg-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1a1a24;
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #a5b4fc;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.rg-scroll-top.rg-scroll-top--visible {
  display: flex;
}
.rg-scroll-top:hover {
  background: #252535;
  border-color: rgba(167, 139, 250, 0.4);
}
.rg-scroll-top svg {
  width: 18px;
  height: 18px;
}

/* ── Reading Progress Bar ── */
.rg-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  z-index: 99999;
  transition: width 0.1s linear;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ── Thread/Forum Row Hover ── */
.node--forum .node-body:hover,
.structItem--thread:hover {
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

/* ── Online Indicator Dot ── */
.rg-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #0e0e14;
}

/* ── Page Content Entrance ── */
.p-body-content {
  animation: rgFadeUp 0.3s ease-out;
}
@keyframes rgFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Smooth Focus Outlines ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Smooth Image Hover in Trainer/Game Cards ── */
.rg-trainer-card img,
.rg-game-card img {
  transition: transform 0.25s ease;
}
.rg-trainer-card:hover img,
.rg-game-card:hover img {
  transform: scale(1.03);
}

/* ── Mobile: hide scroll-to-top on very small screens ── */
@media (max-width: 480px) {
  .rg-scroll-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

/* Hide XF native scroll-to-top button - replaced by custom RG one */
.button.button--scroll { display: none; }
