/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@layer base {

  button,
  [type='button'],
  [type='reset'],
  [type='submit'],
  [role="button"] {
    cursor: pointer;
  }

  .display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
  }
}

/* Landing page motion */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-rise {
  opacity: 0;
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  .hero-rise,
  .reveal-up {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Free-scan theater */
.free-scan-meter__bar {
  width: 35%;
  animation: free-scan-meter 2.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.free-scan-ghost-card {
  opacity: 0;
  animation: free-scan-ghost 1.8s ease-in-out infinite;
}

.free-scan-pulse-dot {
  animation: free-scan-pulse 1.2s ease-in-out infinite;
}

.free-scan-results {
  column-count: 1;
  column-gap: 1.25rem;
}

@media (min-width: 768px) {
  .free-scan-results {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .free-scan-results {
    column-count: 3;
    column-gap: 1.5rem;
  }
}

.free-scan-results > * {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}

.free-scan-results > .free-scan-card--filtered-out,
.free-scan-results > [hidden] {
  display: none !important;
}

/* Sorted grids: CSS multi-column masonry fills each column top-to-bottom, so a
   sorted list reads down the left column instead of left-to-right across rows.
   The unfollow-masonry controller reflows sorted grids into a shortest-column
   masonry layout in DOM order, which keeps the stagger and reads correctly.
   These rules style the column wrappers it creates. */
.free-scan-results--js-masonry {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .free-scan-results--js-masonry {
    gap: 1.5rem;
  }
}

.free-scan-results--js-masonry > .free-scan-results__column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .free-scan-results--js-masonry > .free-scan-results__column {
    gap: 1.5rem;
  }
}

.free-scan-results--js-masonry > * {
  margin-bottom: 0;
  break-inside: auto;
}

.extension-connect-stage__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198, 93, 71, 0.14), transparent 55%),
    radial-gradient(ellipse at 20% 40%, rgba(255, 255, 255, 0.55), transparent 45%);
  pointer-events: none;
}

.extension-connect-stage__ring {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  margin: calc(min(70vw, 520px) / -2) 0 0 calc(min(70vw, 520px) / -2);
  border: 1px solid rgba(11, 11, 13, 0.07);
  border-radius: 9999px;
  pointer-events: none;
  animation: free-scan-ring 8s linear infinite;
}

.extension-connect-stage__ring--slow {
  width: min(85vw, 640px);
  height: min(85vw, 640px);
  margin: calc(min(85vw, 640px) / -2) 0 0 calc(min(85vw, 640px) / -2);
  border-color: rgba(198, 93, 71, 0.16);
  animation-duration: 16s;
  animation-direction: reverse;
}

.extension-install-panel--enter {
  animation: free-scan-card-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.extension-install-dot--done {
  background-color: #0B0B0D !important;
  opacity: 0.35;
}

.extension-install-dot--current {
  background-color: #0B0B0D !important;
  transform: scale(1.35);
  opacity: 1;
}

.extension-install-step {
  opacity: 0;
  transform: translateY(14px);
  animation: free-scan-card-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .extension-install-step,
  .extension-install-panel--enter {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .extension-connect-stage__ring,
  .extension-connect-stage__ring--slow {
    animation: none;
  }
}

.free-scan-card-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: free-scan-card-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.free-scan-copy-fade {
  opacity: 0;
  transition: opacity 0.22s ease;
}

@keyframes free-scan-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes free-scan-meter {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

@keyframes free-scan-ghost {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 0.85;
    transform: translateY(-4px);
  }
}

@keyframes free-scan-pulse {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes free-scan-card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .free-scan-meter__bar,
  .free-scan-ghost-card,
  .free-scan-pulse-dot,
  .free-scan-card-enter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* FAQ accordion */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
}

.flip-container {
  perspective: 1000px;
  width: 100%;
  height: 100%;
}

.flipper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  width: 100%;
  height: 100%;
}

.flip .flipper {
  transform: rotateY(180deg);
}

.front,
.back {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.front {
  z-index: 2;
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
}

.creative-node-container {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  flex-shrink: 0;
  background-color: #FAF8F2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.locked {
  border: 2px solid #D15937;
  box-shadow: 0 0 10px #D15937;
}

.highlight {
  background-color: #D15937;
  color: white;
}

.inspiration-refresh.is-spinning svg {
  animation: inspiration-spin 0.9s linear infinite;
}

.research-refresh-btn.is-spinning svg {
  animation: inspiration-spin 0.9s linear infinite;
}

@keyframes inspiration-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes flash-fade-in-and-out {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.animate-fade-in-and-out {
  animation: flash-fade-in-and-out 4s ease-in-out forwards;
}

#draft-editor::selection {
  background: #C65D47;
  color: #111111;
}

#draft-editor::-moz-selection {
  background: #C65D47;
  color: #111111;
}

.slider {
  --slider-track-color: #E5E7EB;
  --slider-fill-color: #47B0C6;
  --slider-fill-percent: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(var(--slider-fill-color), var(--slider-fill-color)) 0/var(--slider-fill-percent) 100% no-repeat, var(--slider-track-color);
  border-radius: 9999px;
}

.slider:focus {
  outline: none;
}

.slider::-webkit-slider-runnable-track {
  height: 0.5rem;
  background: transparent;
  border-radius: 9999px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  background: var(--slider-fill-color);
  border: 2px solid #FFFFFF;
  border-radius: 9999px;
  margin-top: -0.25rem;
}

.slider::-moz-range-track {
  height: 0.5rem;
  background: var(--slider-track-color);
  border-radius: 9999px;
}

.slider::-moz-range-progress {
  height: 0.5rem;
  background: var(--slider-fill-color);
  border-radius: 9999px;
}

.slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: var(--slider-fill-color);
  border: 2px solid #FFFFFF;
  border-radius: 9999px;
}

@keyframes flash-green {
  0% {
    background-color: transparent;
  }

  10% {
    background-color: #dcfce7;
  }

  100% {
    background-color: transparent;
  }
}

.animate-flash-green {
  animation: flash-green 1s ease-out;
}

.research-page {
  background:
    radial-gradient(1200px 400px at 70% -5%, rgba(198, 93, 71, 0.08), transparent 60%),
    #f2f0ec;
}

.research-page .save-research-btn {
  min-height: 42px;
}

.research-page [data-action*="research#useHook"] {
  min-height: 74px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Carousel Navigation Arrows */
.carousel-btn {
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.group\/carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn.is-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

.tweet-shell {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #0f1419;
}

.tweet-shell .tweet-name {
  color: #0f1419;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.tweet-shell .tweet-meta {
  color: #536471;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0;
}

.tweet-shell .tweet-text {
  color: #1f2937;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0;
}

.tweet-shell.tweet-shell-compact .tweet-text {
  font-size: 15px;
  line-height: 1.42;
}

.tweet-shell .tweet-muted {
  color: #536471;
}

@media (hover: none) {
  .carousel-btn {
    opacity: 0.9;
  }
}

/* Dashboard stat cards */
.stat-card-premium {
  transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s;
}

.stat-card-premium:hover {
  transform: translateY(-1px);
}

/* Sparkline bar charts */
.sparkline-chart {
  flex-shrink: 0;
}

.sparkline-bar {
  transition: opacity 0.15s;
}

.sparkline-bar:hover {
  opacity: 0.7;
}

/* Dashboard cleanup card alignment */
.cleanup-card-bio-slot {
  min-height: 4.5rem;
}

.cleanup-card-meta-slot {
  min-height: 2.4rem;
}
