/*
 * ABGenerator button styles (clean build)
 * Override any colour per site by redefining the variables, e.g. in Customizer > Additional CSS:
 *   :root { --abg-bg: #052847; --abg-bg-hover: #0a3a66; }
 */

:root {
  --abg-bg: #111827;          /* button background */
  --abg-bg-hover: #1f2937;    /* hover background */
  --abg-text: #ffffff;        /* button text */
  --abg-accent: #f59e0b;      /* focus ring and link underline */
  --abg-radius: 999px;        /* pill shape; use 8px for rounded rectangle */
  --abg-max-width: 320px;
}

/* Wrapper paragraph from [Azonasinid] */
p.no-margin {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25em;
}

/* Button style: [Azonasinid asinid="..."] and [pazon class="amz-button"] */
a.amz-button,
a.amz-button:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  max-width: var(--abg-max-width);
  box-sizing: border-box;
  padding: 12px 20px;
  border: 1px solid var(--abg-bg);
  border-radius: var(--abg-radius);
  background: var(--abg-bg) !important;
  color: var(--abg-text) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

a.amz-button::after {
  content: "\2192";           /* right arrow */
  font-weight: 400;
  transition: transform 0.15s ease;
}

a.amz-button:hover {
  background: var(--abg-bg-hover) !important;
  color: var(--abg-text) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

a.amz-button:hover::after {
  transform: translateX(3px);
}

a.amz-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

a.amz-button:focus-visible {
  outline: 3px solid var(--abg-accent);
  outline-offset: 3px;
}

/* Text link style: [Azonasinid asinid="..." type="link"] and [pazon asinid="..."]text[/pazon] */
a.amz-link,
a.amz-link:visited,
a.pazon-link,
a.pazon-link:visited {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--abg-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a.amz-link:hover,
a.pazon-link:hover {
  text-decoration-color: currentColor;
}

a.amz-link:focus-visible,
a.pazon-link:focus-visible {
  outline: 2px solid var(--abg-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  a.amz-button,
  a.amz-button::after {
    transition: none;
  }
  a.amz-button:hover,
  a.amz-button:hover::after {
    transform: none;
  }
}
