/**
 * INSTALIIO BUTTONS FOR ELEMENTOR — STYLESHEET
 * Version: 1.0.0
 * 7 Ultra-Modern Theme Presets, High-Converting Shimmer, Glowing Gradients, RTL Urdu Support
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Nastaliq+Urdu:wght@500;700&family=Noto+Sans+Arabic:wght@500;700;800&display=swap');

/* ==========================================================================
   1. GLOBAL TOKENS & WRAPPER
   ========================================================================== */
.instaliio-btn-wrapper {
  display: inline-flex;
  position: relative;
  box-sizing: border-box;
  vertical-align: middle;
}

.instaliio-btn-wrapper.in-align-left {
  display: flex;
  justify-content: flex-start;
}

.instaliio-btn-wrapper.in-align-center {
  display: flex;
  justify-content: center;
}

.instaliio-btn-wrapper.in-align-right {
  display: flex;
  justify-content: flex-end;
}

.instaliio-btn-wrapper.in-align-justify,
.instaliio-btn-wrapper.in-btn-block {
  display: flex;
  width: 100%;
}

.instaliio-btn-wrapper.in-align-justify .instaliio-btn,
.instaliio-btn-wrapper.in-btn-block .instaliio-btn {
  width: 100%;
  justify-content: center;
}

/* Base Button Construction */
.instaliio-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-font-smoothing: antialiased;
}

.instaliio-btn:hover,
.instaliio-btn:focus {
  text-decoration: none !important;
}

/* Button Sizes */
.instaliio-btn.in-size-xs {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 9999px;
  min-height: 32px;
}

.instaliio-btn.in-size-sm {
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 9999px;
  min-height: 38px;
}

.instaliio-btn.in-size-md {
  font-size: 15px;
  padding: 11px 24px;
  border-radius: 9999px;
  min-height: 46px;
}

.instaliio-btn.in-size-lg {
  font-size: 16.5px;
  padding: 14px 32px;
  border-radius: 9999px;
  min-height: 52px;
}

.instaliio-btn.in-size-xl {
  font-size: 18px;
  padding: 16px 40px;
  border-radius: 9999px;
  min-height: 58px;
}

/* Content Stacking (When Subtext is present) */
.in-btn-content-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.in-btn-main-text {
  display: inline-block;
  font-weight: 700;
}

.in-btn-subtext {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  opacity: 0.88;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Icons */
.in-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.in-btn-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.instaliio-btn:hover .in-btn-icon-after {
  transform: translateX(4px);
}

.instaliio-btn:hover .in-btn-icon-before {
  transform: translateX(-3px);
}

/* Badges / Floating Pills */
.in-btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}

.in-btn-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* ==========================================================================
   2. PRESET 1: PRIMARY RADIANT GLOW (SIGN IN / HERO PRIMARY)
   ========================================================================== */
.instaliio-btn.in-preset-primary_radiant {
  background: linear-gradient(135deg, #2AA0FA 0%, #0171FB 55%, #0146EB 100%);
  color: #FFFFFF !important;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(1, 113, 251, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.instaliio-btn.in-preset-primary_radiant:hover {
  background: linear-gradient(135deg, #3DB4FC 0%, #0D82FF 55%, #0855FF 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1, 113, 251, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  color: #FFFFFF !important;
}

.instaliio-btn.in-preset-primary_radiant:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(1, 113, 251, 0.35);
}

.in-preset-primary_radiant .in-btn-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ==========================================================================
   3. PRESET 2: SECONDARY CLEAN GLASS PILL (BOOK A DEMO)
   ========================================================================== */
.instaliio-btn.in-preset-secondary_glass {
  background: #FFFFFF;
  color: #0F172A !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.instaliio-btn.in-preset-secondary_glass:hover {
  background: #F8FAFC;
  border-color: #0171FB;
  color: #0171FB !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(1, 113, 251, 0.14);
}

.instaliio-btn.in-preset-secondary_glass:active {
  transform: translateY(0);
  background: #F1F5F9;
}

.in-preset-secondary_glass .in-btn-badge {
  background: rgba(1, 113, 251, 0.1);
  color: #0171FB;
}

/* ==========================================================================
   4. PRESET 3: DARK VIP / ENTERPRISE SLATE (ENTERPRISE DEMO)
   ========================================================================== */
.instaliio-btn.in-preset-dark_vip {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.instaliio-btn.in-preset-dark_vip:hover {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.4), 0 0 20px rgba(56, 189, 248, 0.2);
  color: #FFFFFF !important;
}

.instaliio-btn.in-preset-dark_vip:active {
  transform: translateY(0);
}

.in-preset-dark_vip .in-btn-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
}

