/* 🎨 Definição das Variáveis de Cores */
:root {
  --white: #fff;
  --black: #000;
  --gray-50: #f9fafb;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-650: #3a4458;
  --gray-700: #2d3748; /* #374151 */
  --gray-900: #1a202c;
  --gray-950: #1d1d1d;

  --secondary: #2a7e97;
  --secondary-g: #2f855a;

  --border-radius-default: 0.5rem;
}


/* 🎨 ESTILO GLOBAL */
body {
  background-color: var(--gray-200); /* bg-gray-200 */
}
html, body {
  height: 100%;
  margin: 0;
}
.wrapper {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 100vh; /* ocupa no mínimo a altura total da viewport */
}
main {
  flex: 1; /* empurra o footer pro fundo quando necessário */
}

/* 🔹 REMOVER O EFEITO DE FOCUS DOS INPUTS */
input:focus, textarea:focus, select:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit; /* Mantém a borda normal */
}

/* #footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
} */

/* 🔹 HEADER PRINCIPAL */
.header {
  display: flex;
  width: 100%; /* Ocupa toda a largura disponível */
  background-color: var(--gray-900); /* bg-gray-900 */
}
.header-container {
  display: flex;
  width: 100%; /* Ocupa toda a largura disponível */
  justify-content: start; /* space-between; */
  max-width: 72rem; /* Limite para telas grandes*/
  margin: auto; /* Centraliza o header */
  padding: 1rem 2rem; /* Adiciona espaço interno */

  color: white;
}

/* 🔹 HEADER TÍTULO */
.header-title {
  font-size: 1.875rem; /* text-3xl */
  font-weight: bold;
  text-align: start;
  cursor: pointer;
  display: inline-block;
  position: relative;
}


/* 🔹 BOTÃO LIMPAR PESQUISA */
.clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.clear-btn:hover {
  color: var(--gray-600);
}

/* 📌 CONTAINER PRINCIPAL */
.main-container {
  display: flex;
  max-width: 72rem;
  width: 100%; /* Ocupa toda a largura disponível */
  margin: auto;
  padding: 1rem;
}

/* 📌 CONTAINER PRINCIPAL */
.content-container {
  width: 75%; /* w-3/4 */
  background-color: #e5e7eb; /* bg-gray-200 */
  margin-right: 1rem; /* mr-4 */
  border-radius: 0.5rem; /* rounded-lg */
}
.content-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;  /* font-bold */
  color: var(--gray-700);    /* text-gray-700 */
  text-align: center;
}

/* 🏗️ SECTION CONTENT */
.content {
  width: 75%;
}

/* 🟩 CAIXA PRINCIPAL */
.card {
  background-color: white;
  margin-right: 1rem;
  border-radius: var(--border-radius-default);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 📌 PADDING */
.card-padding {
  padding: 1.5rem;
}

/* 🏗️ TITULO */
.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}
.card-content {
  font-size: 0.9rem;
}

/* 📌 LINHA SEPARADORA */
.divider {
  border-top: 1px solid var(--gray-200);
}

/* 🎯 SEÇÃO GERADOR */
.generator-section {
  background-color: var(--gray-100);
  padding: 1.5rem;
}

/* 🔹 ESTILO DO ITEM DO MENU */
.menu-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  /* padding: 4px 16px; px-4 py-1 */
  width: 100%;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gray-600);
  transition: background-color 0.3s;
  border-bottom: solid 1px var(--gray-200);
  /* transition: background-color 0.3s, color 0.3s; */
}
.menu-item:hover {
  background-color: var(--gray-100);
  color: var(--secondary);
}
.menu-item:hover i {
  color: var(--secondary);
}
.menu-selected:hover i {
  background-color: var(--gray-700);
  color: var(--white);
  cursor: default;
}

.menu-title {
  color: var(--gray-600);
  font-weight: bold;
  text-transform: uppercase;
  padding: 8px 16px 8px 16px;
  cursor: default;
}
.menu-version {
  color: var(--gray-300);
  padding: 8px 16px 0 16px;
  text-align: center;
  transition: color 0.3s;
  cursor: default;
}
.menu-version:hover {
  color: var(--gray-600);
}

