/*!
 * FalakCart Smart CTA - Styles (compact in-article banners)
 * 3 rotating variants | RTL first | Motion-rich
 */

/* ============================================================
   BASE / SHARED
   ============================================================ */
.fkc-cta,
.fkc-cta *,
.fkc-cta *::before,
.fkc-cta *::after {
  box-sizing: border-box;
}

.fkc-cta {
  --fkc-gold: #FFB329;
  --fkc-blue: #030BA1;
  --fkc-sky: #6EC1E4;
  --fkc-light: #f8f7f7;
  --fkc-radius: 16px;
  --fkc-ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 100%;
  margin: 26px auto;
  border-radius: var(--fkc-radius);
  overflow: hidden;
  isolation: isolate;
  font-family: "Graphik Arabic", "Tajawal", "Cairo", "IBM Plex Sans Arabic",
    "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: opacity .6s var(--fkc-ease), transform .6s var(--fkc-ease);
  contain: layout paint style;
}

/* Reveal only when JS is running; without it the banner stays visible. */
.fkc-js .fkc-cta {
  opacity: 0;
  transform: translateY(16px);
}

.fkc-cta,
.fkc-js .fkc-cta.fkc-in {
  opacity: 1;
  transform: translateY(0);
}

/* Neutralise theme margins without stomping the component's own padding. */
.fkc-cta p,
.fkc-cta h2,
.fkc-cta h3,
.fkc-cta h4,
.fkc-cta span,
.fkc-cta div,
.fkc-cta section {
  margin: 0;
}

.fkc-cta p,
.fkc-cta h2,
.fkc-cta h3,
.fkc-cta h4 {
  padding: 0;
}

.fkc-cta__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.fkc-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fkc-cta a.fkc-btn {
  text-decoration: none !important;
  box-shadow: none;
}

.fkc-cta a.fkc-btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ---- Title / sub ---- */
.fkc-title {
  font-size: clamp(16px, 2.1vw, 21px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -.2px;
}

.fkc-sub {
  font-size: clamp(12.5px, 1.5vw, 14px);
  line-height: 1.7;
  opacity: .88;
}

.fkc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 700;
}

.fkc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fkc-meta svg { flex: none; }

/* ---- Chip ---- */
.fkc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.7;
  white-space: nowrap;
}

.fkc-chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fkc-gold);
  flex: none;
  animation: fkc-dot 2s ease-out infinite;
}

@keyframes fkc-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 179, 41, .8); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 179, 41, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 41, 0); }
}

/* ---- Button ---- */
.fkc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.2px;
  cursor: pointer;
  overflow: hidden;
  border: 0;
  white-space: nowrap;
  transform: translateZ(0);
  transition: transform .32s var(--fkc-ease), box-shadow .32s var(--fkc-ease);
}

.fkc-btn__label { position: relative; z-index: 2; }

.fkc-btn__ico {
  position: relative;
  z-index: 2;
  display: inline-flex;
  transition: transform .32s var(--fkc-ease);
}

.fkc-btn:hover .fkc-btn__ico { transform: translateX(-5px); }

.fkc-btn__shine {
  position: absolute;
  top: -60%;
  right: -140%;
  width: 55%;
  height: 220%;
  z-index: 1;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, .12) 30%,
    rgba(255, 255, 255, .6) 50%,
    rgba(255, 255, 255, .12) 70%,
    transparent 100%
  );
  transform: rotate(14deg);
  animation: fkc-shine 3.8s var(--fkc-ease) infinite;
  pointer-events: none;
}

@keyframes fkc-shine {
  0%   { right: -140%; }
  55%  { right: 140%; }
  100% { right: 140%; }
}

.fkc-ripple {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .5);
  animation: fkc-ripple .6s ease-out forwards;
  pointer-events: none;
}

@keyframes fkc-ripple {
  to { transform: scale(3); opacity: 0; }
}

/* ============================================================
   VARIANT 1 — MIDNIGHT AURORA
   ============================================================ */
.fkc-v1 {
  background:
    radial-gradient(120% 160% at 90% 10%, rgba(110, 193, 228, .30) 0%, transparent 58%),
    linear-gradient(120deg, var(--fkc-blue) 0%, #0a12c4 55%, #01075e 100%);
  padding: 20px 24px;
  box-shadow: 0 14px 30px -18px rgba(3, 11, 161, .7);
}

.fkc-v1 .fkc-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: .5;
  z-index: 1;
  will-change: transform;
}

.fkc-v1 .fkc-blob--a {
  width: 190px; height: 190px;
  background: var(--fkc-sky);
  top: -80px; right: -30px;
  animation: fkc-float-a 15s ease-in-out infinite;
}

.fkc-v1 .fkc-blob--b {
  width: 160px; height: 160px;
  background: var(--fkc-gold);
  bottom: -100px; left: -40px;
  opacity: .2;
  animation: fkc-float-b 18s ease-in-out infinite;
}

@keyframes fkc-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-34px, 30px) scale(1.18); }
}
@keyframes fkc-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -26px) scale(1.2); }
}

