/**
 * 푸터 스타일
 *
 * 푸터 정보, 플로팅 버튼 (Users, Settings, Scroll to Top)
 */

/* ==================== 푸터 메인 ==================== */
footer.site-footer {
  position: relative;
  margin-top: 50px;
  background-color: rgb(64, 64, 64);
  height: 165px;
  display: flex;
  align-items: center;

  & .container {
    width: var(--content-width);
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  & .site-info {
    display: block;

    & .copyright {
      color: #fff;
      font-size: 16px;
      margin: 0;

      & a {
        font-weight: bold;
        color: var(--color-accent-orange);

        &:active,
        &:focus,
        &:hover {
          opacity: 0.8;
        }
      }
    }

    & .infomation {
      & .infos {
        & .info {
          margin: 0;
          color: #fff;
          font-size: 14px;
          font-weight: 500;

          & em {
            color: var(--color-accent-orange);
            font-style: normal;
          }
        }
      }
    }
  }

  & .footer-logo {
    flex-shrink: 0;

    & img {
      margin: 0;
      width: auto;
      height: 55px;
      min-width: 100px;
    }
  }
}

/* ==================== Scroll to Top 버튼 ==================== */
.scroll-top {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 30px;
  right: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  cursor: pointer;
  transition: background-color 0.3s;

  &::after {
    content: '↑';
    font-size: 24px;
    color: white;
    font-weight: bold;
  }

  &:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }
}

/* ==================== 반응형: 모바일 (1100px 이하) ==================== */
@media screen and (max-width: 1100px) {
  footer.site-footer {
    height: auto;
    padding: 20px 0;
  }
}
