/* 2euros.org - Anti Adblock Wall */

:root {
  /* You can override these variables from your theme if needed */
  --twoeuros-aaw-overlay: rgba(15, 23, 42, 0.55);
  --twoeuros-aaw-card-bg: #ffffff;
  --twoeuros-aaw-text: #0f172a;
  --twoeuros-aaw-muted: #334155;
  --twoeuros-aaw-border: rgba(15, 23, 42, 0.12);
  --twoeuros-aaw-accent: #1d4ed8;
  --twoeuros-aaw-accent-hover: #1e40af;
}

.twoeuros-aaw-wall {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--twoeuros-aaw-overlay);
  padding: 24px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.twoeuros-aaw-wall.is-visible {
  display: flex;
  animation: twoeuros-aaw-fadein 160ms ease-out;
}

.twoeuros-aaw-box {
  max-width: 600px;
  width: 100%;
  background: var(--twoeuros-aaw-card-bg);
  color: var(--twoeuros-aaw-text);
  border-radius: 18px;
  padding: 26px;
  border: 1px solid var(--twoeuros-aaw-border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.twoeuros-aaw-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
}

.twoeuros-aaw-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.twoeuros-aaw-header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.twoeuros-aaw-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.twoeuros-aaw-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--twoeuros-aaw-muted);
  opacity: 0.95;
}

.twoeuros-aaw-message {
  margin: 0 0 16px;
  line-height: 1.45;
  color: var(--twoeuros-aaw-muted);
  white-space: pre-line; /* allow \n in the message for better formatting */
}

.twoeuros-aaw-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.twoeuros-aaw-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  transition: transform 90ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  user-select: none;
}

.twoeuros-aaw-btn:active {
  transform: translateY(1px);
}

.twoeuros-aaw-btn:focus {
  outline: none;
}

.twoeuros-aaw-btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.22);
}

.twoeuros-aaw-primary {
  background: var(--twoeuros-aaw-accent);
  color: #fff;
}

.twoeuros-aaw-primary:hover {
  background: var(--twoeuros-aaw-accent-hover);
}

.twoeuros-aaw-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--twoeuros-aaw-text);
  border: 1px solid var(--twoeuros-aaw-border);
}

.twoeuros-aaw-secondary:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* Discreet "continue anyway" action (soft mode) */
.twoeuros-aaw-close-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.twoeuros-aaw-tertiary {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(51, 65, 85, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
}

.twoeuros-aaw-tertiary:hover {
  opacity: 1;
}

.twoeuros-aaw-tertiary:focus-visible {
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.18);
  border-radius: 8px;
}

.twoeuros-aaw-noscript {
  margin-top: 14px;
  font-size: 13px;
  color: var(--twoeuros-aaw-muted);
}

/* Prevent interaction with page while wall is visible */
html.twoeuros-aaw-locked,
body.twoeuros-aaw-locked {
  overflow: hidden !important;
}

@keyframes twoeuros-aaw-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 520px) {
  .twoeuros-aaw-box {
    padding: 20px;
    border-radius: 16px;
  }
  .twoeuros-aaw-buttons {
    flex-direction: column;
  }
  .twoeuros-aaw-btn {
    width: 100%;
  }

  /* Keep the "continue anyway" link discreet on mobile too */
  .twoeuros-aaw-tertiary {
    width: auto;
  }

  .twoeuros-aaw-close-row {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twoeuros-aaw-wall.is-visible { animation: none; }
  .twoeuros-aaw-btn { transition: none; }
}
