@import url(./nav.css);
@import url(./home.css);
@import url(./recent-posts-section.css);
@import url(./search.css);
@import url(./post-page.css);
@import url(./categoria.css);
@import url(./footer.css);
@import url(./privacidade.css);
@import url(./termos-de-uso.css);
@import url(./cookies.css);
@import url(./404.css);
@import url(./sem-posts.css);

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  scroll-behavior: smooth;
}

/* Configurações Gerais */
:root {
  --primary-color: #483bff;
  --primary-color-transp: #0000004f;
  --primary-color-hover: #dfddff;
  --secondary-color: #ffcc00;
  --danger-color: #ef4444;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
  --transition: 0.3s;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
}


/* ============ MODAL ============*/
.modal-container {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-body {
  height: 90%;
  background-color: #dbeafe;
  padding: 50px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.modal-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
}
/* ===================================== */

main,
footer {
  padding: 20px;
  margin-left: 70px;
  transition: var(--transition);
}

.title-h1-section {
  padding: 20px;
  width: 100%;
  font-size: 2.2rem;

  font-weight: 400;

}

.title-h2-section {
  font-size: 1.8rem;
  border-bottom: 4px solid var(--primary-color);
}

.category {
  width: fit-content;
  background-color: var(--secondary-color);
  padding: 5px 10px;
  color: var(--text-main);
}

button,
.button {
  padding: 10px 20px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  color: var(--primary-color);
  transition: var(--transition);
}

button:hover,
.button:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:disabled:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.close-button {
  font-size: 1.2rem;
  padding: 0;
  width: 40px;
  height: 40px;
}
.close-button:hover {
  background-color: var(--danger-color);
  border: none;
}

@media screen and (max-width: 900px) {
  main,
  footer {
    padding: 0;
    margin-left: 70px;
  }
  main {
    padding-top: 14vh;
  }
  footer {
    padding: 5%;
  }
  .title-h1-section {
    margin-bottom: 0;
  }
}

/* CELULAR */
@media screen and (max-width: 770px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
}
