.result {
  background: var(--dark-color);
  padding: 0 1.5rem;
  height: 852px;
  display: none;
  flex-direction: column;
  position: relative;
  justify-content: center;

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    /* padding: 30px 0 50px 0; */
    width: 100%;

    .result-header {
      /* margin-bottom: 18px; */
    }
  }
}

.share-result {
  background: var(--dark-color);
  padding: 0 1.5rem;
  height: 852px;
  flex-direction: column;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
  }
}

.result-wrapper {
  display: none;
}

.result-wrapper.active {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.result-content {
  width: 100%;
  margin: auto;
  max-width: 425px;
}

.share-content {
  width: 100%;
  max-width: 425px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.result-content-share {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  width: 100%;

  button {
    background: var(--lightgray-color);
    padding: 7.5px;
    border-radius: 50%;
    width: 30px;
    aspect-ratio: 1/1;
    display: flex;
  }
}

/* 이미지 보기 */
#preview-btn {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translate(-50%, -8%);
  color: var(--tertiary-color);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 40px;
}

/* 이미지 다운로드 */
#download-btn {
  color: var(--white-color);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  background: var(--main-color);

  border-radius: 100px;
  width: 200px;
  margin: 0 auto;

  .download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
  }
}

.result-content-detail {
  background: var(--lightgray-color);
  border-radius: 20px;
  padding-bottom: 24px;
  margin-top: 8px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  gap: 24px;

  .result-content-detail-image-wrap {
    width: 100%;
    img {
      width: 100%;
      object-fit: cover;
    }
  }

  .result-content-detail-text-wrap {
    padding: 0 24px;
    line-height: 140%;

    h4 {
      font-size: 18px;
      font-style: normal;
      font-weight: 500;
      margin-bottom: 10px;
      color: var(--secondary-color);
    }
  }

  .more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--main-color);

    font-size: 1rem;
    font-style: normal;
    font-weight: 500;

    img {
      transition: transform 0.3s ease;
    }

    &:hover {
      img {
        transform: translateX(10px);
      }
    }
  }
}

/* 상세 분석 프리뷰 */
.result-content-detail-preview {
  background: var(--lightgray-color);
  border-radius: 20px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  /* gap: 24px; */

  /* 상세 분석 받아보기 버튼 */
  .detail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 8px;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 8px;
    padding: 16px 32px;

    font-size: 18px;
    font-style: normal;
    font-weight: 700;
  }
}

.influencer-header-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;

  .profile-wrap {
    display: flex;
    align-items: center;
    gap: 12px;

    .profile-image {
      width: 50px;
      height: 50px;
      aspect-ratio: 1/1;
      border-radius: 50%;
      background: var(--lightgray-color);
    }

    .profile-text-wrap {
      display: flex;
      justify-content: space-between;
      flex: 1;
      .account_name {
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
        color: var(--primary-color);
        line-height: 140%;
      }
      .profile_name {
        font-size: 16px;
        font-weight: 500;
      }
      img {
        height: 100%;
      }
    }
  }

  .profile-wrap {
    .result-profile-image {
      width: 50px;
      height: 50px;
      aspect-ratio: 1/1;
      border-radius: 50%;
      background: var(--lightgray-color);
    }
  }

  .hashtag-list {
    display: flex;
    gap: 8px;
    align-items: center;

    li {
      padding: 2px 8px;
      border-radius: 4px;
      background: #ededed;
      color: var(--tertiary-color);
      font-size: 14px;
      font-style: normal;
      font-weight: 500;
    }
  }
}

/* 간편 분석 wrapper */
.influencer-content-wrap-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 10px;
  position: relative;

  height: 350px;
  overflow-y: auto;

  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
}

/* 포맷 매력도 */
.influencer-content-wrap {
  .format-info {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: #777;
    margin-top: 10px;
  }
  .format-bar {
    display: flex;
    height: 12px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background-color: #eee;
    margin: 4px 0;
  }

  .bar {
    height: 100%;
    border-radius: 50px;
  }

  .feed-bar {
    background-color: #fa0d64;
    width: 0%;
    transition: width 0.5s ease;
  }

  .reels-bar {
    background-color: #ff7f00;
    width: 0%;
    transition: width 0.5s ease;
  }

  .format-percent {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }

  .format-percent p {
    display: inline;
    margin-right: 4px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
  }
}

