/* Reset simples */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  min-height: 200vh;      /* forçar rolagem */
  padding-top: 60px;      /* espaço para navegação fixa */
  padding-bottom: 50px;   /* espaço para rodapé fixo */
}

/* -------------------------------------------------
   NAVBAR FIXA (tipo YouTube)
---------------------------------------------------*/
nav.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #202020;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
}

nav.top-nav .logo {
  font-size: 1.2em;
  font-weight: bold;
  margin-right: 20px;
}

nav.top-nav input.search {
  flex: 1;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
}

/* -------------------------------------------------
   RODAPÉ FIXO
---------------------------------------------------*/
footer.footer-fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  background-color: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------
   LAYOUT COM DUAS COLUNAS
---------------------------------------------------*/
.container {
  display: flex;
  margin: 20px;
}

/* Conteúdo principal — static */
.main {
  flex: 2;
  margin-right: 20px;
  background: #f4f4f4;
  padding: 16px;
  position: static; /* padrão */
}

/* -------------------------------------------------
   EXEMPLO RELATIVE + ABSOLUTE
---------------------------------------------------*/
.relative-box {
  position: relative;
  background: #d0e0f0;
  padding: 20px;
  margin-bottom: 20px;
}

.absolute-child {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 100, 100, 0.8);
  padding: 8px;
  color: white;
}

/* -------------------------------------------------
   SIDEBAR STICKY
---------------------------------------------------*/
.sidebar {
  flex: 1;
  background: #e0f7e0;
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 80px; /* “cola” quando chega nesse ponto */
}

.sidebar p {
  margin-bottom: 10px;
}
