/* =========================================================
   Affiliate Link Booster — Frontend Styles
   ========================================================= */

/* ── Reset helpers ── */
.alb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none !important;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  padding: 14px 26px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
}
.alb-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.alb-btn:active { transform: scale(.97); }

/* ── Scroll Progress Bar ── */
#alb-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #e8450a, #ff8c42);
  z-index: 99999;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(232,69,10,.55);
}

/* ── Inline Banner ── */
.alb-inline-banner {
  margin: 32px 0;
  border-radius: 18px;
  border: 1.5px solid #f5c397;
  overflow: hidden;
  animation: albFadeIn .5s ease both;
}
.alb-inline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  flex-wrap: wrap;
}
.alb-inline-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 180px;
}
.alb-inline-headline {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.alb-inline-sub {
  font-size: 13px;
  color: #555;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.4;
}
.alb-inline-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.alb-inline-btn { font-size: 14px; padding: 12px 22px; }
.alb-cta-sub {
  font-size: 11px;
  color: #888;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
}

/* ── Shortcode wrapper ── */
.alb-sc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
}
.alb-sc-btn { font-size: 16px; padding: 15px 32px; }

/* ── Floating Button ── */
#alb-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  transform: translateY(130px);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
#alb-float.alb-visible {
  transform: translateY(0);
}
#alb-float .alb-btn {
  padding: 14px 22px;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}

/* Pulse ring */
#alb-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50px;
  border: 2px solid rgba(232,69,10,.4);
  animation: albPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes albPulse {
  0%   { transform: scale(1);    opacity: .8; }
  70%  { transform: scale(1.13); opacity: 0; }
  100% { transform: scale(1);    opacity: 0; }
}

/* ── Scroll-triggered bottom bar ── */
#alb-scroll-prompt {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a1a;
  color: #fff;
  z-index: 9997;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
#alb-scroll-prompt.alb-show {
  transform: translateY(0);
}
.alb-scroll-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  min-width: 160px;
}
.alb-scroll-cta-btn {
  padding: 10px 20px;
  font-size: 13px;
}
#alb-scroll-dismiss {
  background: none; border: none;
  color: rgba(255,255,255,.6);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
#alb-scroll-dismiss:hover { color: #fff; }

/* ── Exit-Intent Popup ── */
#alb-exit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#alb-exit-overlay.alb-show {
  display: flex;
  animation: albFadeIn .22s ease;
}
#alb-exit-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 44px 38px 36px;
  text-align: center;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
  animation: albSlideUp .32s cubic-bezier(.34,1.56,.64,1);
}
#alb-exit-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #e8450a, #ff8c42);
}
.alb-exit-badge {
  display: inline-block;
  background: linear-gradient(90deg, #e8450a, #ff8c42);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.alb-modal-headline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 10px;
}
.alb-modal-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #555;
  margin: 0 0 20px;
  line-height: 1.6;
}
.alb-urgency-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #e8450a;
  font-weight: 600;
  margin: 0 0 20px;
}

/* Countdown */
#alb-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff3ee;
  border: 1.5px solid #f5c397;
  border-radius: 10px;
  padding: 8px 18px;
  margin-bottom: 18px;
}
#alb-countdown-num {
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 800;
  color: #e8450a;
}
.alb-countdown-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #888;
}

#alb-exit-cta {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px 24px;
  margin-bottom: 4px;
}
.alb-modal-dismiss {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #bbb;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
}
.alb-modal-dismiss:hover { color: #777; }
#alb-exit-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  font-size: 22px;
  cursor: pointer;
  color: #ccc;
  line-height: 1;
}
#alb-exit-close:hover { color: #999; }

/* ── Animations ── */
@keyframes albFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes albSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .alb-inline-inner    { flex-direction: column; align-items: flex-start; }
  .alb-inline-cta      { width: 100%; }
  .alb-inline-btn      { width: 100%; }
  #alb-float           { right: 16px; bottom: 20px; }
  #alb-float .alb-btn .alb-btn-label { display: none; }
  #alb-float .alb-btn  { padding: 16px; border-radius: 50%; width: 56px; height: 56px; }
  #alb-exit-modal      { padding: 32px 22px 26px; }
  .alb-modal-headline  { font-size: 19px; }
  #alb-scroll-prompt   { flex-direction: column; align-items: flex-start; gap: 10px; }
  .alb-scroll-cta-btn  { width: 100%; }
}
