/**
 * Hero / Focusinfo Component
 * Homepage hero section with avatar, signature, social icons.
 */

/* Section title */
h1.fes-title,
h1.main-title {
  color: var(--theme-skin, #505050);
  font-size: 18px;
  font-weight: var(--global-font-weight, 400);
  padding-bottom: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  opacity: 0;
  content-visibility: hidden;
  contain-intrinsic-size: auto none;
}

.foverlay {
  transition: opacity .4s ease-out;
}

#centerbg {
  width: 100%;
  height: 550px;
  margin: 0;
  padding: 0;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
  z-index: -1;
}

.focusinfo {
  position: relative;
  max-width: 800px;
  padding: 0 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s ease-in-out;
}

.focusinfo .header-tou {
  display: grid;
  justify-items: center;
  justify-content: center;
  margin: 0;
}

.focusinfo .header-tou img {
  position: relative;
  opacity: 1;
  transform: rotate(0);
  width: 120px;
  height: 120px;
  border-radius: 100%;
}

.focusinfo .header-tou img:hover {
  transform: rotate(360deg);
}

.header-info {
  width: 65%;
  margin: auto;
  font-size: 16px;
  color: var(--theme-skin, #505050);
  background: rgba(255,255,255,var(--homepage_widget_transparency, 1));
  padding: 15px;
  margin-top: 22px;
  line-height: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,var(--homepage_widget_transparency, 1));
  box-sizing: initial;
  white-space: nowrap;
  font-weight: var(--global-font-weight);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  will-change: backdrop-filter;
}

.header-info p {
  margin: 0;
  font-family: 'Microsoft YaHei';
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Top social icons */
.top-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.top-social li {
  float: left;
  margin: 5px;
  list-style-type: none;
}

.top-social i,
.top-social img {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #505050;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.top-social i:hover,
.top-social img:hover {
  color: #fff !important;
  background: var(--theme-skin-matching, #a4cdf6);
  transform: translateY(-3px);
}

.top-social_v2 i {
  color: #505050;
  transition: all 0.4s ease-in-out;
}

.top-social_v2 i:hover {
  color: var(--theme-skin-matching, #a4cdf6);
  transform: translateY(-3px);
}

.top-social .inner,
.slider li .inner {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: max-content;
  height: max-content;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin-top: 15px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, max-height 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.top-social .inner span,
.slider li .inner span {
  max-width: 300px;
  min-width: 110px;
  padding: 10px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.top-social .inner img,
.slider li .inner img {
  width: 110px;
  height: auto;
  padding: 10px;
}

.top-social li:hover .inner,
.slider li:hover .inner {
  opacity: 1;
  visibility: visible;
  max-height: 121px;
  transform: translateX(-50%) translateY(0);
}

.top-social li:not(:hover) .inner,
.slider li:not(:hover) .inner {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transform: translateX(-50%) translateY(10px);
}

/* Social slider */
.slider-container {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  width: 100%;
}

.prev,
.next {
  width: 35px;
  height: 35px;
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.slider-wrapper {
  flex-grow: 1;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
  padding: 0;
  margin: 0;
  gap: 10px;
  justify-content: center;
  cursor: unset !important;
}

.slider li {
  list-style: none;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.fade-in-left {
  animation: fadeInLeft 0.5s ease-in-out;
}

.fade-in-right {
  animation: fadeInRight 0.5s ease-in-out;
}

.slider-container.enough-space .prev,
.slider-container.enough-space .next {
  visibility: hidden;
}
