import styled from "styled-components/native";

interface IStylesProps {
  height?: string;
  backgroundColor?: string;
}

export const CardChallenge = styled.View`
  width: 360px;
  height: ${({ height }: IStylesProps) => height};
  background-color: ${({ backgroundColor }: IStylesProps) => backgroundColor};
  box-shadow: 0px 4px 12px rgba(189, 189, 189, 0.25);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
`;

export const CardChallengeImage = styled.View`
  display: flex;
  justify-content: center;
  align-items: center; 
  width: 104px;
  height: 172px;
  margin: 0;
  margin-right: 16px;
`;

export const CardChallengeInfo = styled.View`
  display: flex;
  flex-direction: column;
`;

export const CardChallengeTitle = styled.View`
  width: 228px;
  height: 28px;
  margin-top: 16px;
  margin-right: 16px;
`;

export const CardChallengeDescription = styled.View`
  width: 225px;
  height: 40px;
  margin-top: 8px;
  margin-right: 16px;
`;

export const CardChallengeButton = styled.View`
  width: 100%;
  height: 100%;
  display: flex;
  margin-top: 24px;
`;

export const CardChallengeButtonContent = styled.View`
  width: 204px;
  height: 52px;
`;

export const CompletedButton = styled.View`
  display: flex;
  flex-direction: row;
  height: 32px;
  margin-top: auto;
  margin-bottom: 10px;
`;

export const ProgressButton = styled.TouchableOpacity`
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-top: -15px;
  margin-bottom: 7px;
`;

export const IconContainer = styled.View`
  margin-left: 5px;
  margin-top: 2px;
`;

export const IconContainerProgress = styled.View`
  margin-left: 10px;
  margin-top: 5px;
`;

export const ProgressContainer = styled.View`
  display: flex;
  flex-direction: column;
`;

export const ProgressTitleSection = styled.View`
  display: flex;
  flex-direction: row;
  margin-left: -5px;
  margin-top: -5px;
`;

export const ProgressTitle = styled.View`
  margin-left: 10px;
`;

export const ProgressSectionContainer = styled.View`
  width: 225px;
  margin-top: 15px;
`;

export const ProgresAceptedSection = styled.View`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 15px;
  width: 225px;
`;

export const ProgressSection = styled.View`
  margin-bottom: 25px;
  margin-top: 15px;
`;
