/* --- ADS BLOCKER POPUP STANDALONE STYLES --- */
:root {
  /* Colors - Light Mode */
  --seeblock-bg: #ffffff;
  --seeblock-shadow: rgba(0, 0, 0, 0.15);
  --seeblock-border: #dc3545; /* Red warning border */
  --seeblock-accent: #dc3545; /* Red accent */
  --seeblock-icon-bg: rgba(220, 53, 69, 0.1);
  --seeblock-text-main: #6c757d;
  --seeblock-text-header: #212529;

  /* Button Colors */
  --seeblock-btn-bg: #f8f9fa;
  --seeblock-btn-text: #212529;
  --seeblock-btn-border: #dc3545;
  --seeblock-btn-hover-bg: #dc3545;
  --seeblock-btn-hover-text: #ffffff;
  --seeblock-secondary-link: #6c757d;
}

body.dark-mode {
  /* Colors - Dark Mode */
  --seeblock-bg: #1e2124;
  --seeblock-shadow: rgba(0, 0, 0, 0.5);
  --seeblock-border: #dc3545;
  --seeblock-text-main: #adb5bd;
  --seeblock-text-header: #ffffff;

  --seeblock-btn-bg: #2d2f31;
  --seeblock-btn-text: #ffffff;
  --seeblock-secondary-link: #adb5bd;
}

/* 1. Positioning & Overlay Logic */
.seeblock-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 10001; /* Higher than standard notifications */
  /* width: 380px; */
  width: 90%;
  /* width: 520px; */
  max-width: 520px;
  margin-left: 4px;
  margin-right: 4px;
  background-color: var(--seeblock-bg);
  border: 1px solid var(--seeblock-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 15px 50px var(--seeblock-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  visibility: visible;
}

.seeblock-popup.hidden {
  transform: translate(-50%, -40%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 2. Content Layout */
.seeblock-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seeblock-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.seeblock-icon-wrapper {
  /* width: 55px; */
  width: 48px;
  height: 48px;
  background: var(--seeblock-icon-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.seeblock-icon-color { color: var(--seeblock-accent); }

.seeblock-text-content { flex: 1; }

.seeblock-title {
  color: var(--seeblock-text-header);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.seeblock-message {
  color: var(--seeblock-text-main);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

/* 3. Buttons & Actions */
.seeblock-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.seeblock-btn-primary {
  background: var(--seeblock-btn-bg);
  color: var(--seeblock-btn-text) !important;
  border: 1px solid var(--seeblock-btn-border);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.seeblock-btn-primary:hover {
  background: var(--seeblock-btn-hover-bg);
  color: var(--seeblock-btn-hover-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.seeblock-btn-content { display: flex; align-items: center; gap: 10px; }
.seeblock-btn-label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.seeblock-label-small { font-size: 0.65rem; opacity: 0.8; }
.seeblock-label-main { font-size: 0.9rem; font-weight: 700; }

.seeblock-btn-secondary {
  background: transparent;
  border: none;
  color: var(--seeblock-secondary-link);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px;
}

.seeblock-btn-secondary:hover {
  text-decoration: underline;
  color: var(--seeblock-text-header);
}

.seeblock-close-x {
  background: none;
  border: none;
  color: var(--seeblock-text-main);
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.seeblock-close-x:hover { opacity: 1; }

/* Responsive */
@media (max-width: 480px) {
  .seeblock-popup {
    width: 90%;
    padding: 20px;
  }
  .seeblock-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .seeblock-btn-primary { text-align: center; }
}


/* Apply to both to ensure PC browsers (Chrome/Edge/Firefox) comply */
html.seeblock-popup-bg,
body.seeblock-popup-bg {
  overflow: hidden !important;
  /* height: 100% !important; */
  height: 100vh !important;
  position: relative;
  /* Prevents the page from shifting when scrollbar vanishes */
  padding-right: var(--scrollbar-width, 15px);
}

/* 1. The Overlay Base */
/* This creates the overlay on the body itself */
body.seeblock-popup-bg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998; /* Just below the popup (9999) */
  animation: fadeIn 0.3s ease forwards;

  /* stop the background scrolling */
  overflow: hidden;

  touch-action: none; /* Disables touch scrolling */
  -ms-touch-action: none;

  /* Optional: prevents "layout shift" if the scrollbar disappears */
  padding-right: 15px;
}

body.dark-mode.seeblock-popup-bg::before {
  background-color: rgba(0, 0, 0, 0.75);
}
