:root {
  --bg-color: #ffffff;
  --primary-color: #00bfa5;
  --accent-color: #a7ffeb;
  --text-color: #333;
  --header-bg: #00bfa5;
  --footer-bg: #f2f2f2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--header-bg);
  padding: 1em;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.3em 0.6em;
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: var(--accent-color);
  color: #000;
}

.perfil-container {
  position: relative;
}

#perfil-btn {
  width: 36px;
  height: 36px;
  background-color: white;
  border-radius: 50%;
  background-image: url('https://cdn-icons-png.flaticon.com/512/847/847969.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color 0.3s, transform 0.2s;
  cursor: pointer;
}

#perfil-btn:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

.perfil-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  width: 220px;
  display: none;
  padding: 1.5em 1em;
  text-align: center;
  z-index: 1000;
}

.perfil-menu img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 0.5em;
  object-fit: cover;
}

.perfil-menu h4 {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: #333;
}

.perfil-menu a.button {
  display: block;
  width: 100%;
  margin: 0.3em 0;
  padding: 0.6em;
  border: none;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.perfil-menu a.button:hover {
  background-color: #00997e;
}

main {
  flex: 1;
  padding: 2em;
}

main h2 {
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

.video-section {
  margin-top: 3em;
}

.video-track {
  display: flex;
  overflow-x: auto;
  gap: 1em;
  scroll-behavior: smooth;
  padding-bottom: 1em;
  scrollbar-width: none;
}

.video-track::-webkit-scrollbar {
  display: none;
}

.video-item {
  flex: 0 0 auto;
  width: 340px;
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.video-item iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.ver-mais-link {
  display: block;
  text-align: right;
  margin-top: 0.5em;
}

.ver-mais-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.ver-mais-link a:hover {
  color: #00796b;
}

footer {
  background-color: var(--footer-bg);
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  margin-top: auto;
}

.button {
  display: block;
  width: 100%;
  margin: 0.3em 0;
  padding: 0.6em;
  border: none;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  font-size: 1em;
  text-decoration: none; /* REMOVE SUBLINHADO */
}

.button:hover {
  background-color: #00997e;
}

.pontuacao-badge {
  color: #d46d06;
  font-weight: bold;
  font-family: "Segoe UI", sans-serif;
  font-size: 1em;
}

#pdf-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2em;
  margin-top: 1em;
}

.pdf-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
  transition: box-shadow 0.3s;
  min-height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-item:hover {
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
  transform: translateY(-6px);  /* sobe 6px para cima */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);  /* sombra maior */
}

.pdf-item img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1em;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.2);
}

.pdf-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  width: 100%;
  text-align: center;
}

.pdf-info strong {
  font-size: 1.1em;
  color: var(--primary-color);
}

.pdf-info .button {
  width: 100%;
  max-width: 140px;
  padding: 0.5em;
  font-size: 0.9em;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  transition: background-color 0.3s;
}

.pdf-info .button:hover {
  background-color: #00997e;
}

#search-box {
  max-width: 400px;
  width: 100%;
  padding: 0.6em 1em;
  border-radius: 8px;
  border: 1.5px solid var(--primary-color);
  font-size: 1em;
  color: var(--text-color);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  box-shadow: none;
}

#search-box::placeholder {
  color: #999;
  font-style: italic;
}

#search-box:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-color);
}

html {
  overflow-y: scroll;        /* garante que o scroll funcione */
  scrollbar-width: none;     /* Firefox */
}

html::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Edge */
}

.video-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  padding: 1em 0;
}

.video-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1em;
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 800px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-6px);  /* sobe 6px para cima */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);  /* sombra maior */
}

.video-item iframe {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  margin-bottom: 1em;
}

.video-info {
  text-align: center;
}

.video-info strong {
  display: block;
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.video-info .button {
  margin: 0 0.3em;
}


.buttons-like-dislike {
  display: flex;
  justify-content: center; /* Centraliza horizontalmente */
  gap: 1em; /* Espaço entre os botões */
  margin-top: 0.5em;
}

#game-track {
  display: grid;
  grid-auto-flow: column; /* Faz as células virem em colunas, 1 linha */
  grid-auto-columns: minmax(220px, 1fr); /* Largura das colunas */
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1em;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

#game-track::-webkit-scrollbar {
  display: none;
}

.xuba-play-button {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.6em 0;
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.xuba-play-button:hover {
  background-color: #e67e22;
}
