/* ═══════════════════════════════════════════════════════════════════
   IrishHub — Support Buttons + Popup  (Patreon & Buy Me a Coffee)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Stacked buttons (bottom-right) ────────────────────────────── */
.support-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
}

.support-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

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

.support-btn-icon { font-size: 16px; flex-shrink: 0; }

/* Patreon */
.support-btn--patreon {
  background: linear-gradient(135deg, #FF424D, #E8373F);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 66, 77, 0.35);
}
.support-btn--patreon:hover {
  box-shadow: 0 6px 20px rgba(255, 66, 77, 0.5);
  color: #fff;
}
.support-btn--patreon svg { vertical-align: -2px; }

/* Coffee */
.support-btn--coffee {
  background: linear-gradient(135deg, #ffdd00, #ffc107);
  color: #3d2c00;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
}
.support-btn--coffee:hover {
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.5);
  color: #3d2c00;
}

/* ── Overlay (also acts as centering container for popup) ─────── */
.support-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 44, 34, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.support-overlay.show { opacity: 1; pointer-events: auto; }
.support-overlay.hide { opacity: 0; pointer-events: none; }

/* ── Popup (lives inside the overlay) ──────────────────────────── */
.support-popup {
  position: relative;
  z-index: 10001;
  transform: scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   0.35s ease;

  width: 400px;
  max-width: 100%;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f8fdf9);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px rgba(13, 159, 110, 0.2),
    0 24px 64px -12px rgba(2, 44, 34, 0.3),
    0 12px 24px -8px rgba(13, 159, 110, 0.08);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.support-popup.show {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.support-popup.hide {
  transform: scale(0.92);
  opacity: 0;
  pointer-events: none;
}

/* Decorative shimmer bar at top */
.support-popup-shimmer {
  height: 4px;
  background: linear-gradient(90deg, #0D9F6E, #FFD700, #FF424D, #0D9F6E);
  background-size: 300% 100%;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Body */
.support-popup-body {
  padding: 28px 28px 22px;
  text-align: center;
}

/* Badge */
.support-popup-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(13, 159, 110, 0.08);
  color: #065F46;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

/* Emoji */
.support-popup-emoji {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 14px;
  animation: gentleBounce 2.5s ease-in-out infinite;
}
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Title */
.support-popup-title {
  font-size: 22px;
  font-weight: 800;
  color: #022C22;
  margin: 0 0 10px;
  line-height: 1.25;
}

/* Body text */
.support-popup-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4B5563;
  margin: 0 0 22px;
}
.support-popup-text strong {
  color: #065F46;
}

/* CTA buttons */
.support-popup-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.support-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.support-popup-cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.support-popup-cta--patreon {
  background: linear-gradient(135deg, #FF424D, #E02D38);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 66, 77, 0.3);
}
.support-popup-cta--patreon:hover {
  box-shadow: 0 6px 24px rgba(255, 66, 77, 0.45);
  color: #fff;
}
.support-popup-cta--patreon svg { flex-shrink: 0; vertical-align: -2px; }

.support-popup-cta--coffee {
  background: linear-gradient(135deg, #ffdd00, #ffc107);
  color: #3d2c00;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.25);
}
.support-popup-cta--coffee:hover {
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
  color: #3d2c00;
}

/* "Maybe later" */
.support-popup-later {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s;
  font-family: inherit;
}
.support-popup-later:hover {
  color: #6B7280;
}

/* Close X */
.support-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #6B7280;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}
.support-popup-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #374151;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .support-buttons {
    bottom: max(15px, env(safe-area-inset-bottom));
    right: 15px;
    gap: 8px;
  }
  .support-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .support-popup {
    width: calc(100vw - 24px);
    max-width: 380px;
  }
  .support-popup-body {
    padding: 22px 20px 16px;
  }
  .support-popup-title {
    font-size: 19px;
  }
  .support-popup-emoji {
    font-size: 34px;
    margin-bottom: 10px;
  }
  .support-popup-text {
    font-size: 13px;
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .support-buttons {
    bottom: max(10px, env(safe-area-inset-bottom));
    right: 10px;
    gap: 6px;
  }
  .support-btn {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 24px;
  }
  .support-btn-icon { font-size: 14px; }

  .support-popup { width: calc(100vw - 32px); border-radius: 16px; }
  .support-popup-body { padding: 16px 16px 14px; }
  .support-popup-badge { font-size: 9px; padding: 3px 10px; margin-bottom: 8px; }
  .support-popup-emoji { font-size: 28px; margin-bottom: 8px; }
  .support-popup-title { font-size: 17px; margin-bottom: 6px; }
  .support-popup-text  { font-size: 12.5px; line-height: 1.5; margin-bottom: 16px; }
  .support-popup-btns  { gap: 8px; margin-bottom: 8px; }
  .support-popup-cta   { padding: 11px 14px; font-size: 13.5px; border-radius: 10px; }
  .support-popup-later { font-size: 12px; padding: 4px 8px; }
  .support-popup-close { width: 26px; height: 26px; font-size: 16px; top: 10px; right: 10px; }
}