/* ==========================================================================
   5. PRESET 4: WHATSAPP AI RECOVERY BOT (EMERALD ACTION)
   ========================================================================== */
.instaliio-btn.in-preset-whatsapp_recovery {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.instaliio-btn.in-preset-whatsapp_recovery:hover {
  background: linear-gradient(135deg, #2EE06E 0%, #15A090 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: #FFFFFF !important;
}

.instaliio-btn.in-preset-whatsapp_recovery:active {
  transform: translateY(0);
}

.in-preset-whatsapp_recovery .in-btn-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ==========================================================================
   6. PRESET 5: URDU / BILINGUAL SWITCHER PILL
   ========================================================================== */
.instaliio-btn.in-preset-bilingual_pill {
  background: #F1F5F9;
  color: #334155 !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Inter', sans-serif;
}

.instaliio-btn.in-preset-bilingual_pill:hover {
  background: #E2E8F0;
  color: #0171FB !important;
  border-color: rgba(1, 113, 251, 0.3);
  transform: translateY(-1px);
}

.in-preset-bilingual_pill .in-btn-badge {
  background: #0171FB;
  color: #FFFFFF;
}

/* ==========================================================================
   7. PRESET 6: HIGH-CONVERTING SHIMMER OFFER CTA
   ========================================================================== */
.instaliio-btn.in-preset-high_converting_subtext {
  background: linear-gradient(135deg, #0171FB 0%, #0146EB 60%, #1E1B4B 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 22px rgba(1, 113, 251, 0.4);
  padding-top: 13px;
  padding-bottom: 13px;
}

.instaliio-btn.in-preset-high_converting_subtext:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(1, 113, 251, 0.55);
  color: #FFFFFF !important;
}

.in-preset-high_converting_subtext .in-btn-badge {
  background: #10B981;
  color: #FFFFFF;
}

/* ==========================================================================
   8. PRESET 7: SOFT AMBIENT ACCENT / GHOST LINK
   ========================================================================== */
.instaliio-btn.in-preset-soft_ghost {
  background: rgba(1, 113, 251, 0.08);
  color: #0171FB !important;
  border: 1px solid transparent;
}

.instaliio-btn.in-preset-soft_ghost:hover {
  background: rgba(1, 113, 251, 0.16);
  color: #004BD6 !important;
  transform: translateX(3px);
}

.in-preset-soft_ghost .in-btn-badge {
  background: #0171FB;
  color: #FFFFFF;
}

/* ==========================================================================
   9. HIGH-CONVERTING ANIMATIONS (SHIMMER, PULSE, RIPPLE)
   ========================================================================== */
/* Shimmer Light Sweep Effect */
.instaliio-btn.in-effect-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: in-shimmer-sweep 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes in-shimmer-sweep {
  0% { left: -100%; }
  35%, 100% { left: 160%; }
}

/* Pulse Glow Effect */
.instaliio-btn.in-effect-pulse {
  animation: in-pulse-glow 2.2s infinite ease-in-out;
}

@keyframes in-pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(1, 113, 251, 0.35);
  }
  50% {
    box-shadow: 0 8px 30px rgba(1, 113, 251, 0.65), 0 0 16px rgba(42, 160, 250, 0.4);
  }
}

/* Click Ripple Container */
.in-btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: in-ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes in-ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   10. RTL / URDU SUPPORT
   ========================================================================== */
html[dir="rtl"] .instaliio-btn {
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', var(--font-urdu-body, sans-serif);
}

html[dir="rtl"] .instaliio-btn:hover .in-btn-icon-after {
  transform: translateX(-4px);
}

html[dir="rtl"] .instaliio-btn:hover .in-btn-icon-before {
  transform: translateX(3px);
}

html[dir="rtl"] .in-preset-soft_ghost:hover {
  transform: translateX(-3px);
}