.menu-selected {
  background-color: var(--gray-700);
  color: var(--white);
  cursor: default;
}
.menu-selected:hover {
  background-color: var(--gray-700);
  color: var(--white);
  cursor: default;
}

/* 🔹 ESTILO DO ITEM DO MENU INFERIOR */
.menu-item-bottom {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  width: 100%;
  font-weight: bold;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-200);
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.4rem;
}
.menu-item-bottom:hover {
  background-color: var(--gray-50);
  color: var(--secondary);
  text-decoration: underline;
}


/* 🎯 CONTAINER DO CHECKBOX */
.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}
.checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-600);
  border-radius: 4px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.checkbox:checked {
  background-color: var(--gray-600);
  border-color: var(--gray-600);
  width: 20px;
  height: 20px;
}
.checkbox-icon {
  position: absolute;
  left: 3px;
  top: 5px;
  width: 20px;
  height: 20px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}
.checkbox:checked + .checkbox-icon {
  opacity: 1;
}
.checkbox-label {
  font-size: 1rem;
  color: var(--gray-950);
  cursor: pointer;
}

/* 🎯 BOTÃO GERAR RESULTADO */
.generate-btn {
  background-color: var(--gray-600);
  color: white;
  padding: 0.75rem 2rem;
  margin-top: 1rem;
  border-radius: var(--border-radius-default);
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}
.generate-btn:hover {
  background-color: var(--gray-700);
}

/*============================================================
==================  CAMPO DO RESULT GERADO  ==================
============================================================*/
.result-container {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-default);
  padding: 0.5rem 1rem;
  width: 50%;
  font-size: 1.125rem;
  font-weight: bold;
  background-color: var(--gray-100);
}
.result-input {
  width: 100%;
  cursor: default;
  text-align: start;
  color: var(--gray-900);
  background-color: var(--gray-100);
  border: none;
  outline: none;
}
.result-label {
  font-weight: bold;
  color: var(--gray-500);
}

/* 🔹 Quando dentro do .responsive-grid, muda para 100% */
.responsive-grid .result-container, 
.container-100 {
  width: 100%;
}

.custom-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-default);
  padding: 0.5rem 1rem;
  width: 100%;
  font-size: 1.125rem;
  background-color: var(--white);
}
.custom-input-label {
  font-weight: bold;
  color: var(--gray-500);
}

.textarea-auto {
  width: 100%;
  min-height: 100px;
  font-size: 1rem;
  line-height: 1.6;
  column-count: 2; /* 👈 define duas colunas */
  column-gap: 2rem; /* espaço entre colunas */
  resize: vertical;
  overflow: auto;
  white-space: pre-wrap;
  outline: none;
}


/*============================================================
==================    ELEMENTO DE SELECT    ==================
============================================================*/
.custom-select {
  padding: 10px;
  border: 1px solid var(--gray-300);
  border-radius: 5px;
  font-size: 1rem;
  background-color: white;
}
.input-group {
  margin-bottom: 8px;
  margin-top: 8px;
  display: grid;
}
.custom-select:disabled {
  background-color: var(--gray-200);
  cursor: not-allowed;
}

.width-middle {
  width: 50%;
}
.width-full {
  width: 100%;
}

/*============================================================
==================     BOTÃO DE COPIAR     ===================
============================================================*/
.copy-btn {
  margin-left: 0.5rem;
  color: var(--gray-500);
  transition: color 0.3s;
  position: relative;
}
.copy-btn:hover {
  color: var(--gray-600);
}
.copy-btn i {
  color: var(--gray-400);
}
.copy-btn i:hover {
  color: var(--gray-900);
}

