/* ===================================================
   STACKMARKET - HIDE.HTML POPUP INTEGRATION STYLES
   iframe-based overlay — no CSS conflict with StackMarket
   =================================================== */

/* Full-screen overlay backdrop */
.hide-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999990;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popup-fade-in 0.3s ease;
}

@keyframes popup-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Container holding the iframe */
.hide-popup-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The iframe itself — full viewport */
.hide-popup-iframe {
  width: 100vw;
  height: 100vh;
  border: none;
  display: block;
  background: #000;
}

/* Close button — always on top, top-right corner.
   Hidden automatically when browser enters true fullscreen
   (the cp-in-fullscreen class is added to <html> by our JS) */




/* Trigger button in the nav header */
.hide-popup-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #c0392b, #922b21);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.4);
  animation: alert-pulse 2s ease-in-out infinite;
}

.hide-popup-trigger-btn:hover {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(192, 57, 43, 0.4); }
  50%       { box-shadow: 0 2px 14px rgba(231, 76, 60, 0.7); }
}

/* Closing animation */
.hide-popup-overlay.closing {
  animation: popup-fade-out 0.3s ease forwards;
}

@keyframes popup-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── ESC HOLD TIMER PILL ──────────────────────────────────────────
   Styled via inline JS (z-index 2147483647 so it beats everything)
   Extra glow animation applied here via ID selector             */
#smEscTimerPill {
  animation: esc-pill-glow 1s ease-in-out infinite alternate;
}

@keyframes esc-pill-glow {
  from { box-shadow: 0 0 20px rgba(255, 68, 68, 0.5); }
  to   { box-shadow: 0 0 50px rgba(255, 68, 68, 0.9), 0 0 80px rgba(255, 100, 0, 0.4); }
}

/* Force cursor hidden site-wide when in fullscreen lock */
html.cp-in-fullscreen,
html.cp-in-fullscreen * {
  cursor: none !important;
}

