/* =========================================================
   NinjaMame Sticky Bar
   ========================================================= */

.nm-sticky-bar {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 590px;
  background: var(--light-bg);
  border-radius: 100px;
  box-shadow: 2px 7px 20.1px 0px #0e3b4726;
  padding: 16px 32px;
  transition:
    bottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
}

/* Видимо състояние */
.nm-sticky-bar.is-visible {
  bottom: 20px;
  opacity: 1;
  pointer-events: all;
}

/* aria-hidden fix за screen readers */
.nm-sticky-bar[aria-hidden='true'] {
  visibility: hidden;
}
.nm-sticky-bar.is-visible {
  visibility: visible;
}

/* ------ Inner layout ------ */
.nm-sticky-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ------ CTA Button ------ */
.nm-sticky-bar__inner button.nm-sticky-bar__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-family: var(--akrobat-900);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;

  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.nm-sticky-bar__cta:hover {
  background: #6ab827;
  transform: scale(1.03);
}

.nm-sticky-bar__cta:active {
  transform: scale(0.98);
}

.nm-sticky-bar__arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nm-sticky-bar__arrow:before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--arrow-right-icon-white);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.nm-sticky-bar__cta:hover .nm-sticky-bar__arrow {
  transform: translateX(3px);
}

/* ------ Divider ------ */
.nm-sticky-bar__divider {
  flex-shrink: 0;
  width: 1px;
  height: 36px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

/* ------ Promo section ------ */
.nm-sticky-bar__promo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.nm-sticky-bar__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.nm-sticky-bar__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nm-sticky-bar__text {
  margin: 0;
  font-family: var(--akrobat-400);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0e3b47;
  line-height: 1.4;
}

.nm-sticky-bar__text .nm-sticky-bar__brand {
  font-family: var(--deslaw-font);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 600px) {
  .nm-sticky-bar {
    width: calc(100% - 24px);
    border-radius: 20px;
    padding: 10px;
  }

  .nm-sticky-bar.is-visible {
    bottom: 12px;
  }

  .nm-sticky-bar__inner {
    gap: 10px;
  }

  .nm-sticky-bar__cta {
    padding: 12px 16px;
    font-size: 13px;
  }

  .nm-sticky-bar__text {
    font-size: 11px;
  }

  .nm-sticky-bar__icon {
    width: 36px;
    height: 36px;
  }

  .nm-sticky-bar__divider {
    height: 28px;
  }
}

@media (max-width: 400px) {
  /* На много малки екрани скриваме иконката */
  .nm-sticky-bar__icon {
    display: none;
  }
}
