/* General styles for the topbar */
.topbar {
  background: var(--sm-sec);
  position: relative;
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 70%,
    transparent 100%
  );
  animation: shine 5s infinite linear;
}

@keyframes shine {
  from {
    transform: translateX(-40%);
  }
  to {
    transform: translateX(40%);
  }
}


/* Topbar content wrapper for flex layout */
.topbar .topbar-content {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 8px;
}

/* Animated SVG within the topbar */
.topbar svg {
  animation: 2s ease-in-out infinite heartbeat;
}

.topbar a {
  white-space: unset !important;
}

/* Styling for text within the topbar */
.topbar .text {
  text-align: center;
  font-size: 15px;
  line-height: normal;
  color: #f6f6f6;
  margin-bottom: 0;
  letter-spacing: 0.22px;
}

.topbar .text svg {
  width: 0.9em;
  height: 0.9em;
  vertical-align: middle;
  transition: transform 0.3s ease-out;
}

.hide-on-pricing {
  display: none !important;
}

.topbar-cat {
  align-self: flex-end;
}

.topbar .btn-group a {
  background-color: var(--sm-wh);
  color: var(--sm-text-main);
  border: 1px solid var(--sm-main);
  padding: 8px 14px;
  display: flex;
  min-width: 103px;
  height: 30px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 7px;
}

.topbar .btn-group a:hover {
  background-color: var(--sm-tert);
  color: var(--sm-text-main);
}

/* Responsive font sizes for different viewport widths */
@media only screen and (max-width: 1150px) {
  .topbar::before {
    left: -130%;
    width: 500%;
  }
}

@media only screen and (max-width: 1024px) {
  .topbar .topbar-content {
    padding: 8px 16px;
  }
  .topbar .text {
    font-size: clamp(
      12px,
      calc(12px + (15 - 12) * (100vw - 450px) / (1024 - 450)),
      15px
    );
    letter-spacing: normal;
  }
}

@media only screen and (max-width: 700px) {
  .topbar::before {
    left: -150%;
    width: 600%;
    animation: shine 6s infinite linear;
  }
}

@media only screen and (max-width: 450px) {
  .topbar::before {
    left: -300%;
    width: 800%;
    animation: shine 7s infinite linear;
  }
  .topbar .text {
    font-size: 12px;
  }
}

/* Button group styles */
.topbar .btn-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar .btn-group a {
  white-space: nowrap;
}
