import styled from "styled-components";

export const CommentContainer = styled.div`
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;

  padding-top: 15px;
  border-top: 1px solid #f5f7f7;
  margin-top: 15px;

  .icon-btn {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
  }
  .sm-btn {
    height: 30px;
    padding: 0 15px;
    color: #fff;

    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: 9.274px;
    background: #febf10;
    box-shadow: 0px 10px 20px 0px rgba(254, 191, 16, 0.25);
    border: none;
    outline: none;
    cursor: pointer;
    &:disabled {
      background: #c6cccc;

      cursor: not-allowed;
      box-shadow: none;
    }
  }
`;

export const CommentHeader = styled.div`
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;

  h2 {
    font-size: 16px;
    color: #949999;
    font-weight: 500;
  }
`;

export const CommentContent = styled.div`
  display: flex;
  gap: 10px;
  width: 100%;

  .image {
    background-color: #f5f7f7;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
`;

export const CommentContentHeader = styled.div`
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  height: 28px;

  .name {
    color: #4a4d4d;
    font-weight: 500;
    font-size: 16px;
  }
  .date {
    color: #949999;
    font-size: 14px;
    flex-shrink: 0;
  }
`;

export const CommenttBody = styled.div`
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
`;

export const CommentContentBody = styled.div`
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  .text {
    color: #636666;
    font-size: 16px;
    font-weight: 400;
  }
`;

export const CommentContentBodyFooter = styled.div`
  display: flex;
  justify-content: flex-end;
  width: 100%;
  button {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
  }
`;

export const CommentContentEmpty = styled.div`
  .sm-btn {
    height: 36px;
    padding-left: 15px;
    padding-right: 15px;
  }
`;

export const CommentContentForm = styled.div`
  margin-bottom: 10px;

  > textarea {
    border-radius: 10px;
    border: 1px solid #dfe5e5;
    background: #f5f7f7;
    padding: 16px 24px;
    height: 130px;
    width: 100%;
    resize: none;
    font-size: 16px;
    &::placeholder {
      color: #c6cccc;
    }
  }
`;

export const CommentContentAction = styled.div`
  border-radius: 12px;
  background: #f5f7f7;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
    li {
      display: flex;
      align-items: center;
      height: 40px;
      gap: 8px;
      font-size: 16px;
      padding: 0 12px;
      cursor: pointer;
      border-radius: 10px;
      &.active {
        background-color: #00c2c2;
        color: #fff;
      }
    }
  }
`;

export const CommentRecorder = styled.div`
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 15px;
  background: #fffdf6;
  width: fit-content;
  padding: 0 20px;
  min-height: 40px;
  .trash-icon {
    margin-right: 14px;
  }
  .action-btn {
    height: 30px;
    display: grid;
    place-items: center;
  }

  .audioWrapper {
    border-radius: 10px;
    flex-shrink: 0;
    > p {
      color: #636666;
      font-size: 14px;
      font-weight: 400;
    }
    > .audioContent {
      display: flex;
      width: 100%;
      align-items: center;
      height: 100%;
      gap: 10px;
      svg {
        cursor: pointer;

        &.disabled {
          cursor: not-allowed;
        }
      }
      button {
        flex-shrink: 0;
        &.stop-btn {
          svg {
            width: auto;
          }
        }
        svg {
          width: 16px;
        }
        &.play {
          svg {
            width: 20px;
          }
        }
      }
    }
  }
`;
