@import "variables.css";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-bottom: 4rem;
  /* height: 100%; */
}

.resumos-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: auto;
  max-width: 80vw;
  gap: 1rem;
  justify-content: center;
}

.header-resumo {
  margin: auto;
  padding: 50px 0px 0px 0px;
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.45);
}

.resumo-texto {
  text-align: justify;
}

.nome-autor {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.institucion {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.titulo-ponencia {
  font-weight: 600;
  font-size: 1.1em;
  color: var(--white);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bio {
  text-align: justify;
}

.texto-resumo {
  text-align: justify;
}

.resumo:not(:has(img)) .resumo-texto {
  margin-left: 180px;
}

.resumo-card {
  border: 2px solid var(--purple);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  width: 26vw;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background-color: var(--purple-lighter);
}

.resumos-container.expanded {
  flex-direction: column;
  max-width: 100vw;
  gap: 0;
}

.resumo-card.expanded {
  flex: 1 1 100%;
  width: 100%;
  max-width: 90vw;
  margin: 0 auto;
}

.resumo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.resumo-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.resumo-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgb(255, 255, 255);
  background-color: #007bff9e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.resumo-card-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.nome-autor {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--white);
}

.institucion {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95em;
  text-align: center;
}

.titulo-ponencia {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1em;
  text-align: center;
}

.resumo-card-body {
  display: none;
  line-height: 1.5;
  color: var(--white);
  text-indent: 32px;
}

.resumo-card.resumo-card.expanded {
  padding: 30px 80px 30px 80px;
}
.resumo-card.expanded .resumo-card-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 32px;
}
.resumo-card.expanded .resumo-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  padding-top: 16px;
}
.resumo-card.expanded .resumo-avatar {
  width: 160px;
  height: 160px;
}
.resumo-card.expanded .resumo-card-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
}

.bibliography {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--white);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--white);
  white-space: pre-line;
}
@media (max-width: 768px) {
  .resumos-container {
    max-width: 100vw;
    width: 100%;
    gap: 1rem;
    justify-content: center;
  }
  .header-resumo {
    padding-top: 1rem;
    font-size: 3rem;
  }
  .container {
    gap: 1rem;
  }
  .resumo-card {
    width: 90vw;
  }

  .resumo-card.resumo-card.expanded {
    flex-direction: column;
    padding: 1rem 2rem 2rem 2rem;
    align-items: center;
    justify-content: center;
    text-align: justify;
  }
  .resumo-card.expanded .resumo-card-header {
    padding-top: 1rem;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .resumo-card.expanded .resumo-card-info {
    padding-top: 0rem;
    align-items: center;
  }
  .resumo-card.expanded .resumo-card-body {
    padding: 0rem;
    gap: 1rem;
  }
}
