/*
 * push-notification.css — Bell button + toast styles.
 * Loaded on all pages via Ag_Assets.
 * Colors follow the burgundy theme palette (vars set by Ag_Colors).
 */

/* ========== BELL BUTTON — INLINE (article header) ========== */

.ag-push-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--burgundy, #6b1d1d);
  border-radius: var(--radius-full, 9999px);
  background: transparent;
  color: var(--burgundy, #6b1d1d);
  cursor: pointer;
  transition: background var(--transition-fast, 0.15s ease),
              color var(--transition-fast, 0.15s ease),
              transform var(--transition-fast, 0.15s ease),
              box-shadow var(--transition-fast, 0.15s ease);
  flex-shrink: 0;
  padding: 0;
}

.ag-push-bell svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: fill var(--transition-fast, 0.15s ease),
              stroke var(--transition-fast, 0.15s ease);
}

/* Outline bell icon (not subscribed) */
.ag-push-bell .icon-bell-outline {
  display: block;
}

.ag-push-bell .icon-bell-filled {
  display: none;
}

/* Filled bell icon (subscribed) */
.ag-push-bell--active .icon-bell-outline {
  display: none;
}

.ag-push-bell--active .icon-bell-filled {
  display: block;
}

/* Hover state */
.ag-push-bell:hover {
  background: var(--burgundy, #6b1d1d);
  color: #fff;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
  transform: translateY(-1px);
}

/* Active (subscribed) base state */
.ag-push-bell--active {
  background: var(--burgundy, #6b1d1d);
  color: #fff;
}

.ag-push-bell--active:hover {
  background: var(--burgundy-dark, #4a1212);
}

/* ========== BELL BUTTON — ARTICLE META ROW ========== */

.article-bell-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  gap: 8px;
}

.article-bell-label {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.82rem;
  color: var(--text-muted, #888);
}

/* ========== FOOTER CTA BUTTON ========== */

.push-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 22px;
  background: var(--burgundy, #6b1d1d);
  color: #fff;
  border: none;
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-sans, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast, 0.15s ease),
              transform var(--transition-fast, 0.15s ease);
}

.push-cta-btn:hover {
  background: var(--burgundy-dark, #4a1212);
  transform: translateY(-1px);
}

.push-cta-btn:active {
  transform: translateY(0);
}

/* ========== TOAST MESSAGES ========== */

.ag-push-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: var(--z-toast, 400);
  background: var(--burgundy-dark, #4a1212);
  color: #fff;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 12px 20px;
  border-radius: var(--radius, 6px);
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.1));
  max-width: min(90vw, 420px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ag-push-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ag-push-toast--success {
  background: #2d6a2d;
}

.ag-push-toast--error {
  background: #9b2020;
}

.ag-push-toast--info {
  background: var(--burgundy-dark, #4a1212);
}
