/* Importação de Componentes */
@import url('components/patrocinador-card.css');

/* poppins-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/poppins-v23-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v23-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/poppins-v23-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v23-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v23-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/poppins-v23-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Variáveis Globais (Tema) */
:root {
  --cor-primaria: #007bff;
  --cor-primaria-hover: #0056b3;
  --cor-fundo-navbar: #001f3f;
  --cor-fundo-banner: #001933;
  --cor-fundo-claro: #f5f7fa;
  --cor-texto-claro: #ffffff;
  --cor-texto-escuro: #333;
  --cor-sucesso: #25D366;
  --cor-sucesso-hover: #20ba5a;
  --cor-erro: #ff3c3c;
  --cor-patrocinador-card: #294c80;
}

/* Reset e Fonte */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body {
  background-color: var(--cor-fundo-claro);
  color: var(--cor-texto-escuro);
}

/* Classe para esconder elementos visualmente, mas mantê-los para leitores de tela */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--cor-fundo-navbar);
  padding: 0.5rem 2rem;
  position: relative;
}

.logo-container {
  user-select: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container img {
  width: 45px;
  height: auto;
}

.logo-container h1 {
  color: var(--cor-texto-claro);
  font-size: 1.2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--cor-texto-claro);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
color: var(--cor-primaria);
}

.menu-toggle {
  display: none;
  color: var(--cor-texto-claro);
  font-size: 1.5rem;
  cursor: pointer;
}
.search-wrapper {
  position: relative;
  margin-left: 4rem;
  display: flex;
  align-items: center;
  background: var(--cor-texto-claro);
  border-radius: 8px;
  padding: 0 0.5rem;
  height: 40px;
}

.search-wrapper input {
  border: none;
  outline: none;
  padding: 0.5rem;
  font-size: 0.9rem;
  background: transparent;
  width: 180px;
}

.search-icon {
  color: #888;
  font-size: 1.2rem;
}

.results-container {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%; 
  background: white;
  z-index: 999;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  display: none;
}

.results-container.active {
  display: block;
}

.result-item {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  gap: 0.6rem;
  cursor: pointer;
}

.result-item:hover {
  background-color: #f1f1f1;
}

.result-item img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.search-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--cor-texto-claro);
  margin-left: auto;
  cursor: pointer;
}

.clear-search {
  font-size: 1.2rem;
  display: none;
  /* Estilos de botão resetados */
  background: none;
  border: none;
  position: absolute;
  right: 0.5rem;
}

/* Banner */
.banner {
  position: relative;
  background-color: var(--cor-fundo-banner);
  padding: 2rem 2rem;
  text-align: center;
  overflow: hidden;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-content h2 {
  color: #e1f1ff;
  margin-bottom: 1rem;
}

.banner-content p {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #f0f0f0;
}

.banner-content .btn {
  background-color: var(--cor-primaria);
  color: var(--cor-texto-claro);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.banner-content .btn:hover {
  background-color: var(--cor-primaria-hover);
}

.banner-bg {
  background-image: image-set(
    url('../assents/webp/header.webp') type('image/webp'),
    url('../assents/header.png') type('image/png')
  );
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(8px);
  opacity: 0.1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader.hidden {
  display: none;
}

.loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--cor-primaria);
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Rodapé */
.footer {
  background-color: var(--cor-fundo-navbar);
  color: var(--cor-texto-claro);
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

.footer a {
  color: #e1f1ff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--cor-primaria);
}
  /* WhatsApp Floating Icon */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--cor-sucesso);
  color: var(--cor-texto-claro);
  border-radius: 50%;
  padding: 15px;
  font-size: 24px;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--cor-sucesso-hover);
}

@media (max-width: 1050px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--cor-texto-claro);
    cursor: pointer;
    z-index: 1001;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--cor-fundo-navbar);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    display: none;
    width: 200px;
    z-index: 1000;
    border-radius: 0 0 0 8px;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Estilos para botões de ícone */
.icon-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .logo-container {
    flex-direction: row;
    align-items: center;
    max-width: 70%;
    gap: 0.5rem;
  }

  .logo-container h1 {
    font-size: 0.9rem;
  }
  
  .search-wrapper {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0 25px;
    z-index: 1000;
    background: white;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  .search-wrapper.active {
    display: flex;
  }

  .search-toggle {
    display: block;
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--cor-texto-claro);
    cursor: pointer;
    z-index: 1001;
  }

  .sidebar {
    display: none;
  }

  .filtro-mobile-toggle {
    display: flex;
  }
}