/* Trip Log Section */
.trip-log {
  width: 100%;
  margin-top: 50px;
}
.trip-log__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trip-log__header-title {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
}

.trip-log__header-more {
  margin-top: 4px;
  color: #000;
  cursor: pointer;
}

.trip-log__list {
  width: 100%;
  display: flex;
  gap: 14px;
  padding-top: 10px;
}

.trip-log__item {
  flex: 1;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border-radius: 22px;
  background: no-repeat center/cover;
  position: relative;
  cursor: pointer;
  max-width: 33.33%;
  overflow: hidden;
}

.trip-log__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    181deg,
    rgba(217, 217, 217, 0) 35.13%,
    #2a458b 99.47%
  );
  z-index: 1;
}

.trip-log__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trip-log__category {
  width: fit-content;
  padding: 4px 8px;
  color: #0f4ff4;
  background-color: rgba(233, 235, 255, 0.8);
  font-weight: bold;
  border-radius: 20px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: bold;
}

.trip-log__title {
  color: #fff;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  min-height: 50px;
}

.trip-log__list {
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.trip-log__list::-webkit-scrollbar {
  display: none;
}

.trip-log__item {
  scroll-snap-align: start;
}

/* Popular Topics Section */
.popular-topics {
  width: 100%;
  margin-top: 30px;
}

.popular-topics__list {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.popular-topics__item {
  width: 100%;
  padding: 4% 2.5%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 8px;
  border: 0.5px solid #eee;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popular-topics__item:nth-child(1) {
  border-radius: 15px;
  background: linear-gradient(94deg, #8e35ff 13.06%, #ffa0b7 86.94%);
}

.popular-topics__item:nth-child(2) {
  border-radius: 15px;
  background: linear-gradient(94deg, #338ce7 13.06%, #66cad0 86.94%);
}

.popular-topics__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.popular-topics__title {
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.popular-topics__badge {
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.popular-topics__description {
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

@media (max-width: 768px) {
  .trip-log {
    margin-top: 20px;
  }

  .trip-log__header-title {
    font-size: 20px;
  }

  .trip-log__list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .trip-log__list::-webkit-scrollbar {
    display: none;
  }

  .trip-log__item {
    min-width: 220px;
    aspect-ratio: 3/3.5;
    padding: 14px;
  }

  .trip-log__category {
    padding: 4px 10px;
    font-size: 12px;
  }

  .trip-log__title {
    font-size: 16px;
  }

  .sectionEventBanner h1 {
    font-size: 20px;
  }

  /* 인기 토픽 모바일 조정 */
  .popular-topics__badge {
    padding: 3px 8px;
    font-size: 10px;
  }

  .popular-topics__title {
    font-size: 14px;
  }

  .popular-topics__description {
    font-size: 11px;
  }
}

@media (max-width: 500px) {
  .trip-log__item {
    min-width: 180px;
    aspect-ratio: 2/2.5;
    padding: 12px;
    border-radius: 12px;
  }

  .trip-log__content {
    gap: 6px;
  }

  .trip-log__category {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 12px;
  }

  .trip-log__title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .trip-log__header p {
    font-size: 14px;
  }

  .trip-log__item::after {
    height: 60%;
    background: linear-gradient(
      181deg,
      rgba(217, 217, 217, 0) 35.13%,
      #2a458b 99.47%
    );
  }

  /* 모바일에서 인기 토픽 세로 배치 */
  .popular-topics__list {
    flex-direction: column;
    gap: 12px;
  }

  .popular-topics__badge {
    padding: 3px 8px;
    font-size: 10px;
  }

  .popular-topics__title {
    font-size: 13px;
  }

  .popular-topics__description {
    font-size: 11px;
  }
}