/*============================================================
==================     ELEMENTO TOOLTIP     ==================
============================================================*/
.copy-tooltip {
  position: absolute;
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
  background-color: var(--gray-900); /* bg-gray-900 */
  color: white;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.copy-btn:hover .copy-tooltip {
  opacity: 1;
}

.tool-notice {
  padding: 1rem;
  color: var(--gray-600);
}

/*============================================================
==================     TELA DE LOADING     ===================
============================================================*/
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid var(--gray-600); /* Cor principal */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/*============================================================
================  CAMPO DE BUSCA FERRAMENTA  =================
============================================================*/
.search-wrapper {
  display: flex;
  justify-content: flex-end;
  flex-grow: 0; /* Impede que a busca cresça além do necessário */
}
.search-nav {
  display: none;
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
}
.search-container {  
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-default);
  padding: 0.5rem 1rem;
  width: 100%;
  font-size: 1rem;
  background-color: var(--gray-100);
  position: relative;
}
.search-input {
  width: 100%;
  cursor: text;
  text-align: start;
  color: var(--gray-300);
  background-color: var(--gray-100);
  border: none;
  outline: none;
  font-size: 1rem;
}

/*============================================================
==================  BOTÃO DE LIMPAR BUSCA  ===================
============================================================*/
.clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.clear-btn:hover {
  color: var(--gray-300);
}

/*============================================================
==================       MENU LATERAL       ==================
============================================================*/
.sidebar {
  height: min-content;
  width: 25%;
  background-color: white;
  border-radius: var(--border-radius-default);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.drawer-button {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.drawer-button:hover {
  color: var(--gray-300); /* Hover verde igual ao efeito do menu */
}
.close-button {
  display: block;
  right: 0.7rem;
  margin-left: 0.7rem;
  color: var(--gray-500);
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}
.close-button:hover {
  color: var(--gray-900); /* Hover verde igual ao efeito do menu */
}

/*============================================================
==================      BOTÃO COM IMG       ==================
============================================================*/
.borded-image-btn {
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  border: 1px solid var(--gray-400);
  border-radius: var(--border-radius-default);
  width: 10rem;
  height: 2.5rem;
  background-color: var(--white);
  padding: 0.5rem;
  cursor: pointer;
  gap: 0.5rem; /* Adiciona um espaçamento entre a imagem e o texto */
}
.borded-image-btn img {
  width: 2rem; /* Ajuste para um tamanho razoável */
  height: auto;
}

/*============================================================
==================      GRID TEMPLATE       ==================
============================================================*/
.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 10px;
}
.responsive-grid {
  display: grid;
  gap: 10px; /* Espaçamento entre os elementos */
  grid-template-columns: repeat(3, 1fr); /* 3 colunas padrão */
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 8px;
}
.responsive-grid-item {
  background-color: #f7f7f7;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-size: 1rem;
  border: 1px solid #ddd;
}
.grid-6 {
  grid-template-columns: repeat(5, 1fr); /* 3 colunas padrão */
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr); /* 3 colunas padrão */
}
/* GRID DA PÁGINA INICIAL */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}
.card-home {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* mantém o quadrado */
  background-color: #f3f3f3;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  align-content: center;
  cursor: pointer;
  padding: 0.5rem;
  margin: auto;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size 0.6s ease, width 0.3s ease;
}
.card-home:hover {
  background-size: 115%;
  width: 95%;
  margin: auto;
}
.card-home .card-text {
  position: relative;
  color: var(--white);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgb(0, 0, 0);
  top: 0.5rem;

  transition: top 0.4s ease; /* bounce-ish easecubic-bezier(0.34, 1.56, 0.64, 1) */
}
.card-home:hover .card-text {
  top: 3.5rem;
}

.card-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  filter: blur(0.12rem);
  transition: transform 0.4s ease, filter 0.6s ease;
}

.card-home:hover::before {
  transform: scale(1.2);
  filter: blur(0.025rem);
}
.card-home > * {
  position: relative;
  z-index: 2;
}

/* Camada com filtro escuro */
.card-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* overlay escuro */
  z-index: 1;
  transition: opacity 0.6s ease;
  opacity: 1;
}
.card-home:hover::after {
  opacity: 0;
}

