@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

/* altura aproximada do topbar usada para posicionar a sidebar abaixo do botão (IA)*/
:root {
  --topbar-height: 56px;
}

.main {
  position: relative;
  width: 100%;
  margin-top: -140px;
  padding: 80px 36px 0px 36px;
  max-width: 100%;
  z-index: 3;
  background: linear-gradient(to bottom,
      transparent 0%,
      #0b0b0d 150px,
      #0b0b0d calc(100% - 400px),
      rgba(11, 11, 13, 0) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

* {
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: linear-gradient(180deg, #071022 0%, #0b0b0d 60%);
  color: #fff;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: #000000cc;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.search-container {
    flex-grow: 1; /* Permite que o container de busca ocupe o espaço no meio do topbar (IA)*/
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 20px;
}

.search {
    min-width: 200px;
    padding: 8px 12px;
    border-radius: 22px;
    border: none;
    background: #111;
    color: #ddd;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

.search:focus {
    border-color: #23629e;
    outline: none;
}


.no-results {
    text-align: center;
    color: #aaa;
    margin-top: 40px;
    font-size: 1.1rem;
}

#resultsContainer {
    margin-bottom: 40px; 
}

.logo {
  font-weight: 700;
  color: #e8eef6;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #ddd;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-btn--highlight {
  background: white;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.menu-btn {
  font-size: 24px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
}

/* Garante que o botão do menu fique acima da sidebar quando necessário (IA) */
.menu-btn {
  position: relative;
  z-index: 40;
}

.sidebar {
  position: fixed;
  left: 0;
  /* posiciona a sidebar logo abaixo do topbar/menu; (IA) */
  top: calc(var(--topbar-height) + 8px);
  bottom: 0;
  width: 130px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.73);
  backdrop-filter: blur(6px);
  border-right: 1px solid black;
  transform: translateX(-250px);
  transition: transform 0.35s ease;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Quando a sidebar estiver escondida não deve capturar cliques (IA) */
.sidebar:not(.show) {
  pointer-events: none;
}

.sidebar.show {
  transform: translateX(0);
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar nav li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

.sidebar nav li.active {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: #fff;
  transform: translateX(4px);
}

.banner,
.banner2 {
  position: relative;
  height: 85vh;
  min-height: 500px;
  width: 100%;
  overflow: hidden;
  background: #000;
  margin: 0;
  display: flex;
  align-items: center;
}

.banner img,
.banner2 .slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.banner-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px;
  z-index: 2;
  background-image: linear-gradient(to bottom,
      transparent 0%,
      rgba(11, 11, 13, 0.4) 40%,
      #0b0b0d 90%,
      #0b0b0d 100%);
  pointer-events: none;
}

.banner-content {
  position: absolute;
  bottom: 120px;
  left: 36px;
  z-index: 3;
  max-width: 600px;
}

.banner-content,
.banner2 .banner-content {
  position: relative;
  z-index: 3;
  padding: 28px;
  max-width: 50%;
}

.banner h2 {
  font-size: 34px;
  margin: 0 0 10px;
}

.banner p {
  color: var(--muted);
  margin: 0 0 18px;
}

.banner2 input {
  display: none;
}

.banner2 .slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.8s ease;
}

.banner2 .slide {
  width: 100%;
  position: relative;
}

.banner2 .banner-controls {
  position: absolute;
  bottom: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.banner2 .ctrl {
  cursor: pointer;
  font-size: 32px;
  color: #ffffffaa;
  transition: 0.3s;
}

.banner2 .ctrl:hover {
  color: white;
}

.row {
  margin: 22px 0;
}

.row h3 {
  margin-bottom: 12px;
  color: #fff;
}

.row.vertical {
  margin: 30px 0;
}

.row.vertical .card {
  width: 180px;
  height: 280px;
}

.row.vertical .card img {
  object-fit: fill;
}

.carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 15px;
  padding-top: 15px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: -20px;
  margin-right: -20px;
}

.carousel::-webkit-scrollbar {
  height: 10px;
}

.carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, rgb(73, 12, 12) 13%, rgb(25, 85, 141));
  border-radius: 4px;
}

.card {
  background-color: white;
  flex: 0 0 auto;
  width: 265px;
  height: 160px;
  background: #111;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 0 0px #ffffff;
  transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
  z-index: 1;
}

.card:hover {
  box-shadow: 0 0 0 2px #ffffff;
  z-index: 10;
  transform: scale(1.07);
}

.card img {
  background-color: white;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.card-grid {
    display: flex;
    flex-wrap: wrap; /* Permite a quebra de linha (cards em pé) (IA) */
    gap: 25px;       
    padding: 15px;
}

.card-vertical {
    width: 180px;
    height: 280px;
}


.card-vertical img {
    object-fit: cover; 
}

.footer {
  margin-top: 30px;
  padding: 90px 10px 40px 10px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
}


/* DB Streams Columns, parte da integração (IA) */
#dbstreamsColumns .row {
  margin: 22px 0;
}
#dbstreamsColumns h3 {
  margin-bottom: 12px;
  color: #fff;
}

#dbstreamsColumns .columns {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px;
}

#dbstreamsColumns .column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

#dbstreamsColumns .column .card {
  width: 180px;
  height: 280px;
  flex: 0 0 auto;
}
#dbstreamsColumns .column .card img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Filtros ao lado da busca (selects pequenos) (IA) */
.search-filter {
  margin-left: 8px;
  background: #111;
  color: #ddd;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 10px;
  height: 36px;
  font-size: 0.95rem;
}

.btn.small {
  margin-left: 8px;
  background: transparent;
  color: #ddd;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 18px;
  cursor: pointer;
}


.sr-only { /* Classe para acessibilidade (IA) */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .main {
    padding: 12px;
  }

  .banner-content,
  .banner2 .banner-content {
    max-width: 100%;
  }

  .toggleSidebar {
    display: inline-block;
  }
}