@import url('https://fonts.googleapis.com/css2?family=Anton&family=Dosis:wght@200..800&family=Fira+Code:wght@300..700&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Shadows+Into+Light&display=swap');

body {
  margin: 0 auto;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

header {
  text-align: center;
  margin: 20px;
  width: 100%;
}

nav {
  position: sticky;
  top: 0;
  background: white;
  width: 100%;
  max-width: 1000px;
  border-bottom: #ccc solid 1px;
  border-top: #ccc solid 1px;
  margin: 0 0 20px 0;
  z-index: 100;
}

.circle {
  width: 180px;
  height: 180px;
  border: 2px solid #002b36;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 16px;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #333;
  padding: 10px;
  position: absolute;
  right: 10px;
  top: 0;
}

.menu {
  margin: 8px;
  font: 200 25px "Dosis", sans-serif;
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
}

.menu a {
  padding: 0 8px;
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease;
}

.menu a:hover {
  color: #fff;
  background-color: #281735;
}

.menu input[type="text"] {
  padding: 6px 10px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border 0.3s ease;
  height: 18px;
}

.menu input[type="text"]:focus {
  border-color: #666;
}

#main-content {
  width: 100%;
  max-width: 1000px;
  padding: 0 15px;
  box-sizing: border-box;
}

.post-card {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #fcfbfb;
  box-sizing: border-box;
  flex: 1 1 30%;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  width: 100%;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background-color: #fff;
  border-color: #999;
}
.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.post-card h2 {
  font-size: 1.5rem;
  margin: 10px 0 5px;
}

.post-card p {
  font-size: 1.3rem;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
.post-card a{
  color: #000;
  text-decoration: none;
}

.post-card small {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.post-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.post-grid p, .post-grid h2 {
  margin: 3px 0;
}

.post-tags {
  margin-top: 30px;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#tagsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  background-color: #f1f3f5;
  color: #222;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.home {
  border-bottom: #ccc 1px solid;
}

pre {
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 0.4em 0.4em;
  font-size: 1.2rem;
  line-height: 1.3;
  white-space: pre-wrap;
  display: block;
  overflow-x: auto;
  margin: 10px 0;
}

.avatar h1 {
  margin: 0;
  font-size: 35px;
  font-family: "Anton", cursive;
}
.warning{
  color: rgb(134, 64, 64);
  font-weight: 400;
}

section {
  font: 200 23px "Roboto Condensed", sans-serif;
  line-height: 1.4;
}

section h1 {
  text-align: left;
}

article {
  font: 200 23px "Roboto Condensed", sans-serif;
  line-height: 1.4;
}

article a{
  text-decoration: none;
  color: #3b3b3b;
  font-weight: 300;
}

small {
  color: #292929;
}

i{
  padding: 0 3px;
}
footer {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font: 200 20px "Roboto Condensed", sans-serif;
}

footer img {
  width: 30px;
}

#searchForm {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#searchForm input {
  flex: 1;
  padding: 8px;
  font-size: 1rem;
}

#searchForm button {
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
}


/* Media Queries para Responsividade */
@media screen and (max-width: 768px) {
  .circle {
    width: 150px;
    height: 150px;
  }

  .avatar h1 {
    font-size: 28px;
  }

  .menu {
    font-size: 20px;
  }

  section, article {
    font-size: 20px;
  }
}

@media screen and (max-width: 600px) {
  .hamburger {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 15px;
  }

  .menu.active {
    max-height: 500px;
    padding: 15px;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    display: block;
    padding: 8px 0;
  }

  .menu input[type="text"] {
    width: 100%;
    box-sizing: border-box;
  }

  .post-card {
    flex: 1 1 100%;
  }

  .post-grid {
    flex-direction: column;
    gap: 15px;
  }
}

@media screen and (max-width: 480px) {
  .circle {
    width: 120px;
    height: 120px;
  }

  .avatar h1 {
    font-size: 24px;
  }

  .menu {
    font-size: 18px;
  }

  section, article {
    font-size: 18px;
  }

  .post-card h2 {
    font-size: 1.3rem;
  }

  .post-card p {
    font-size: 1.1rem;
  }
}