/* ALINHAMENTO TEXTO HEADER */
.header-subtitle {
  padding-top: 1.2rem;
  padding-left: 0.2rem;
  font-size: 14px;
  color: white;

}

.politicas-link {
  padding-top: 0.4rem;
}

.container {
  max-width: 64rem;
  margin: auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}
.tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  font-weight: bold;
  color: #555;
}
.tab.active {
  border-bottom: 3px solid var(--secondary);
  color: var(--secondary);
}
.content-terms {
  display: none;
  padding: 1rem;
}
.content-terms.active {
  display: block;
}
h3 {
  text-decoration: underline;
  font-weight: 600;
}


/* LISTA DE PRODUTOS DINÂMICA */
/* body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
} */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

.product-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: box-shadow 0.3s;
  padding: 1rem;
}

.product-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: white;
  margin-bottom: 1rem;
}

.product-title {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  font-size: 1rem;
  text-align: center;
}

.product-link {
  margin-top: auto;
  padding: 0.5rem;
  background: #ff9900;
  color: white;
  border: none;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
}
.product-link:hover {
  background: #e68a00;
}

/*=============================================================
================== RESPONSIVIDADE DO PROJETO ==================
=============================================================*/

@media (max-width: 1150px) {
  
}

/* 🔹 MEDIA QUERY PARA TELAS PEQUENAS (MOBILE E TABLET) 768px */
@media (max-width: 800px) {
  .search-wrapper {
    display: none;
  }
  .politicas-link {
    display: none;
  }

  .search-nav {
    display: flex;
  }

  .search-container {  
    border: 1px solid var(--gray-650);
    color: var(--gray-900);
    background-color: var(--gray-300);
  }

  .search-input {
    color: var(--gray-900);
    background-color: var(--gray-300);
  }

  .drawer-button {
    display: block;
  }

  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background: white;
    box-shadow: 0px 0 500px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Adiciona scroll caso o conteúdo ultrapasse */
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%); /* Escondido fora da tela */
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .sidebar.open {
    display: block;
    transform: translateX(0);
  }

  .content,
  .result-container,
  .card-grid,
  .generate-btn,
  .width-middle,
  .content-container {
    width: 100%;
  }

  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-6 {
    grid-template-columns: repeat(5, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(1, 1fr);
  }

  .card-home:hover .card-text {
    top: 2rem;
  }
}

/* 🔹 MEDIA QUERY PARA TELAS PEQUENAS TABLET 640px */
@media (max-width: 640px) {
  .sidebar {
    width: 75vw;
    height: 100vh;
  }
  .grid-6 {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-home:hover .card-text {
    top: 0.5rem;
  }
}

@media (max-width: 500px) {
  
}

/* 🔹 MEDIA QUERY PARA TELAS PEQUENAS MOBILE 1 COLUNA 768px */
@media (max-width: 440px) {
  .responsive-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .card-home:hover .card-text {
    top: 2.5rem;
  }
}














/* LOADER DE PALAVRAS DO HEADER */
.loader-words {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 8px;
}
.words-anim {
  overflow: hidden;
  position: relative;
}
.words-anim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--bg-color) 10%,
    transparent 30%,
    transparent 70%,
    var(--bg-color) 90%
  );
  z-index: 20;
}
.word-animated {
  display: block;
  height: 100%;
  padding-left: 4px;
  margin-top: -0.02rem;
  color: var(--gray-400); /* #78c2df; */
  animation: header_spin 7s infinite;
}

@keyframes header_spin {
  10% {
    -webkit-transform: translateY(-102%);
    transform: translateY(-102%);
  }

  25% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35% {
    -webkit-transform: translateY(-202%);
    transform: translateY(-202%);
  }

  50% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }

  60% {
    -webkit-transform: translateY(-302%);
    transform: translateY(-302%);
  }

  75% {
    -webkit-transform: translateY(-300%);
    transform: translateY(-300%);
  }

  85% {
    -webkit-transform: translateY(-402%);
    transform: translateY(-402%);
  }

  100% {
    -webkit-transform: translateY(-400%);
    transform: translateY(-400%);
  }
}