/* 인플루언서 종합 지수 */
.influencer-total-wrap {
  padding: 16px 0;

  h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;

    span {
      color: var(--tertiary-color);
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
    }
  }

  ul {
    display: flex;
    gap: 16px;

    font-size: 14px;
    color: var(--tertiary-color);

    li {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: #777;
      flex: 1;

      h2 {
        font-size: 24px;
        font-weight: 700;
        color: var(--primary-color);
      }
    }
  }
}

.influencer-total-wrap ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

/* AI 코멘트 */
.influencer-ai-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;

  .ai_headline {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    color: var(--primary-color);
  }

  .ai_comment_wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  h4 {
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
  }

  h3 {
    color: var(--secondary-color);
  }

  h2 {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
  }

  p.ai_description,
  p.ai_action_tip,
  p.ai_brand_hint {
    line-height: 1.6;
    color: #555;
    line-height: 150%;
    /* overflow-y: auto;
    height: 100px; */

    font-size: 16px;
    font-style: normal;
    font-weight: 500;
  }
}

.influencer_ai_comment_wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
}

.overlay-text {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: 50px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
}

.sample-overlay-text {
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 1));
}

.active {
  display: flex;
  justify-content: center;
}

.detail-button-wrap {
  position: relative;
  display: inline-block;
}
/* 공유페이지 나도 계정 분석하기 버튼 */
.share-button-wrap {
  width: 100%;
  position: relative;
  display: inline-block;
}

.share-button {
  width: 100%;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 8px;
  background: var(--main-color);
  color: var(--white-color);
  border-radius: 8px;
  padding: 16px 32px;

  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

.detail-button {
  width: 100%;
  position: relative;
}

.bubble-text-wrap {
  position: absolute;
  bottom: -2.5rem;
  right: 0rem;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.25));
  animation: bubble-animation 1s ease-in-out infinite;
}

@keyframes bubble-animation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.25rem);
  }
  100% {
    transform: translateY(0);
  }
}

.result-content-button-list {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.result-content-button-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #a2a2a2;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.result-content-button-list li button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--lightgray-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-content-button-list li:nth-child(3) button {
  background: #fae100;
}

/* 상세 리포트 결과  */
.detail-result-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  background: var(--white-color);

  h2 {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    color: var(--main-color);
  }

  h3 {
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    color: var(--main-color);
  }

  h5 {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
  }
}

.detail-result-content {
  width: 100%;
  margin: 50px 0;

  .detail-result-content-img-wrap {
    border-bottom: 1px solid var(--border-color);
    display: block;
    padding: 10px 0;

    .logo {
      width: 130px;
    }
  }
}

.detail-result-content-header {
  margin: 30px 0 24px 0;

  .detail-result-description {
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 8px;
  }
}