.fkc-v1 .fkc-spark {
  position: absolute;
  z-index: 2;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--fkc-gold);
  box-shadow: 0 0 9px 2px rgba(255, 179, 41, .8);
  animation: fkc-spark 5s ease-in-out infinite;
}
.fkc-v1 .fkc-spark:nth-child(1) { top: 24%; right: 30%; animation-delay: 0s; }
.fkc-v1 .fkc-spark:nth-child(2) { top: 70%; right: 46%; animation-delay: 1.1s; background: var(--fkc-sky); box-shadow: 0 0 9px 2px rgba(110,193,228,.9); }
.fkc-v1 .fkc-spark:nth-child(3) { top: 32%; left: 24%;  animation-delay: 2.3s; background: #fff; box-shadow: 0 0 8px 2px rgba(255,255,255,.8); }

@keyframes fkc-spark {
  0%, 100% { transform: translateY(0) scale(.5); opacity: .2; }
  50%      { transform: translateY(-14px) scale(1.2); opacity: 1; }
}

.fkc-v1 .fkc-chip {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
}

.fkc-v1 .fkc-title { color: #fff; }

.fkc-v1 .fkc-title em {
  font-style: normal;
  position: relative;
  color: var(--fkc-gold);
  white-space: nowrap;
}

.fkc-v1 .fkc-title em::after {
  content: "";
  position: absolute;
  right: 0; bottom: -3px;
  height: 2.5px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--fkc-gold), var(--fkc-sky));
  transform: scaleX(0);
  transform-origin: right;
  animation: fkc-underline .9s var(--fkc-ease) .45s forwards;
}

@keyframes fkc-underline {
  to { transform: scaleX(1); }
}

.fkc-v1 .fkc-sub  { color: rgba(255, 255, 255, .8); }
.fkc-v1 .fkc-meta { color: rgba(255, 255, 255, .72); }

.fkc-v1 .fkc-btn {
  color: #06106b;
  background: linear-gradient(135deg, #ffd06a 0%, var(--fkc-gold) 52%, #f59300 100%);
  box-shadow: 0 10px 22px -8px rgba(255, 179, 41, .85),
              inset 0 -2px 0 rgba(0, 0, 0, .12);
}

.fkc-v1 .fkc-btn::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid var(--fkc-gold);
  opacity: .5;
  animation: fkc-ring 2.6s var(--fkc-ease) infinite;
  pointer-events: none;
}

@keyframes fkc-ring {
  0%   { transform: scale(.94); opacity: .55; }
  70%  { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}

.fkc-v1 .fkc-btn:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 16px 30px -8px rgba(255, 179, 41, .95);
}

.fkc-v1 .fkc-btn:active { transform: translateY(0) scale(.99); }

/* ============================================================
   VARIANT 2 — SOFT LIGHT + EMBLEM
   ============================================================ */
.fkc-v2 {
  background: var(--fkc-light);
  border: 1px solid rgba(3, 11, 161, .10);
  border-right: 4px solid var(--fkc-gold);
  padding: 18px 34px 18px 22px;
  box-shadow: 0 12px 26px -20px rgba(3, 11, 161, .45);
}

.fkc-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
  background: radial-gradient(
    240px circle at var(--fkc-mx, 50%) var(--fkc-my, 50%),
    rgba(110, 193, 228, .22),
    transparent 62%
  );
}

.fkc-v2:hover::after { opacity: 1; }

@keyframes fkc-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.fkc-v2 .fkc-cta__inner { gap: 16px; }

/* animated emblem */
.fkc-emblem {
  position: relative;
  flex: none;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #2a35e0, var(--fkc-blue) 60%, #01064f);
  box-shadow: 0 10px 20px -10px rgba(3, 11, 161, .8);
  animation: fkc-bob 6s ease-in-out infinite;
}

.fkc-emblem::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(110, 193, 228, .8);
  animation: fkc-spin 12s linear infinite;
}

.fkc-emblem::after {
  content: "";
  position: absolute;
  top: -4px; left: -4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fkc-gold);
  box-shadow: 0 0 0 3px var(--fkc-light);
  animation: fkc-pulse 2.2s ease-in-out infinite;
}

@keyframes fkc-spin { to { transform: rotate(360deg); } }

@keyframes fkc-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.28); }
}

.fkc-v2 .fkc-chip {
  color: var(--fkc-blue);
  background: rgba(110, 193, 228, .2);
  border: 1px solid rgba(110, 193, 228, .5);
}

.fkc-v2 .fkc-title { color: var(--fkc-blue); }

.fkc-v2 .fkc-title em {
  font-style: normal;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.fkc-v2 .fkc-title em::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5px; bottom: 2px;
  width: calc(100% + 10px);
  height: 38%;
  border-radius: 4px;
  background: var(--fkc-gold);
  opacity: .7;
  transform: scaleX(0);
  transform-origin: right;
  animation: fkc-highlight 1s var(--fkc-ease) .4s forwards;
}

@keyframes fkc-highlight {
  to { transform: scaleX(1); }
}

