/* ==========================================================================
   Component: Interview Bubble
   ========================================================================== */

.c-interview-bubble {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.c-interview-bubble__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.c-interview-bubble__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-interview-bubble__avatar--default {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.c-interview-bubble__avatar--default.c-interview-bubble__avatar--interviewer {
  background-color: #3498db;
}

.c-interview-bubble__avatar--default.c-interview-bubble__avatar--interviewee {
  background-color: #e74c3c;
}

.c-interview-bubble__content {
  width: 70%;
}

.c-interview-bubble__text {
  position: relative;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1.6;
}

.c-interview-bubble--interviewer .c-interview-bubble__text {
  border: 4px solid #d0e8ff;
  background-color: #f0f9ff;
}

.c-interview-bubble--interviewer .c-interview-bubble__text:before {
  content: "";
  position: absolute;
  left: -14px;
  top: 15px;
  border-top: 10px solid transparent;
  border-right: 10px solid #d0e8ff;
  border-bottom: 10px solid transparent;
}

.c-interview-bubble--interviewer .c-interview-bubble__text:after {
  content: "";
  position: absolute;
  left: -10px;
  top: 17px;
  border-top: 8px solid transparent;
  border-right: 8px solid #f0f9ff;
  border-bottom: 8px solid transparent;
}

.c-interview-bubble--interviewee {
  justify-content: flex-end;
}

.c-interview-bubble--interviewee .c-interview-bubble__text {
  border: 4px solid #ffe0e0;
  background-color: #fff0f0;
}

.c-interview-bubble--interviewee .c-interview-bubble__text:before {
  content: "";
  position: absolute;
  right: -14px;
  top: 15px;
  border-top: 10px solid transparent;
  border-left: 10px solid #ffe0e0;
  border-bottom: 10px solid transparent;
}
.c-interview-bubble--interviewee .c-interview-bubble__text:after {
  content: "";
  position: absolute;
  right: -10px;
  top: 17px;
  border-top: 8px solid transparent;
  border-left: 8px solid #fff0f0;
  border-bottom: 8px solid transparent;
}

.c-interview-bubble__text p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .c-interview-bubble__avatar {
    width: 50px;
    height: 50px;
  }

  .c-interview-bubble__text {
    padding: 12px 15px;
    font-size: 14px;
  }
}
