/* Advanced Ranking Algorithms - Sngine staging prompt fix
 * The core Sngine heartbeat may reveal .js_view-staging-posts inline.
 * This addon deliberately keeps the feed refresh/polling behavior intact
 * while suppressing the "View X New Posts" prompt in the UI.
 */
.posts-staging-btn.js_view-staging-posts,
.js_view-staging-posts {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.js_posts_stream_staging {
  display: none !important;
  visibility: hidden !important;
}


/* Full workspace mode: preserve Sngine's required card/card-body structure
 * while expanding the addon to the full available admin workspace. */
.fr-ara-workspace-card {
  width: calc(100% + 48px) !important;
  max-width: none !important;
  margin-left: -24px !important;
  margin-right: -24px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.fr-ara-workspace-card > .card-header {
  border-radius: 18px 18px 0 0 !important;
}
.fr-ara-workspace-body {
  width: 100% !important;
  max-width: none !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.fr-ara-workspace-body > .fr-modern-page,
.fr-ara-workspace-body .feedrank-page-hero {
  width: 100%;
  max-width: none;
}
@media (max-width: 991px) {
  .fr-ara-workspace-card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .fr-ara-workspace-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


.fr-ara-header { display:flex !important; align-items:center; justify-content:space-between; gap:12px; }
.fr-ara-header-title { display:flex; align-items:center; min-width:0; font-weight:600; }
.fr-ara-fullscreen-toggle { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; border:1px solid rgba(0,0,0,.10) !important; background:#fff !important; }
.fr-ara-fullscreen-toggle:hover { box-shadow:0 3px 10px rgba(0,0,0,.08); }
.fr-ara-fullscreen-open { overflow:hidden !important; }
@media (max-width: 767px) {
  .fr-ara-toggle-label { display:none; }
  .fr-ara-fullscreen-toggle { width:36px; height:36px; justify-content:center; padding:0; }
}

/* Full-screen Advanced Ranking workspace: CSS-only and safe for Sngine AJAX templates. */
.fr-ara-workspace-card[data-fr-ara-fullscreen="1"] {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow: hidden !important;
}
.fr-ara-workspace-card[data-fr-ara-fullscreen="1"] > .card-header {
  position: relative !important;
  z-index: 2 !important;
  min-height: 64px;
  border-radius: 0 !important;
  background: #fff !important;
}
.fr-ara-workspace-card[data-fr-ara-fullscreen="1"] > .fr-ara-workspace-body {
  width: 100% !important;
  max-width: none !important;
  height: calc(100vh - 64px) !important;
  max-height: calc(100vh - 64px) !important;
  box-sizing: border-box !important;
  padding: 24px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
}
.fr-ara-workspace-card[data-fr-ara-fullscreen="1"] .feedrank-page-hero,
.fr-ara-workspace-card[data-fr-ara-fullscreen="1"] .fr-modern-page {
  width: 100% !important;
  max-width: none !important;
}
@media (max-width: 767px) {
  .fr-ara-workspace-card[data-fr-ara-fullscreen="1"] > .card-header { min-height: 56px; }
  .fr-ara-workspace-card[data-fr-ara-fullscreen="1"] > .fr-ara-workspace-body {
    height: calc(100vh - 56px) !important;
    max-height: calc(100vh - 56px) !important;
    padding: 12px !important;
  }
}
