/* @import url('https://fonts.googleapis.com/css2?family=Bytesized&display=swap'); */

@import url("https://fonts.googleapis.com/css2?family=Bytesized&family=Doto:wght,ROND@100..900,100&family=Nabla&family=Pixelify+Sans:wght@400..700&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .btn-primary {
    @apply flex justify-center w-1/12 bg-blue-400 rounded-lg hover:bg-blue-600 text-white cursor-pointer;
  }

  .pop-over-item3 {
    @apply shadow-2xl shadow-black flex flex-row text-center z-0 fixed bottom-10 right-3.5 h-8 lg:h-10 lg:w-72 mb-24 bg-white rounded-full border-[2.5px] lg:border-[3.5px] mr-12;
  }

  .pop-over-item2 {
    @apply shadow-2xl shadow-black flex flex-row text-center z-0 fixed bottom-10 right-3.5 h-8 lg:h-10 lg:w-72 mb-12 bg-white rounded-full border-[2.5px] lg:border-[3.5px] mr-12;
  }

  .pop-over-home {
    @apply shadow-2xl shadow-black flex flex-row text-center z-0 fixed bottom-10 right-3.5 h-8 lg:h-10 lg:w-72 bg-white rounded-full border-[2.5px] lg:border-[3.5px] mr-12;
  }

  .nav-button-base {
    @apply z-0 fixed bottom-10 right-3.5 h-8 w-8 lg:h-10 lg:w-10 bg-white rounded-full border-[2.5px] lg:border-[3.5px] shadow-xl shadow-gray-400 flex items-center justify-center transition duration-300 hover:scale-110;
  }

  .text-pop-over {
    @apply mt-1 mx-auto text-xs lg:text-base font-bold text-pretty;
  }

  .menu-item-base {
    @apply flex mx-auto mt-2 justify-center w-full my-12;
  }

  .menu-item {
    @apply rounded-lg transition-colors duration-200;
  }

  /* Faixa de navegação rolável sem a barra de rolagem visível */
  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }

  .glow-button {
    @apply before:blur-[30px] before:opacity-80 before:-z-10 before:absolute before:inset-[5px] before:bg-gradient-to-r;
  }

  .default-bg {
    @apply rounded-lg p-8 bg-[#202744] shadow-sm shadow-black w-5/6 mt-6 mx-auto border border-gray-700;
  }

  .admin-nav-buttons {
    @apply lg:px-4 px-2 py-2 rounded-md text-white hover:bg-indigo-300 transition duration-150 ease-in-out;
  }

  /* Tela de login (layouts/auth) */
  .label-auth {
    @apply mb-1.5 block text-xs font-semibold uppercase tracking-wide text-gray-400;
  }

  .input-auth {
    @apply w-full rounded-lg border-0 bg-[#191f37] px-4 py-3 text-white placeholder-gray-500 ring-1 ring-white/10 transition focus:outline-none focus:ring-2 focus:ring-[#00DFA2];
  }

  .btn-auth {
    @apply flex w-full cursor-pointer items-center justify-center rounded-lg bg-[#00DFA2] px-4 py-3 text-base font-bold text-[#0b1020] shadow-lg shadow-[#00DFA2]/20 transition hover:brightness-110 focus:outline-none focus:ring-2 focus:ring-[#00DFA2] focus:ring-offset-2 focus:ring-offset-[#202744];
  }

  /* Botões padrão do app.
     Regra: denso no mobile (py-1) e altura normal a partir de sm (py-2).
     Use estas classes nas views em vez de repetir as utilidades. */
  .button_primary {
    @apply inline-flex cursor-pointer items-center justify-center gap-2 rounded-lg bg-[#00DFA2] px-4 py-1 text-sm font-bold text-[#0b1020] shadow-lg shadow-[#00DFA2]/20 transition hover:brightness-110 sm:py-2;
  }

  .button_secondary {
    @apply inline-flex cursor-pointer items-center justify-center gap-2 rounded-lg bg-white/5 px-4 py-1 text-sm font-medium text-gray-200 ring-1 ring-white/10 transition hover:bg-white/10 hover:text-white sm:py-2;
  }

  .button_accent {
    @apply inline-flex cursor-pointer items-center justify-center gap-2 rounded-lg px-4 py-1 text-sm font-semibold text-[#00DFA2] ring-1 ring-[#00DFA2]/30 transition hover:bg-[#00DFA2]/10 sm:py-2;
  }

  .button_danger {
    @apply inline-flex cursor-pointer items-center justify-center gap-2 rounded-lg bg-[#EC5E4F]/15 px-4 py-1 text-sm font-semibold text-[#EC5E4F] ring-1 ring-[#EC5E4F]/30 transition hover:bg-[#EC5E4F]/25 sm:py-2;
  }

  .standard-plan {
    @apply select-none rounded-lg font-extrabold text-white bg-gradient-to-r from-gray-400 via-gray-400 to-gray-600 px-4 py-2 transition duration-300 ease-in-out shadow-lg shadow-gray-600;
  }

  .pro-plan {
    @apply select-none rounded-lg font-extrabold text-white bg-gradient-to-r from-gray-600 via-gray-900 to-black px-4 py-2 transition duration-300 ease-in-out shadow-lg shadow-indigo-600;
  }

  .pro-plus-plan {
    @apply select-none rounded-lg font-extrabold text-white bg-gradient-to-r from-yellow-400 via-yellow-400 to-yellow-600 px-4 py-2 transition duration-300 ease-in-out shadow-lg shadow-yellow-600;
  }
}

/* Céu da home (nebula_controller.js). O canvas WebGL cobre o fundo; sem WebGL2
   o controller marca .nebula-fallback e este gradiente segue as cores da seção
   pelas variáveis --nebula-*. */
.nebula-sky {
  background-color: var(--nebula-void, #07091a);
  background-image:
    radial-gradient(60% 45% at 12% 88%, var(--nebula-hot, #EC5E4F) 0%, var(--nebula-wine, #5c1a33) 40%, transparent 75%),
    radial-gradient(45% 30% at 22% 22%, var(--nebula-wine, #5c1a33) 0%, transparent 70%),
    radial-gradient(40% 30% at 80% 30%, var(--nebula-dusk, #3b1646) 0%, transparent 70%);
  transition: background-color 0.6s ease;
}

.nebula-fallback .nebula-sky canvas {
  display: none;
}

/* Entrada das seções. A classe .nebula-reveal só é posta por JS, e nunca com
   "reduzir movimento", então sem JS o conteúdo aparece normalmente. */
.nebula-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nebula-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.home-nebula__portal {
  height: min(31rem, calc(100vw - 2.5rem));
  aspect-ratio: 1 / 1;
  background-color: rgba(17, 22, 41, 0.5);
  background-image:
    radial-gradient(circle at 54% 46%, rgba(236, 94, 79, 0.2), transparent 48%),
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: auto, 14px 14px;
}

/* Banner de afiliado nas páginas públicas de promoções.
   O trilho repete a sequência duas vezes e cada item tem no mínimo 50vw, então
   uma metade do trilho (2 itens) cobre a tela inteira. A animação anda -50%,
   que é exatamente uma metade: o último quadro é idêntico ao primeiro e o texto
   que sai pela esquerda volta a entrar pela direita, sem salto. */
@keyframes nuuvem-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nuuvem-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: #191f37;
}

.nuuvem-marquee__track {
  display: flex;
  width: max-content;
  /* 56s = mesma velocidade de antes: o ciclo agora percorre 100vw (uma metade
     do trilho), o dobro dos 50vw que percorria em 28s. */
  animation: nuuvem-marquee-scroll 56s linear infinite;
}

.nuuvem-marquee__item {
  display: flex;
  flex: 0 0 max(50vw, 22rem);
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  color: #f3a3a0;
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}

.nuuvem-marquee__item:first-child:hover {
  color: #ffffff;
}

.nuuvem-marquee__item:first-child:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

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

.nuuvem-marquee:focus-within .nuuvem-marquee__track {
  width: 100%;
  transform: translateX(0);
  animation: none;
}

.nuuvem-marquee:focus-within .nuuvem-marquee__item {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.nuuvem-marquee:focus-within .nuuvem-marquee__copy {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .nuuvem-marquee__track {
    width: 100%;
    animation: none;
    justify-content: center;
  }

  .nuuvem-marquee__copy {
    display: none;
  }

  .nuuvem-marquee__item {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .nebula-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Barra de progresso do carrossel de promoções (deals_carousel_controller.js) */
@keyframes carousel-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.carousel-progress {
  transform-origin: left;
  animation: carousel-progress 7s linear forwards;
}

.carousel-paused .carousel-progress {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-progress {
    animation: none;
    transform: scaleX(1);
  }
}

/* Gradiente animado da marca, o mesmo da logo do blog (0rientd.dev): o
   gradiente azul/rosa desliza sobre o texto. Copiado sem font-size,
   font-weight e text-transform de propósito, para respeitar a tipografia de
   onde for aplicado. */
.logo-gradient {
  display: inline-block;
  color: #fff;
  background: linear-gradient(to right, #2980b9 10%, #ff7eb3 50%, #2980b9 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-gradient-slide 2.5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 126, 179, 0.3));
}

@keyframes logo-gradient-slide {
  to {
    background-position: 200% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-gradient {
    animation: none;
  }
}
/*
 * 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.
 *


 */
@tailwind base;
@tailwind components;
@tailwind utilities;
