/* ============================================
   RG Premium CSS v1
   Comprehensive premium polish for all pages
   ============================================ */

/* -------------------------------------------
   1. GLOBAL TRANSITIONS & HOVER EFFECTS
   ------------------------------------------- */
a,
button,
.button,
.button--primary,
.button--link,
input[type="submit"],
.menu-linkRow,
.node-title a,
.node-description a,
.structItem-title a,
.p-navgroup-link,
.tabs-tab {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Card hover lift for interactive cards */
.node--forum .node-body,
.rg-trending-card,
.structItem,
.block--messages .message,
.rg-game-card,
.rg-trainer-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.node--forum .node-body:hover,
.rg-trending-card:hover,
.rg-game-card:hover,
.rg-trainer-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Subtle link hover - slightly brighter */
.p-body a:hover,
.contentRow-title a:hover,
.node-title a:hover {
  opacity: 0.9;
}

/* -------------------------------------------
   2. CONSISTENT CARD DESIGN
   ------------------------------------------- */

/* XF blocks - unified card look */
.block,
.block--category {
  border-radius: 10px;
  overflow: hidden;
}

.block-header {
  letter-spacing: 0.03em;
  font-weight: 600;
}

/* XF sidebar blocks - premium dark cards */
.p-body-sidebar .block {
  background: rgba(30,30,35,0.9);
  border: 1px solid rgba(165,180,252,0.08);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.p-body-sidebar .block-header {
  background: transparent;
  border-bottom: 1px solid rgba(165,180,252,0.08);
  padding: 14px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  font-weight: 700;
}

.p-body-sidebar .block-body {
  padding: 12px 16px;
}

/* Members Online widget polish */
.block--mow .block-body {
  padding: 12px 16px;
}

/* -------------------------------------------
   3. FORUM STATISTICS BOX - PREMIUM
   ------------------------------------------- */
.p-body-main .block--forum-statistics,
.block[data-widget-key="forum_statistics"] {
  background: rgba(30,30,35,0.9);
  border: 1px solid rgba(165,180,252,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.block[data-widget-key="forum_statistics"] .block-header {
  color: #a5b4fc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: transparent;
  border-bottom: 1px solid rgba(165,180,252,0.08);
}

.pairs--justified dt {
  color: rgba(255,255,255,0.6);
}

.pairs--justified dd {
  color: #ffffff;
  font-weight: 600;
}

/* -------------------------------------------
   4. BUTTON CONSISTENCY
   ------------------------------------------- */

/* Primary buttons - clean filled style */
.button--primary,
.button.button--primary {
  background: #7c3aed;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  text-transform: none;
}

.button--primary:hover,
.button.button--primary:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

.button--primary:active {
  transform: translateY(0);
}

/* Ghost/outline buttons */
.button--link {
  border-radius: 6px;
  padding: 6px 12px;
}

.button--link:hover {
  background: rgba(165,180,252,0.08);
}

/* -------------------------------------------
   5. FORM INPUT POLISH
   ------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select,
.input {
  background: rgba(20,20,25,0.8);
  border: 1px solid rgba(165,180,252,0.12);
  border-radius: 8px;
  color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 10px 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
  outline: none;
}

/* Search bar fix - remove green spinner look */
.p-header .p-header-content .p-header-searchBar input {
  background: rgba(20,20,25,0.8);
  border: 1px solid rgba(165,180,252,0.12);
  border-radius: 8px;
}

/* -------------------------------------------
   6. TYPOGRAPHY REFINEMENT
   ------------------------------------------- */

/* Section headers - consistent uppercase treatment */
.block-minorHeader,
.block-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* Thread titles - clean weight */
.structItem-title a {
  font-weight: 600;
}

/* Page titles */
.p-title-value {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* -------------------------------------------
   7. THREAD PAGE POLISH
   ------------------------------------------- */

/* Post message blocks */
.message--post {
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(165,180,252,0.06);
  overflow: hidden;
}

/* User info sidebar in posts - tighter */
.message-user {
  padding: 16px 12px;
}

.message-userDetails {
  margin-top: 8px;
}

.message-userName {
  font-weight: 700;
}

.message-userTitle {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.message-userExtras dt {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.message-userExtras dd {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
}

/* Post body spacing */
.message-body {
  padding: 16px 20px;
}

/* Post footer actions */
.message-footer {
  padding: 8px 20px;
  border-top: 1px solid rgba(165,180,252,0.06);
}

.message-actionBar a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.message-actionBar a:hover {
  color: #a5b4fc;
}

/* Share bar */
.shareButtons {
  border-bottom: 1px solid rgba(165,180,252,0.06);
  padding-bottom: 12px;
  margin-bottom: 0;
}

/* Page navigation */
.pageNav-page a,
.pageNav-page.pageNav-page--current {
  border-radius: 6px;
  min-width: 34px;
  height: 34px;
  line-height: 34px;
}

.pageNav-page.pageNav-page--current {
  background: #7c3aed;
  font-weight: 700;
}

/* -------------------------------------------
   8. LOGIN & REGISTER PAGES - PREMIUM
   ------------------------------------------- */

/* Center and contain the forms */
.p-body-main .block--fill {
  max-width: 520px;
  margin: 40px auto;
  background: rgba(30,30,35,0.95);
  border: 1px solid rgba(165,180,252,0.1);
  border-radius: 14px;
  overflow: hidden;
}

.p-body-main .block--fill .block-header {
  display: none;
}

/* Better form row styling */
.formRow {
  padding: 12px 24px;
  border-bottom: none;
}

.formRow-label {
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

.formRow .formRow-hint {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
}

/* Register page - wider form */
.p-body-main .block--fill:has(.formRow-label:first-of-type) {
  max-width: 580px;
}

/* -------------------------------------------
   9. XF HELP PAGES POLISH
   ------------------------------------------- */
.p-body-main .helpPage-list {
  background: rgba(30,30,35,0.9);
  border: 1px solid rgba(165,180,252,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.helpPage-list a {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(165,180,252,0.06);
  display: block;
}

.helpPage-list a:last-child {
  border-bottom: none;
}

.helpPage-list a:hover {
  background: rgba(165,180,252,0.05);
}

/* -------------------------------------------
   10. MEMBERS PAGE POLISH
   ------------------------------------------- */
.memberList-member {
  border-radius: 10px;
  border: 1px solid rgba(165,180,252,0.06);
  margin-bottom: 8px;
  overflow: hidden;
}

.memberList-member:hover {
  border-color: rgba(165,180,252,0.12);
  background: rgba(165,180,252,0.03);
}

/* -------------------------------------------
   11. FORUMS PAGE SPECIFIC
   ------------------------------------------- */

/* Hide Member of the Week XF sidebar widget */
.p-body-sidebar .rg-spotlight-card {
  display: none;
}

/* Hide redundant Sign In button in p-header when sidebar has login */
.p-header .p-header-content .p-account--notLoggedIn {
  display: none;
}

/* Forum search bar - cleaner look */
.p-header-searchBar .input {
  background: rgba(20,20,25,0.6);
  border: 1px solid rgba(165,180,252,0.1);
  border-radius: 8px;
}

/* Trending Content widget polish */
.p-body-sidebar .block[data-widget-key="trending_content"] .contentRow {
  padding: 10px 0;
  border-bottom: 1px solid rgba(165,180,252,0.06);
}

.p-body-sidebar .block[data-widget-key="trending_content"] .contentRow:last-child {
  border-bottom: none;
}

/* Top Contributor bar - only show once (hide duplicate at bottom) */
.rg-top-contributor + .p-body-main .rg-top-contributor {
  display: none;
}

/* -------------------------------------------
   12. DASHBOARD FIXES
   ------------------------------------------- */

/* Remove dashed borders from dashboard cards */
.rg-dash .rg-wm-wrap {
  border: 1px solid rgba(165,180,252,0.08);
  border-style: solid;
  border-radius: 12px;
  background: rgba(30,30,35,0.9);
}

/* Dashboard greeting card - clean design */
.rg-dash-greeting,
.rg-greeting-card {
  border: 1px solid rgba(165,180,252,0.1);
  border-style: solid;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(30,30,35,0.95) 100%);
}

/* Activity feed entries */
.rg-activity-entry {
  padding: 12px 0;
  border-bottom: 1px solid rgba(165,180,252,0.06);
}

.rg-activity-entry:last-child {
  border-bottom: none;
}

/* Stat cards in dashboard */
.rg-stat-card {
  border: 1px solid rgba(165,180,252,0.08);
  border-radius: 10px;
  background: rgba(30,30,35,0.9);
  text-align: center;
  padding: 20px 12px;
}

.rg-stat-card .rg-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.rg-stat-card .rg-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* -------------------------------------------
   13. SCROLLBAR STYLING
   ------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(20,20,25,0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(165,180,252,0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(165,180,252,0.25);
}

/* -------------------------------------------
   14. BREADCRUMB & NAVIGATION POLISH
   ------------------------------------------- */
.p-breadcrumbs a {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.p-breadcrumbs a:hover {
  color: #a5b4fc;
}

/* Tab navigation - cleaner active state */
.tabs-tab.is-active {
  border-bottom-color: #7c3aed;
  color: #ffffff;
  font-weight: 600;
}

.tabs-tab {
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.tabs-tab:hover {
  color: rgba(255,255,255,0.8);
}

/* -------------------------------------------
   15. ALERT & NOTICE STYLING
   ------------------------------------------- */
.notices .notice {
  border-radius: 10px;
  border: 1px solid rgba(165,180,252,0.1);
  background: rgba(30,30,35,0.95);
}

/* -------------------------------------------
   16. TOOLTIP & OVERLAY POLISH
   ------------------------------------------- */
.tooltip {
  border-radius: 8px;
  background: rgba(20,20,25,0.95);
  border: 1px solid rgba(165,180,252,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.menu {
  border-radius: 10px;
  border: 1px solid rgba(165,180,252,0.1);
  background: rgba(25,25,30,0.98);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}

.menu-linkRow {
  padding: 10px 16px;
}

.menu-linkRow:hover {
  background: rgba(165,180,252,0.06);
}

/* -------------------------------------------
   17. POST REACTION & LIKE STYLING
   ------------------------------------------- */
.reactionsBar {
  border-radius: 6px;
  padding: 4px 10px;
  background: rgba(165,180,252,0.05);
  border: 1px solid rgba(165,180,252,0.06);
}

/* -------------------------------------------
   18. AVATAR POLISH
   ------------------------------------------- */
.avatar img,
.avatar--s img,
.avatar--m img,
.avatar--l img,
.avatar--xl img {
  border-radius: 50%;
}

/* -------------------------------------------
   19. PAGE TITLE AREA
   ------------------------------------------- */
.p-title {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(165,180,252,0.06);
}

/* -------------------------------------------
   20. FOOTER POLISH
   ------------------------------------------- */
.p-footer {
  border-top: 1px solid rgba(165,180,252,0.08);
}

/* -------------------------------------------
   21. SELECTION COLOR
   ------------------------------------------- */
::selection {
  background: rgba(124,58,237,0.4);
  color: #ffffff;
}

/* -------------------------------------------
   22. XF REACTION/TROPHY PAGES
   ------------------------------------------- */
.memberProfileBanner {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.memberHeader {
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(165,180,252,0.06);
  border-top: none;
}

/* -------------------------------------------
   23. CONVERSATION / INBOX PAGES
   ------------------------------------------- */
.structItem {
  border-bottom: 1px solid rgba(165,180,252,0.06);
  padding: 14px 0;
}

.structItem:hover {
  background: rgba(165,180,252,0.02);
}

/* -------------------------------------------
   24. WHATS NEW / LATEST ACTIVITY
   ------------------------------------------- */
.block--latestActivity .contentRow,
.block--latestPosts .contentRow,
.block--newProfilePosts .contentRow {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(165,180,252,0.06);
}

/* -------------------------------------------
   25. MOBILE SPECIFIC PREMIUM
   ------------------------------------------- */
@media (max-width: 768px) {
  .block,
  .block--category {
    border-radius: 8px;
  }
  
  .message--post {
    border-radius: 8px;
    margin-bottom: 8px;
  }
  
  .p-body-main .block--fill {
    max-width: 100%;
    margin: 16px auto;
    border-radius: 10px;
  }
  
  .formRow {
    padding: 10px 16px;
  }
}
