/* --- Reset básico --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(160deg, #000010, #001122);
  margin: 0.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: Georgia, serif;
  color: #fff;
}

/* --- Intro --- */
#intro {
  margin: 3rem;
  font-size: 1.7rem;
  text-align: center;
  color: #00f0ff;
  letter-spacing: 1px;
  animation: showDown2 1.8s ease forwards;
  text-shadow: 0 0 6px #113344, 0 0 13px #11ddff;
}

/* --- Barra de busca --- */
#searchBar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  margin: 2rem 1rem;
  animation: showDown2 1s ease forwards;
}

#searchBar button {
  background-color: rgba(0,0,0,0.3);
  border: 2px solid #00f0ff;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#searchBar button:hover {
  background-color: #00f0ff33;
  transform: scale(1.1);
}

#searchInput {
  width: 100%;
  height: 2.2rem;
  outline: none;
  background-color: rgba(0,0,102,0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(0,180,255,0.4);
  color: white;
  border: 2px solid #00f0ff;
  border-radius: 12px;
  padding-left: 2em;
  font-family: monospace;
  font-size: 95%;
  transition: all 0.2s ease;
}

#searchInput:focus {
  box-shadow: 0 0 30px #00f0ff, 0 0 50px #11ddff;
  border-color: #11ddff;
}

/* --- Containers de cards --- */
.container {
  margin: 1rem 0.6rem;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  border-radius: 16px;
  border: 1px solid #11ddff;
  background-color: rgba(34,51,85,0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(0,180,255,0.5), 0 0 50px rgba(17,119,155,0.2);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: showDown 1s ease forwards;
}

.container:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0,255,255,0.6), 0 0 60px rgba(17,119,155,0.3);
  border-color: #00f0ff;
}

.container:active {
  transform: translate(2px, 2px);
  background-color: rgba(255,255,255,0.1);
  border-color: #11ddff;
}

/* --- Conteúdo inline --- */
.inline {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inline h4 {
  color: #113344;
}

.inline span {
  color: #11ff77;
  font-weight: 500;
}

.inline p {
  color: #ddd;
  font-weight: 400;
  font-size: 75%;
}

.top {
  text-align: right;
  font-size: 85%;
  color: #3399ff;
}

/* --- Imagens --- */
img {
  width: 16vh;
  height: auto;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00f0ff, 0 0 30px #11ddff;
}

/* --- Links --- */
.container a:link, a:visited {
  text-decoration: none;
  color: #00ffff;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: #44a;
  text-shadow: 0 0 5px #11faee, 0 0 10px #118899;
}

a:active {
  color: #00f0ff;
}

/* --- Conf / Accordion --- */
.conf {
  background-color: rgba(17,51,119,0.5);
  color: white;
  margin: 0.6rem;
  padding: 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  border: 1px solid #11ddff;
  border-radius: 16px;
}

.conf details[open] {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-size: 90%;
  color: white;
  font-family: Georgia;
  background-color: #113377cc;
  border: 1px dotted #11ddff;
  padding: 8px;
  border-radius: 16px;
}

/* --- Footer --- */
#footer {
  margin: 2rem;
  text-align: center;
  opacity: 0.9;
  color: #888;
  font-family: sans-serif;
  font-weight: 500;
}

/* --- Animações --- */
@keyframes showDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showDown2 {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* --- Desktop layout --- */
@media (min-width: 1024px) {
  body {
    padding: 0 15%;
  }

  #searchBar {
    width: 50%;
    margin: 2rem auto;
  }

  main, section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 20px;
  }

  .container {
    margin: 0;
    max-width: 600px;
  }

  img {
    width: 120px;
    height: auto;
  }
}
