/* static/css/styles.css */

/* Mobile X-axis lock — prevents horizontal scroll/jitter caused by absolute or
   off-screen positioned elements (like ambient glows) extending past the
   viewport. `overflow-x: hidden` on body alone isn't enough on iOS Safari
   when html is the scroll context, so we set both. */
html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

.tiktok-pink {
  color: #fe2c55;
}
.bg-tiktok-pink {
  background-color: #fe2c55;
}
.step-icon {
  background-color: rgba(37, 244, 238, 0.1);
  color: #25f4ee;
}

.code-block {
  background-color: #282c34;
}

pre,
code {
  font-family: "Roboto Mono", monospace;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.3);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.5);
}

.tab-button {
  padding: 0.6rem 1rem;
  background-color: transparent;
  color: #9ca3af; /* gray-400 */
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-weight: 600;
}

.tab-button:hover {
  color: #e5e7eb; /* gray-200 */
}

.tab-button.active {
  color: #25f4ee; /* cyan */
  border-bottom-color: #25f4ee;
}

.loader {
  border-top-color: #25f4ee;
  transform: rotate(360deg);
}

@keyframes flash {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(56, 189, 248, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

.flash-animation {
  animation: flash 0.4s ease-out;
}

.tiktok-embed-container {
  position: relative;
  padding-bottom: 175%; /* Adjust this percentage to control aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}
.tiktok-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.5); /* Cyan glow */
  }
  50% {
    transform: scale(1.02);
    text-shadow: 0 0 15px rgba(6, 182, 212, 1); /* Brighter cyan glow */
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

/* A classic high-conversion button style */
.action-button {
  background-color: #ff9900; /* Bright, high-contrast orange */
  color: #000000;
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  transition: all 0.1s ease-in-out;
}
.action-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
}
.action-button:disabled {
  background-color: #cccccc;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.choices__inner {
  background-color: #374151 !important; /* bg-gray-700 */
  border: 2px solid #4b5563 !important; /* border-gray-600 */
  border-radius: 0.5rem;
  padding: 0.5rem 1rem !important;
  font-size: 1rem;
  color: #d1d5db !important; /* text-gray-300 */
  min-height: auto !important;
}

.choices[data-type*="select-one"] .choices__inner {
  padding-bottom: 0.6rem !important;
}

.choices[data-type*="select-one"]::after {
  border-color: #9ca3af transparent transparent !important; /* text-gray-400 */
  right: 15.5px;
  margin-top: -3.5px;
}

.choices.is-open[data-type*="select-one"]::after {
  border-color: transparent transparent #9ca3af !important;
  margin-top: -6.5px;
}

.choices__list--dropdown {
  background-color: #1f2937 !important; /* bg-gray-800 */
  border: 1px solid #4b5563 !important;
  border-radius: 0.5rem;
  z-index: 10;
}

.choices__item--choice {
  color: #d1d5db !important;
}

.choices__item--choice.is-highlighted {
  background-color: #4b5563 !important;
}

.choices__input {
  background-color: transparent !important;
  color: white !important;
  font-size: 1rem;
}

#rating-widget {
  position: relative;
  background-image: url("/static/images/app_images/ratings_decoration.svg");
  background-position: center top 15%;
  background-repeat: no-repeat;
  overflow: hidden;
  background-color: transparent;
}

@media (max-width: 640px) {
  #rating-widget {
    background-size: 100% auto;
    background-position: center top 10%;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* This class will be toggled by JS */
.modal-overlay.modal-show {
  opacity: 1;
}

.modal-content {
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.modal-overlay.modal-show .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #9CA3AF;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover {
  color: #FFFFFF;
}
