@import 'scss/font-family.scss';
@import 'theme/variables.scss';

.comment-container {
    width: 590px;  
    height: 54px;
    background-color: $white-2;
    border-radius: 2px;
    color: $ta-black-2;

    &.is-editing {
        background-color: $ta-black-3 !important;
        color: $white-2 !important;
    }

    .comment-container-content {
        padding: 2px;
        font-family: $font-family;
        background-color: $white-2;
        color: $ta-black-2;
        border-radius: 2px;

        &:hover {
            background-color: $bw2;

            .svg-wrapper.icon-edit,
            .svg-wrapper.icon-delete {
                display: flex !important;
            }
        }

        &.is-editing {
            background-color: $ta-black-3 !important;
            color: $white-2 !important;
        }

        .comment-container-content-top {
            height: 26px;
            box-sizing: border-box;
            padding: 2px 4px;

            .content-header-left-side {
                gap: 4px;
                align-items: center;

                img {
                    width: 22px;
                    height: 22px;
                    border-radius: 50px;
                }

                p {
                    margin: 0;
                    padding: 0;
                }

                .user-name {
                    font-weight: 600 !important;
                    font-size: 14px;
                    color: $ta-black;

                    &.is-editing {
                        color: $white-2 !important;
                    }
                }

                .title {
                    font-weight: 500 !important;
                    font-size: 14px;
                    line-height: 18px;
                    color: $muted;

                    &-owner {
                        font-weight: 700 !important;
                        color: $ta-orange-2;
                    }

                    &-dot {
                        &::before {
                            content: '•';
                            width: 5px;
                            height: 18px;
                            font-size: 14px;
                            line-height: 18px;
                            color: $grey;
                        }
                    }

                    &-edit {
                        color: $ta-blue-13;

                        &::before {
                            color: $ta-blue-13;
                        }
                    }
                }
            }

            .svg-wrapper {
                cursor: pointer;
                position: relative;
                gap: 4px;
                background-color: transparent;

                .icon-edit,
                .icon-delete {
                    display: none;
                }

                .svg-icon {
                    height: 18px;
                    width: 18px;
                    border-radius: 1px;
                    gap: 10px;

                    &:hover {
                        background-color: $grey-5;
                        transform: scale(1.22);
                        transition: height 0.2s ease-in-out;

                        svg {
                            path {
                                fill: $ta-black;
                            }
                        }
                    }

                    &.is-editing {
                        background-color: $white-4;

                        svg {
                            path {
                                fill: $ta-black-3;
                            }
                        }

                        &:hover {
                            background-color: $white-2;
                        }
                    }
                }
            }
        }

        &-bottom {
            align-items: center;
            padding: 2px 4px;

            .message {
                width: 100%;
                height: auto;
                background-color: transparent;
                color: $ta-black-2;
                border: none;
                outline: none;
                font-size: 14px;
                font-family: $font-family;
                line-height: 18px;
                box-sizing: border-box;
                resize: none;
                overflow: hidden;

                &.is-editing {
                    background-color: $ta-black-3;
                    color: $white-2;
                }
            }

            .message:focus {
                outline: none;
            }
        }
    }
}
