/* ============================================================
   QR-Decoder CTA — Generate QR Code Button
   Target: https://qrcodemonkey.net/
   Design: High-curiosity, animated, orange-fire gradient
   ============================================================ */

/* ── Navbar CTA ─────────────────────────────────────────────── */
.btn-generate-qr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff6b00, #ff9d00);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}

/* Shine sweep animation */
.btn-generate-qr::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  animation: shine 2.8s ease-in-out infinite;
}

/* Pulsing outer glow */
.btn-generate-qr::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b00, #ff9d00);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: glow-pulse 2.8s ease-in-out infinite;
}

@keyframes shine {
  0%   { left: -100%; }
  45%  { left: 140%; }
  100% { left: 140%; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0;    transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.06); }
}

.btn-generate-qr:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.5);
}
.btn-generate-qr:hover::before { animation: none; left: 140%; }

.btn-generate-qr .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.btn-generate-qr:hover .btn-icon { transform: rotate(8deg) scale(1.1); }
.btn-generate-qr .btn-icon svg {
  width: 12px; height: 12px;
  fill: white;
}
.btn-generate-qr .btn-label { position: relative; z-index: 1; line-height: 1; }
.btn-generate-qr .btn-arrow {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.btn-generate-qr:hover .btn-arrow { transform: translateX(3px); }


/* ── Footer CTA Card ────────────────────────────────────────── */
.footer-qr-cta {
  margin-top: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    rgba(255,107,0,0.12) 0%,
    rgba(255,157,0,0.06) 100%
  );
  border: 1px solid rgba(255,107,0,0.28);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

/* Decorative QR grid pattern in corner */
.footer-qr-cta::before {
  content: '';
  position: absolute;
  top: -12px; right: -12px;
  width: 72px; height: 72px;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,107,0,0.12) 0px, rgba(255,107,0,0.12) 6px,
      transparent 6px, transparent 12px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,107,0,0.12) 0px, rgba(255,107,0,0.12) 6px,
      transparent 6px, transparent 12px
    );
  border-radius: 8px;
  transform: rotate(10deg);
  pointer-events: none;
}

.footer-qr-cta .cta-hook {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9d00;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-qr-cta .cta-hook::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff6b00;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.footer-qr-cta .cta-headline {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.35;
}
[data-theme="light"] .footer-qr-cta .cta-headline { color: #1a1a1a; }

.footer-qr-cta .cta-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  line-height: 1.5;
}
[data-theme="light"] .footer-qr-cta .cta-sub { color: rgba(0,0,0,0.5); }

.footer-qr-cta .btn-generate-qr-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #ff6b00, #ff9d00);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-qr-cta .btn-generate-qr-footer::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s ease-in-out infinite;
}
.footer-qr-cta .btn-generate-qr-footer:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.45);
}
.footer-qr-cta .btn-generate-qr-footer svg {
  width: 16px; height: 16px;
  fill: none; stroke: white; stroke-width: 2.5;
  flex-shrink: 0;
}
.footer-qr-cta .btn-generate-qr-footer .footer-btn-text { position: relative; z-index: 1; }
.footer-qr-cta .btn-generate-qr-footer .footer-btn-arrow {
  position: relative; z-index: 1;
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.footer-qr-cta .btn-generate-qr-footer:hover .footer-btn-arrow { transform: translateX(3px); }


/* ── Mobile: hide label text, keep icon only on small screens ── */
@media (max-width: 480px) {
  .btn-generate-qr .btn-label { display: none; }
  .btn-generate-qr .btn-arrow { display: none; }
  .btn-generate-qr { padding: 8px 10px; }
}