.detail-result-content-body {
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.result-content-body-item {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.result-content-body-item-list {
  padding: 16px;
  border-radius: 8px;
  background: var(--lightgray-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;

  li {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;

    p:nth-child(2) {
      font-size: 24px;
      font-style: normal;
      font-weight: 600;
      color: var(--primary-color);
      text-align: right;
    }

    span {
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
      color: #666666;
    }
  }

  .divider {
    width: 1px;
    height: 88px;
    background: var(--tertiary-color);
    display: block;
  }

  p {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: #666666;
  }
}

.chart {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;

  li {
    position: relative;
    height: 228px;
  }
}

.top5Swiper,
.bottom5Swiper {
  display: none;
}

.top-list-item-img {
  position: relative;
  height: 100%;
}

.top-list-item-img::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
  z-index: 1;
}

img.list-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-list-item-text {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  border-radius: 12px;
  background: radial-gradient(
    362.12% 174.67% at 1.95% 3.59%,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  padding: 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

.top-list-info-engagement {
  border-radius: 12px;
  background: radial-gradient(
    362.12% 174.67% at 1.95% 3.59%,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  padding: 8px;
  font-size: 20.761px;
  font-style: normal;
  font-weight: 500;
  color: var(--white-color);

  span {
    font-size: 15.571px;
    font-style: normal;
    font-weight: 500;
  }
}

.top-list-info {
  display: flex;
  flex-direction: column;
  color: var(--white-color);
  gap: 4px;
}

.top-list-info-likes,
.top-list-info-comments {
  display: flex;
  align-items: center;
  gap: 4px;
}

.banner-wrap {
  background: #fff4f7;
  padding: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;

  img {
    aspect-ratio: 1/1;
    border-radius: 5px;
    background: var(--white-color);
    padding: 11px;
    height: 50px;
  }

  .banner-text {
    display: flex;
    flex-direction: column;

    h5 {
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      margin-bottom: 8px;
    }

    p {
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      color: var(--primary-color);
    }
  }
}

.recommended-hashtags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  list-style: none;
  padding: 0;
}

.recommended-hashtag {
  padding: 6px 12px;
  border-radius: 100px;
  background: #f9f9f9;
  color: var(--primary-color);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

/* 시간대 요일별 반응 */
.hourly-engagement-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;

  li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
  }

  li:first-child {
    span {
      background: var(--main-color);
    }
  }
  li:nth-child(2) {
    span {
      background: #d6b5ff;
    }
  }
  span {
    width: 14px;
    height: 14px;
    aspect-ratio: 1/1;
    display: block;
    border-radius: 50%;
  }
}

.brand-matching-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  justify-content: space-between;

  li.brand-matching-item {
    width: 100%;
    border-radius: 16px;
    background: #f9f9f9;
    padding: 16px 10px;
    height: 100%;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .brand-matching-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .brand-matching-item-title {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
  }

  .brand-matching-item-score {
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    background: #ededed;
    border-radius: 100px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;

    span {
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      color: var(--primary-color);
    }
  }
}

.brand-matching-item-bottom,
.growth-strategy-item-bottom {
  list-style: disc;
  padding-left: 1rem;

  li {
    padding: 0;
  }
}

.growth-strategy-wrap {
  display: flex;
  gap: 8px;
  height: 250px;

  .growth-strategy-item {
    width: 100%;
    border-radius: 16px;
    background: #f9f9f9;
    padding: 16px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
  }

  .growth-strategy-item-title {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
  }

  .growth-strategy-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 80px;
  }
}

@media (max-width: 780px) {
  .detail-result-wrapper {
    max-width: 100%;
    padding: 16px;
  }

  .detail-result-content-body {
    padding: 16px;
    overflow: hidden;
  }

  .result-content-body-item-list {
    flex-direction: column;

    .divider {
      width: 100%;
      height: 1px;
      background: var(--tertiary-color);
      margin: 16px 0;
    }
  }

  /* 반응 TOP5, BOTTOM5 리스트 모바일 뷰 비활성화 */
  .grid ul {
    display: none;
  }
  .top5Swiper,
  .bottom5Swiper {
    display: block;
    .swiper-slide {
      min-width: 182px;
      height: 350px;
    }
  }

  /* 차트 */
  .bar-chart {
    height: 180px;
  }

  /* 콘텐츠 스타일 기반 브랜드 매칭, 맞춤형 성장 전략 제안 */
  .brand-matching-wrap,
  .growth-strategy-wrap {
    flex-direction: column;
    height: auto;
  }
}

@media (max-width: 600px) {
  .result {
    height: 100vh;
  }

  .influencer-content-wrap-preview {
    height: 290px;
  }

  /* #hashtag-chart {
    height: 500px;
  } */

  .hashtag-wrap {
    height: 200px;
    width: 100%;
    overflow: auto;
  }

  .result {
    .container {
      gap: 16px;
    }
  }

  #preview-btn {
    flex-direction: row;
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin-top: 0;
    width: 100%;
  }
}
