import styled from "styled-components";

const Wrapper = styled.div`
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: space-between;
`;

const CropArea = styled.div`
  display: flex;
  align-items: center;
  justify-content: center;
  gap: ${(p) => p.theme.spacing.m};
  margin-top: ${(p) => p.theme.spacing.s};
  margin-left: ${(p) => p.theme.spacing.l};
`;

const CropContainer = styled.div`
  position: relative;
  width: 276px;
  height: 276px;
  border-radius: 50%;
  overflow: hidden;
`;

const ZoomControls = styled.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: ${(p) => p.theme.spacing.xs};
`;

const ZoomButton = styled.button`
  background: none;
  border: none;
  cursor: pointer;
  color: ${(p) => p.theme.color.interactive01};
  font-size: 24px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;

  &:hover {
    opacity: 0.7;
  }
`;

const ZoomSlider = styled.input`
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 4px;
  height: 216px;
  cursor: pointer;
  accent-color: ${(p) => p.theme.color.interactive01};
`;

const Actions = styled.div`
  display: flex;
  width: 100%;
  justify-content: flex-end;
`;

const ButtonWrapper = styled.div`
  display: flex;
  width: 100%;
  justify-content: center;
  padding-top: ${(p) => p.theme.spacing.xs};
`;

export { Actions, Wrapper, CropArea, CropContainer, ZoomControls, ZoomButton, ZoomSlider, ButtonWrapper };
