/* ─────────────────────────────────────────────────
   AdBlock Detector Pro — Frontend styles (Cool Dark Theme)
   ───────────────────────────────────────────────── */

/* Hidden bait element used for detection */
#abd-bait,
.ad-banner,
.adsbox {
  display: block !important;
  height: 1px !important;
  width: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Overlay backdrop */
#abd-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: rgba(2, 6, 23, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  animation: abdFadeIn .3s ease !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Modal card (Cool Dark Theme) */
#abd-modal {
  position: relative !important;
  z-index: 2147483647 !important;
  max-width: 500px !important;
  width: 100% !important;
  background-color: rgb(15, 23, 42) !important;
  color: #f1f5f9 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  padding: 1.5rem !important;
  text-align: left !important;
  animation: abdSlideUp .35s cubic-bezier(.22,.61,.36,1) !important;
  box-sizing: border-box !important;
  display: block !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Top Right Close Button */
#abd-top-close {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  background: transparent !important;
  border: none !important;
  color: rgb(148, 163, 184) !important;
  cursor: pointer !important;
  padding: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0.5rem !important;
  transition: background-color .2s, color .2s !important;
  z-index: 10 !important;
}
#abd-top-close:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}
#abd-top-close svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

/* Icon container */
.abd-icon-container {
  margin-bottom: 1.25rem !important;
  display: inline-flex !important;
  height: 3rem !important;
  width: 3rem !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0.85rem !important;
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: rgb(252, 211, 77) !important;
}

.abd-icon-container svg {
  height: 1.75rem !important;
  width: 1.75rem !important;
}

/* Title */
#abd-modal h2 {
  font-family: Inter, system-ui, ui-sans-serif, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1.35rem !important;
  line-height: 1.75rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 0.75rem !important;
}

/* Message text */
#abd-modal .abd-msg {
  font-family: Inter, system-ui, ui-sans-serif, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.925rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: rgb(203, 213, 225) !important;
  margin: 0 0 1.5rem !important;
  white-space: pre-line !important;
}

/* Footer buttons container */
.abd-modal-footer {
  margin-top: 1.5rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

/* Main CTA button (Reload) */
#abd-reload-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  border-radius: 0.6rem !important;
  background-color: rgb(245, 158, 11) !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  font-weight: 600 !important;
  color: rgb(2, 6, 23) !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color .2s !important;
}
#abd-reload-btn:hover {
  background-color: rgb(251, 191, 36) !important;
}

/* Secondary button (Close) */
#abd-close-btn {
  border-radius: 0.6rem !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color .2s !important;
}
#abd-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Animations */
@keyframes abdFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes abdSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #abd-modal {
    padding: 1.25rem !important;
  }
  #abd-modal h2 { font-size: 1.15rem !important; }
  #abd-reload-btn, #abd-close-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}
