/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  font-family: sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 4cm;
}

header h1 {
  font-size: 28px;
  flex: 1;
  text-align: center;
}

.menu {
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}

.profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #555;
}
.menu-links {
  display: none; /* começa escondido */
  position: absolute;
  top: 60px; /* logo abaixo do header */
  right: 20px; /* alinhado à direita do ícone */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  z-index: 1000;
  width: 200px;
}

.menu-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-links li {
  border-bottom: 1px solid #eee;
}

.menu-links li a {
  display: block;
  padding: 10px;
  color: #111;
  text-decoration: none;
}

.menu-links li a:hover {
  background-color: #f0f0f0;
}

/* MENU LATERAL */
#side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background: #111;
  padding-top: 100px;
  transition: 0.3s;
  z-index: 2000;
}

#side-menu a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

#side-menu a:hover {
  background: #222;
}

/* MOEDAS */
#moedas {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

#moedas .card {
  background: #111;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  width: 80px;
}

/* TICKER */
#ticker-wrapper {
  width: 100%;
  overflow: hidden;
  background: #0e0e0e;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

#ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerMove 25s linear infinite;
}

#ticker span {
  padding: 12px 28px;
  font-weight: bold;
  font-size: 14px;
}

#ticker span.up { color: #00c853; }
#ticker span.down { color: #ff5252; }

@keyframes tickerMove {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* PESQUISA */
#search-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

#search {
  display: flex;
  width: 80%;
  max-width: 500px;
}

#search input {
  width: 100%;
  height: 50px;
  font-size: 18px;
  border: 2px solid #000;
  border-radius: 6px 0 0 6px;
  padding: 0 15px;
}

#search button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 0 6px 6px 0;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
}

/* GRID TOPS */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.grid .card {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  width: 18%;
  text-align: center;
}

/* BANNERS */
.banner, .banner-news {
  background: #eee;
  height: 80px;
  margin: 10px 0;
  text-align: center;
  line-height: 80px;
  font-weight: bold;
}

/* RESULTADO */
#resultado {
  max-width: 600px;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* RODAPÉ */
footer {
  background: #111;
  color: #fff;
  padding: 30px 15px;
  text-align: center;
  font-size: 14px;
}

/* RESPONSIVO */
@media (max-width: 600px) {
  header h1 { font-size: 20px; }
  #search { width: 90%; }
  .grid .card { width: 45%; }
}