.fkc-v2 .fkc-sub  { color: #4a4a63; }
.fkc-v2 .fkc-meta { color: #6a6a80; }

.fkc-v2 .fkc-btn {
  color: #06106b;
  background: linear-gradient(135deg, #ffd06a 0%, var(--fkc-gold) 55%, #f59300 100%);
  box-shadow: 0 10px 20px -8px rgba(255, 179, 41, .9);
}

.fkc-v2 .fkc-btn:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 16px 28px -8px rgba(255, 179, 41, 1);
}

.fkc-v2 .fkc-btn:active { transform: translateY(0) scale(.99); }

/* ============================================================
   VARIANT 3 — BOLD GOLD STRIP
   ============================================================ */
.fkc-v3 {
  background: var(--fkc-gold);
  padding: 18px 22px 0;
  box-shadow: 0 12px 26px -18px rgba(255, 179, 41, .85);
}

.fkc-v3 .fkc-stripes {
  position: absolute;
  inset: -40%;
  z-index: 1;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, .2) 0px,
    rgba(255, 255, 255, .2) 16px,
    transparent 16px,
    transparent 42px
  );
  animation: fkc-stripes 12s linear infinite;
}

@keyframes fkc-stripes {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(58px, 58px, 0); }
}

.fkc-v3 .fkc-orb {
  position: absolute;
  z-index: 1;
  width: 220px; height: 220px;
  top: -110px; left: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .3) 46%, transparent 70%);
  filter: blur(14px);
  opacity: .8;
  animation: fkc-orb 16s ease-in-out infinite;
}

.fkc-v3 .fkc-orb--2 {
  top: auto; left: auto;
  right: -90px; bottom: -120px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(110, 193, 228, .9) 0%, rgba(110, 193, 228, .25) 50%, transparent 72%);
  opacity: .5;
  animation-delay: -7s;
}

@keyframes fkc-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(34px, 28px) scale(1.16); }
}

.fkc-v3 .fkc-cta__inner { padding-bottom: 16px; }

.fkc-v3 .fkc-chip {
  color: var(--fkc-blue);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(3, 11, 161, .16);
}

.fkc-v3 .fkc-chip__dot { background: var(--fkc-blue); animation: none; }

.fkc-v3 .fkc-title {
  color: var(--fkc-blue);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}

.fkc-v3 .fkc-title em {
  font-style: normal;
  display: inline-block;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--fkc-blue);
  color: var(--fkc-gold);
  transform: rotate(-1.4deg);
  white-space: nowrap;
}

.fkc-v3 .fkc-sub  { color: #16206e; }
.fkc-v3 .fkc-meta { color: #222c7a; }

.fkc-v3 .fkc-btn {
  color: #fff;
  background: linear-gradient(135deg, #1d28d6 0%, var(--fkc-blue) 60%, #01064f 100%);
  box-shadow: 0 12px 24px -10px rgba(3, 11, 161, .9),
              inset 0 -2px 0 rgba(0, 0, 0, .2);
}

.fkc-v3 .fkc-btn:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 18px 30px -10px rgba(3, 11, 161, 1);
}

.fkc-v3 .fkc-btn:active { transform: translateY(0) scale(.99); }

.fkc-v3 .fkc-btn .fkc-btn__shine {
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, .08) 30%,
    rgba(255, 255, 255, .42) 50%,
    rgba(255, 255, 255, .08) 70%,
    transparent 100%
  );
}

/* thin marquee strip */
.fkc-marquee {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--fkc-blue);
  margin: 0 -22px;
  width: calc(100% + 44px);
  min-height: 32px;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.fkc-marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 26px;
  padding-left: 26px;
  white-space: nowrap;
  animation: fkc-marquee 22s linear infinite;
}

.fkc-marquee:hover .fkc-marquee__track { animation-play-state: paused; }

@keyframes fkc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

.fkc-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.9;
  color: #fff;
}

.fkc-marquee__item i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fkc-gold);
  flex: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 620px) {
  .fkc-cta { margin: 22px auto; border-radius: 14px; }

  .fkc-cta__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }

  .fkc-cta__copy { align-items: center; }
  .fkc-chip { align-self: center; }
  .fkc-meta { justify-content: center; }
  .fkc-btn  { width: 100%; padding: 13px 18px; white-space: normal; }

  .fkc-v1, .fkc-v2 { padding: 18px 16px; }
  .fkc-v3 { padding: 18px 16px 0; }
  .fkc-v3 .fkc-cta__inner { padding-bottom: 14px; }
  .fkc-marquee { margin: 0 -16px; width: calc(100% + 32px); }

  .fkc-emblem { display: none; }
  .fkc-v1 .fkc-blob { filter: blur(34px); }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fkc-js .fkc-cta,
  .fkc-cta,
  .fkc-cta * {
    animation: none !important;
    transition: none !important;
  }
  .fkc-cta, .fkc-js .fkc-cta { opacity: 1 !important; transform: none !important; }
  .fkc-v1 .fkc-title em::after  { transform: scaleX(1); }
  .fkc-v2 .fkc-title em::before { transform: scaleX(1); }
}
